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 分