OpenStreetMap for VS Code
io.github.ni-c/osm-mcp
Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM
client:VS Code
transport:stdio
runtime:npm
Install OpenStreetMap in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "osm-user-agent",
"description": "OSM_USER_AGENT",
"password": true
},
{
"type": "promptString",
"id": "ors-api-key",
"description": "ORS_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "osm-allow-tools",
"description": "OSM_ALLOW_TOOLS",
"password": true
},
{
"type": "promptString",
"id": "osm-deny-tools",
"description": "OSM_DENY_TOOLS",
"password": true
}
],
"servers": {
"osm-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"osm-mcp"
],
"env": {
"OSM_USER_AGENT": "${input:osm-user-agent}",
"ORS_API_KEY": "${input:ors-api-key}",
"OSM_ALLOW_TOOLS": "${input:osm-allow-tools}",
"OSM_DENY_TOOLS": "${input:osm-deny-tools}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs