Overspan

dev.overspanPublished by overspan.devv0.1.2Updated Nov 24, 2026

OpenStreetMap queries as MCP tools, served by the Overspan hosted Overpass API.

Overview

AI-generated overview

MCP server for Overspan's hosted Overpass API, letting an assistant query OpenStreetMap data with Overpass QL and nearby or bounding-box helpers.

What you can do
Run raw Overpass QL queries against full-planet OpenStreetMap data, with a QL cheat sheet and a query-writing prompt as resources and prompts to draw on. Find features by tag filters within a radius of a point, or inside a bounding box. Count matches in an area without returning them, to size a query before pulling data. Check the key's tier, limits, month-to-date quota and recent requests without consuming quota.
When to use it
Use it when an assistant needs OpenStreetMap features, places or counts for a location, and you want metered, hosted Overpass access rather than running your own Overpass instance. The count tool helps when you want to gauge result size before fetching data.
Requirements
Runs locally via npx (Node.js). Requires an Overspan API key in the OVERSPAN_API_KEY environment variable, set in the MCP client's env block; a 7-day trial or a paid plan is needed to obtain one. Optional OVERSPAN_API_URL and OVERSPAN_MAX_RESPONSE_CHARS variables tune the endpoint and response size. Network access to the Overspan API.
Before you install
The API key is a secret sent as a Bearer header; treat any config file containing it as sensitive and prefer referencing it from your environment. Usage is metered against a plan or trial quota, and plans are paid, so queries consume a paid allowance. Tool results are truncated to fit context unless the cap is raised. Overspan is an independent service, not affiliated with the OpenStreetMap Foundation or the Overpass API project.

Installation

In SourceWeft

  1. Open Overspan in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

overspan-mcp

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. Try it free for 7 days at overspan.dev/trial: a trial key by email, 2,000 requests, no card. Plans start at $19/month at overspan.dev; the key arrives by email after checkout, no account needed.

Quickstart

Claude Code

bash
claude mcp add overspan --env OVERSPAN_API_KEY=YOUR_KEY -- npx -y overspan-mcp

Claude Desktop, Cursor, and other JSON-configured clients

json
{  "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.

Tools

ToolWhat it does
overpass_queryRun a raw Overpass QL query. The escape hatch when the helpers are too narrow.
find_nearbyFeatures matching tag filters within a radius of a point.
features_in_bboxFeatures matching tag filters inside a bounding box.
count_featuresCount matches in an area without returning them. Cheap; use it before pulling data.
get_usageThe 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).

Behaviour worth knowing

  • The key is sent as an Authorization: Bearer header, never in a URL.
  • Every successful tool result carries a quota line ([quota] 49998 of 50000 requests remaining, window ends 2026-12-01T00:00:00Z) so an agent can pace itself. A plan's window is the month; a trial's is its 7 days. get_usage gives the full picture and is free to call.
  • Errors come back in plain language with the gateway's error code, what it means, and whether to retry. Rejected requests do not consume quota, and a runaway loop is bounded by the key's own rate and concurrency caps, never by a larger bill. A trial key adds two: trial_busy (wait and retry: paying customers come first while the servers are busy) and trial_ended (the 7 days are over; do not retry).
  • Oversized responses are trimmed to fit a model's context: for Overpass JSON the element list is cut and the result says how many elements were dropped. Raise the cap with OVERSPAN_MAX_RESPONSE_CHARS if you want more.
  • Queries without [timeout:] get 25 seconds. Set it explicitly for heavy queries, up to your tier's cap.

Environment variables

VariableRequiredDefaultPurpose
OVERSPAN_API_KEYyesYour Overspan API key
OVERSPAN_API_URLnohttps://api.overspan.devOverride the API endpoint
OVERSPAN_MAX_RESPONSE_CHARSno48000Truncation threshold for tool results

Data licence

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.

Development

bash
npm installnpm run buildnpm test

The test suite covers the query builders, response shaping, error mapping, and a full in-memory MCP client round trip.

Links

Overspan is an independent service, not affiliated with the OpenStreetMap Foundation or the Overpass API project.

MIT licensed.

Source: README.md at commit 9412a0e

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.2LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts