OpenStreetMap queries as MCP tools, served by the Overspan hosted Overpass API.
An MCP (Model Context Protocol) server for Overspan, the hosted Overpass API. It gives Claude, Cursor, and any other MCP client direct, metered access to full-planet OpenStreetMap data: raw Overpass QL plus helper tools for nearby search, bounding-box search, counting, and usage checks.
You need an Overspan API key. Plans start at $19/month at overspan.dev; the key arrives by email after checkout, no account needed.
claude mcp add overspan --env OVERSPAN_API_KEY=YOUR_KEY -- npx -y overspan-mcp
{
"mcpServers": {
"overspan": {
"command": "npx",
"args": ["-y", "overspan-mcp"],
"env": {
"OVERSPAN_API_KEY": "YOUR_KEY"
}
}
}
}
The key must be in the server's env block. MCP clients start servers with their own environment, so a variable exported in your shell profile will not reach it. Treat any config file containing the key as a secret; in Claude Code's .mcp.json you can write "OVERSPAN_API_KEY": "${OVERSPAN_KEY}" to keep the key in your environment and out of the file.
| Tool | What it does |
|---|---|
overpass_query | Run a raw Overpass QL query. The escape hatch when the helpers are too narrow. |
find_nearby | Features matching tag filters within a radius of a point. |
features_in_bbox | Features matching tag filters inside a bounding box. |
count_features | Count matches in an area without returning them. Cheap; use it before pulling data. |
get_usage | The key's tier, limits, month-to-date quota, and recent requests. Never consumes quota. |
The server also exposes two resources the model can read (overspan://overpass-ql, a QL cheat sheet, and overspan://differences, how Overspan differs from the public servers) and one prompt (write-bounded-overpass-query).
Authorization: Bearer header, never in a URL.[quota] 49998 of 50000 monthly requests remaining) so an agent can pace itself. get_usage gives the full picture and is free to call.OVERSPAN_MAX_RESPONSE_CHARS if you want more.[timeout:] get 25 seconds. Set it explicitly for heavy queries, up to your tier's cap.| Variable | Required | Default | Purpose |
|---|---|---|---|
OVERSPAN_API_KEY | yes | Your Overspan API key | |
OVERSPAN_API_URL | no | https://api.overspan.dev | Override the API endpoint |
OVERSPAN_MAX_RESPONSE_CHARS | no | 48000 | Truncation threshold for tool results |
Results are OpenStreetMap data, licensed under the Open Database License. Anything you publish that shows or derives from this data needs a visible credit reaching openstreetmap.org/copyright. Your Overspan subscription pays for hosting and access, not for the data, and does not change those obligations.
npm install
npm run build
npm test
The test suite covers the query builders, response shaping, error mapping, and a full in-memory MCP client round trip.
Overspan is an independent service, not affiliated with the OpenStreetMap Foundation or the Overpass API project.
MIT licensed.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y overspan-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"dev-overspan-mcp": {
"command": "npx",
"args": [
"-y",
"overspan-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceoverspan-mcpnpmdev.overspan/mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.