
Overspan
dev.overspan由 overspan.dev 发布v0.1.2更新于 Nov 24, 2026
OpenStreetMap queries as MCP tools, served by the Overspan hosted Overpass API.
概览
面向 Overspan 托管 Overpass API 的 MCP 服务器,让助手用 Overpass QL 及附近、边界框等辅助工具查询 OpenStreetMap 数据。
- 可以做什么
- 对全球 OpenStreetMap 数据执行原始 Overpass QL 查询,并可读取 QL 速查表和查询编写提示。按标签条件查找某点半径内或边界框内的地物。统计某区域内的匹配数量而不返回结果,便于在拉取数据前评估规模。查看密钥的套餐、限额、当月已用配额和近期请求,且不消耗配额。
- 适用场景
- 当助手需要某地点的 OpenStreetMap 地物、地点或数量统计,且希望使用按量计费的托管 Overpass 服务而非自建实例时使用。在正式拉取数据前,可用计数工具先了解结果规模。
- 运行要求
- 通过 npx 在本地运行(需 Node.js)。需要在 MCP 客户端的 env 块中设置 OVERSPAN_API_KEY 环境变量,密钥需通过 7 天试用或付费套餐获取。可选的 OVERSPAN_API_URL 和 OVERSPAN_MAX_RESPONSE_CHARS 用于调整接口地址和响应大小。需要能访问 Overspan API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Overspan,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
Claude Desktop, Cursor, and other JSON-configured clients
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
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: Bearerheader, 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_usagegives 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) andtrial_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_CHARSif you want more. - Queries without
[timeout:]get 25 seconds. Set it explicitly for heavy queries, up to your tier's cap.
Environment variables
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
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.
来源:README.md,提交 9412a0e
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分