Skip to content
Grok

OpenStreetMap for Grok

io.github.ni-c/osm-mcp

Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM

client:Grok transport:stdio runtime:npm

Install OpenStreetMap in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "osm-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "osm-mcp"
      ],
      "env": {
        "OSM_USER_AGENT": "<OSM_USER_AGENT>",
        "ORS_API_KEY": "<ORS_API_KEY>",
        "OSM_ALLOW_TOOLS": "<OSM_ALLOW_TOOLS>",
        "OSM_DENY_TOOLS": "<OSM_DENY_TOOLS>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

OpenStreetMap in other clients