MCP Server Studio
Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM
Registry name: io.github.ni-c/osm-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"osm-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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>"
}
}
}
}Run in your terminal:
claude mcp add osm-mcp -e OSM_USER_AGENT='<OSM_USER_AGENT>' -e ORS_API_KEY='<ORS_API_KEY>' -e OSM_ALLOW_TOOLS='<OSM_ALLOW_TOOLS>' -e OSM_DENY_TOOLS='<OSM_DENY_TOOLS>' -- npx -y [email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"osm-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"osm-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"osm-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"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>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
OSM_USER_AGENT | No | Identifying User-Agent sent to all OSM services (Nominatim requires one) |
ORS_API_KEY | No | Optional OpenRouteService key; switches routing/matrix/isochrones to ORS |
OSM_ALLOW_TOOLS | No | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
OSM_DENY_TOOLS | No | Comma-separated tool names or list_* prefixes to remove from whatever OSM_ALLOW_TOOLS left |
OSM_USER_AGENT | No | Identifying User-Agent sent to all OSM services (Nominatim requires one) |
ORS_API_KEY | No | Optional OpenRouteService key; switches routing/matrix/isochrones to ORS |
OSM_ALLOW_TOOLS | No | Comma-separated tool names or list_* prefixes to register; 'essential' selects a curated preset (default: all tools) |
OSM_DENY_TOOLS | No | Comma-separated tool names or list_* prefixes to remove from whatever OSM_ALLOW_TOOLS left |