This MCP server integrates with Geoapify to convert addresses to GPS coordinates and generate map images from the coordinates. It provides a simple interface for geocoding addresses and visualizing geographical data through Claude AI.
To use the Geoapify MCP server, you'll need to:
Register for an API key from Geoapify and set it as an environment variable named GEO_APIKEY in your configuration.
Add the following entry to your claude_desktop_config.json file:
"MCP Map Demo": {
"command": "uv",
"args": [
"--directory",
"/PATH/TO/THIS/REPO",
"run",
"--with",
"fastmcp",
"--with",
"requests",
"--with",
"folio",
"--with",
"selenium",
"--with",
"pillow",
"fastmcp",
"run",
"/PATH/TO/THIS/REPO/server.py"
],
"env": {
"GEO_APIKEY": "YOURAPIKEY"
}
}
Make sure to:
/PATH/TO/THIS/REPO with the actual path to the repository on your systemYOURAPIKEY with your Geoapify API keyThe MCP server provides two main tools:
Use the get_gps_coordinates tool to convert addresses into GPS coordinates in GeoJSON format.
Example:
can you create a geojson of the following locations including their gps coordinates:
179 avenue du Général Leclerc, côté Rive Gauche
158 avenue du Général Leclerc, côté Rive Droite à l'angle de la rue Jules Herbron
112 avenue du Général Leclerc, côté Rive Droite
...
This will return a GeoJSON file containing the coordinates of all provided addresses.
Use the create_map_from_geojson tool to generate a visual map from GeoJSON data.
Example:
can you create a map from my attached geojson file?
This will generate and display a map image with all the locations from your GeoJSON file plotted on it. Note that the map display feature currently only works on MacOS.
A typical workflow might look like:
This server makes it easy to quickly geocode addresses and visualize their locations on a map without leaving your Claude interface.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "geoapify-map-generator" '{"command":"uv","args":["--directory","${workspaceRoot}","run","--with","fastmcp","--with","requests","--with","folio","--with","selenium","--with","pillow","fastmcp","run","${workspaceRoot}/server.py"],"env":{"GEO_APIKEY":""}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"geoapify-map-generator": {
"command": "uv",
"args": [
"--directory",
"${workspaceRoot}",
"run",
"--with",
"fastmcp",
"--with",
"requests",
"--with",
"folio",
"--with",
"selenium",
"--with",
"pillow",
"fastmcp",
"run",
"${workspaceRoot}/server.py"
],
"env": {
"GEO_APIKEY": ""
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"geoapify-map-generator": {
"command": "uv",
"args": [
"--directory",
"${workspaceRoot}",
"run",
"--with",
"fastmcp",
"--with",
"requests",
"--with",
"folio",
"--with",
"selenium",
"--with",
"pillow",
"fastmcp",
"run",
"${workspaceRoot}/server.py"
],
"env": {
"GEO_APIKEY": ""
}
}
}
}
3. Restart Claude Desktop for the changes to take effect