Geocode MCP Server

A Model Context Protocol (MCP) server that provides latitude/longitude coordinates for cities and locations using the OpenStreetMap Nominatim API.

Local serverstdioPython

What is the Geocode MCP MCP server?

Geocode mcp mcp server connects Geocode MCP to AI assistants that speak the Model Context Protocol. A Model Context Protocol (MCP) server that provides latitude/longitude coordinates for cities and locations using the OpenStreetMap Nominatim API.

What Geocode MCP does

A Model Context Protocol (MCP) server that provides latitude/longitude coordinates for cities and locations using the OpenStreetMap Nominatim API.

Key capabilities

  • 🌍 Global Geocoding: Get coordinates for any location worldwide
  • 🆓 Free API: Uses OpenStreetMap Nominatim (no API key required)
  • MCP Integration: Works with Cursor, VS Code, Claude Desktop, and other MCP-compatible tools
  • 📦 Easy Installation: Install via PyPI with uvx geocode-mcp
  • �️ Modern Tooling: Built with Python 3.12+, async/await, and comprehensive testing

Tools it exposes

Once connected, the assistant can call these 5 tools directly:

  • Installation — The Installation tool exposed by this server
  • mcp_geocoding_get_coordinates — Get latitude and longitude coordinates for a city or location
  • Cursor — Copy the configuration from config/cursor-mcp.json to your Cursor MCP settings
  • Setup — The Setup tool exposed by this server
  • Testing — The Testing tool exposed by this server

Installing the geocode mcp mcp server

The server is distributed via PyPI as geocode-mcp, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

The server reads one environment variable: PYTHONPATH. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Geocode MCP sits in that group, and the shape of its toolset — Installation, mcp_geocoding_get_coordinates, Cursor among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by X-McKay, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the geocode mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
InstallationThe Installation tool exposed by this server.
mcp_geocoding_get_coordinatesGet latitude and longitude coordinates for a city or location.
CursorCopy the configuration from [config/cursor-mcp.json](config/cursor-mcp.json) to your Cursor MCP settings.
SetupThe Setup tool exposed by this server.
TestingThe Testing tool exposed by this server.

How to install the Geocode MCP MCP server

{
  "mcpServers": {
    "geocoding": {
      "command": "uvx",
      "args": ["geocode-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
PYTHONPATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Geocode MCP to Installation.
  • Use Geocode MCP to mcp geocoding get coordinates.
  • Use Geocode MCP to Cursor.

Frequently asked questions

It connects Geocode MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Installation, mcp_geocoding_get_coordinates, Cursor, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Geocode MCP directly.