Overspan

dev.overspan由 overspan.dev 發布v0.1.2更新於 Nov 24, 2026

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

概覽

AI 產生的概覽

針對 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 的網路。
安裝前請注意
API 金鑰屬機密資訊,以 Bearer 標頭傳送;含金鑰的設定檔應視為機密,建議從環境變數引用。用量依方案或試用配額計算,方案需付費,查詢會消耗付費額度。工具結果預設會被截斷以配合上下文,可調高上限。Overspan 為獨立服務,與 OpenStreetMap 基金會及 Overpass API 專案無關。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Overspan,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

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.

來源:README.md,提交 9412a0e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分