MapRouter

dev.maprouter由 maprouter.dev 發布官方發布者v0.1.1更新於 Oct 29, 2026

Maps, geocoding and time zones for AI coding agents, on OpenStreetMap, with hard prepaid spend caps.

已驗證Streamable HTTP可網頁執行位置與生活開發者工具

概覽

AI 產生的概覽

MapRouter 為程式開發助理提供以 OpenStreetMap 為基礎的地理編碼、時區與 MapLibre 地圖程式碼,並設有預付消費上限。

可以做什麼
  • 建立專案金鑰並回傳環境變數設定列
  • 將地址或地點轉為座標,也可將座標反查為地址
  • 提供邊輸入邊搜尋的地點建議,以及某點的 IANA 時區、UTC 偏移與日光節約時間
  • 產生含標記、可直接使用的 MapLibre 程式碼,支援 HTML、React、Vue 或 Svelte
  • 查詢餘額、免費額度與金鑰上限,並可調降金鑰的每日或每月預算
適用情境
適合開發助理為應用程式加入地圖、地址查詢或時區功能時使用,不必手動串接地圖服務商即可取得地理編碼與現成的 MapLibre 程式碼片段。預付上限適合希望對地圖 API 支出設定硬性上限的團隊。
執行需求
託管端點以 GitHub 登入,無需複製金鑰。本機 stdio 方式需要 Node 22.18 或更新版本,以及來自 MapRouter 應用程式的金鑰,透過環境變數 MAPROUTER_SECRET_KEY 傳入。說明指出 npm 套件尚未發布,本機使用可能需要複製儲存庫。
安裝前請注意
地理編碼、反向地理編碼、自動完成與時區查詢會消耗預付額度(分別為 10、10、2、1 點),會產生實際費用。伺服器會建立可公開金鑰與私密金鑰,本機設定需透過環境變數傳入私密金鑰。預算工具只能調降上限,無法提高上限或加值。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MapRouter,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.maprouter%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "maprouter": {
      "type": "http",
      "url": "https://mcp.maprouter.dev/mcp"
    }
  }
}

README

MapRouter MCP server

Maps your agent can set up, and a bill that can't run away.

This MCP server lets a coding agent add a working map to an app: it creates MapRouter keys, geocodes addresses, and writes MapLibre code for HTML, React, Vue or Svelte. MapRouter is prepaid, so the agent can read usage and lower budgets but can never add credits or raise a budget.

Use the hosted server (recommended)

No key to copy: it signs you in with GitHub.

sh
claude mcp add --transport http maprouter https://mcp.maprouter.dev/mcp

Claude Code plugin

This repo is also a Claude Code plugin marketplace. The plugin adds the hosted server and an add-a-map skill:

sh
/plugin marketplace add maprouter-dev/maprouter-mcp/plugin install maprouter@maprouter

Run it locally

For clients that only run local servers. (The npm package is not published yet; until then, clone this repo and point your client at node src/stdio.ts.) Create a secret key at https://app.maprouter.dev.

json
{  "mcpServers": {    "maprouter": {      "command": "npx",      "args": ["-y", "maprouter-mcp"],      "env": { "MAPROUTER_SECRET_KEY": "mr_sk_..." }    }  }}

Requires Node 22.18 or later.

Tools

ToolWhat it doesCost
setup_projectCreates a publishable key (browser, origin-locked) and a secret key, returns env linesFree
geocodeAddress or place to coordinates10 credits
reverse_geocodeCoordinates to address10 credits
autocompleteSearch-as-you-type suggestions2 credits
timezoneIANA zone, UTC offset and DST at a point1 credit
get_map_snippetWorking MapLibre code with markersFree
check_usageBalance, free quota and key capsFree
set_key_budgetLowers a key's daily or monthly cap (never raises)Free

Map data © OpenStreetMap contributors.

Use it as a library

ts
import { MapRouterClient, createServer, handleMcpRequest } from 'maprouter-mcp';
const client = new MapRouterClient({ key: process.env.MAPROUTER_SECRET_KEY! });// Any web-standard server: Workers, Deno, Bun, Node 22+.export default { fetch: (request: Request) => handleMcpRequest(request, client) };

Licence

MIT

來源:README.md,提交 9a2c623

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v0.1.1最新Oct 29, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

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

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