MapRouter
v0.1.1Maps, geocoding and time zones for AI coding agents, on OpenStreetMap, with hard prepaid spend caps.
Values you need
| Variable | What it is | |
|---|---|---|
MAPROUTER_SECRET_KEY | required secret | A secret key (mr_sk_...) from app.maprouter.dev |
npm (npx)
Requires Node.js 18+
Run in a terminal
claude mcp add mcp -e 'MAPROUTER_SECRET_KEY=<MAPROUTER_SECRET_KEY>' -- npx -y maprouter-mcp@0.1.1Add to
claude_desktop_config.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"maprouter-mcp@0.1.1"
],
"command": "npx",
"env": {
"MAPROUTER_SECRET_KEY": "<MAPROUTER_SECRET_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"args": [
"-y",
"maprouter-mcp@0.1.1"
],
"command": "npx",
"env": {
"MAPROUTER_SECRET_KEY": "<MAPROUTER_SECRET_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "MAPROUTER_SECRET_KEY",
"id": "maprouter-secret-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp": {
"args": [
"-y",
"maprouter-mcp@0.1.1"
],
"command": "npx",
"env": {
"MAPROUTER_SECRET_KEY": "${input:maprouter-secret-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "maprouter-mcp@0.1.1"]
env = { "MAPROUTER_SECRET_KEY" = "<MAPROUTER_SECRET_KEY>" }Remote (hosted)
Run in a terminal
claude mcp add --transport http mcp https://mcp.maprouter.dev/mcpAdd to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"mcp": {
"args": [
"-y",
"mcp-remote",
"https://mcp.maprouter.dev/mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp": {
"url": "https://mcp.maprouter.dev/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"mcp": {
"type": "http",
"url": "https://mcp.maprouter.dev/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.maprouter.dev/mcp"]For AI agents
- Ask the user for: MAPROUTER_SECRET_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json