OpenStreetMap MCP Server
by ni-cio.github.ni-c/osm-mcpv0.3.1
OpenStreetMap travel planning: geocoding, walking, driving and cycling routes, travel-time matrices, route optimization, isochrones and POI search.
context tax
queued
security
queued
cold start
queued
freshness
Active4d ago
Install OpenStreetMap MCP server
Install in Claude Code
claude mcp add osm -e ORS_API_KEY='<ors-api-key>' -- npx -y osm-mcpInstall in Cursor
{
"mcpServers": {
"osm": {
"command": "npx",
"args": [
"-y",
"osm-mcp"
],
"env": {
"ORS_API_KEY": "<ors-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"osm": {
"command": "npx",
"args": [
"-y",
"osm-mcp"
],
"env": {
"ORS_API_KEY": "<ors-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"osm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"osm-mcp"
],
"env": {
"ORS_API_KEY": "<ors-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"osm": {
"command": "npx",
"args": [
"-y",
"osm-mcp"
],
"env": {
"ORS_API_KEY": "<ors-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OSM_USER_AGENT | — | — | Identifying User-Agent sent to all OSM services (Nominatim requires one) |
| ORS_API_KEY | — | yes | Optional OpenRouteService key; switches routing/matrix/isochrones to ORS |
| OSM_ALLOW_TOOLS | — | — | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
| OSM_DENY_TOOLS | — | — | Comma-separated tool names or list_* prefixes to remove from whatever OSM_ALLOW_TOOLS left |
Freshness
Active — last maintenance signal 4d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-06 · 4d ago · GitHub
Latest release
2026-09-07 · 33d ago · GitHub · v0.3.1
Package published
no data · npm/PyPI
Registry entry updated
2026-09-07 · 32d ago · official registry · v0.3.1
FAQ
›How do I install the OpenStreetMap MCP server in Claude Code?
Run: claude mcp add osm -e ORS_API_KEY='<ors-api-key>' -- npx -y osm-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does OpenStreetMap require an API key?
Yes. It expects ORS_API_KEY, of which 1 is a secret.
›Can I use OpenStreetMap as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is OpenStreetMap in the official MCP registry?
Yes, as io.github.ni-c/osm-mcp.
Alternatives to OpenStreetMap
Other maps & location MCP servers.