RouteMesh MCP Server
Enables querying blockchain data across multiple EVM chains via RouteMesh, offering built-in RPC tools for blocks, transactions, logs, balances, and gas estimation, plus customer management tools for API keys and usage.
README
RouteMesh MCP Server
@routemesh/mcp is a local stdio MCP server for querying blockchain data through RouteMesh.
At a glance
- Query multiple EVM chains from one MCP server.
- Pull useful on-chain data quickly (blocks, txs, logs, balances, fees).
- Use generic JSON-RPC when you need methods beyond built-in tools.
- Reduce RPC endpoint management overhead with RouteMesh routing + failover.
- Plug into Cursor as an on-demand command, not a background daemon.
Prompt examples
- "List chains that match
baseand show me their chain IDs." - "Get the latest block on BSC and summarize timestamp + tx count."
- "Fetch receipt for tx
0x...on Ethereum and tell me if it succeeded." - "Get logs for this contract on Arbitrum between block X and Y."
- "Estimate gas for calling this method on Base using these params."
- "Run
eth_getCodeon chain 8453 for address0x...." - "Show my RouteMesh usage for the last 7 days broken down by chain."
- "What is my current RouteMesh balance and request count this month?"
Tools
-
rpc_list_chains- discover and filter supported chains (via GET /chains on the API server) -
rpc_call- generic JSON-RPC escape hatch -
rpc_get_block- fetch by number/tag/hash -
rpc_get_transaction- fetch transaction by hash -
rpc_get_transaction_receipt- fetch receipt by hash -
rpc_get_logs- query logs with block/topic filters -
rpc_get_balance- native token balance for an address -
rpc_call_contract- read-onlyeth_call -
rpc_estimate_gas- gas estimation -
rpc_get_fee_data- gas price + EIP-1559 hints -
rpc_trace_transaction- trace/debug transaction best effort -
get_usage- customer usage summary and balance from the API server (requires management token) -
list_api_keys- list customer API keys (requires management token) -
create_api_key- create a new API key with allowed domains and routing strategy (requires management token) -
update_api_key- update an existing API key (requires management token)
Customer tools
When ROUTEMESH_MGMT_TOKEN is set, the server exposes customer-scoped tools that call the API server with the management token in the x-api-key header.
Create a management token in the RouteMesh dashboard with a route allowlist that includes:
GET /usageGET /api-keysPOST /api-keysPUT /api-keys/*
get_usage — usage summary and balance
get_usage fetches customer usage data from the API server (GET /usage).
| Parameter | Type | Description |
|---|---|---|
from |
RFC3339 timestamp | Window start (default: now minus 30 days) |
to |
RFC3339 timestamp | Window end (default: now UTC) |
include |
string array | Sections to return: summary, balance, by_chain, by_api_key, by_api_key_chain, top_methods, time_series, by_scenario (default: summary, balance) |
groupBy |
string | Flat grouped rows (overrides include): chain, api_key, api_key,chain, method, day |
chainId |
string | Filter to one chain |
apiKeyId |
positive int | Filter to one customer API key |
granularity |
day or hour |
Time series bucketing (default: day) |
limit |
int (1–100) | Max rows for top_methods and group_by (default: 20) |
Examples:
- Default (last 30 days, summary + balance): call
get_usagewith no parameters - Custom window with chain breakdown:
from=2026-06-01T00:00:00Z,to=2026-06-18T00:00:00Z,include=["summary","by_chain"] - Hourly time series for one API key:
include=["time_series"],granularity="hour",apiKeyId=42 - Top methods on a chain:
include=["top_methods"],chainId="ethereum",limit=10 - Flat grouped rows:
groupBy="api_key,chain",limit=50
list_api_keys — list API keys
list_api_keys calls GET /api-keys and returns an array of API key metadata (id, name, active, allowed_domains, routing_strategy, timestamps). The secret api_key value is never returned by this endpoint.
create_api_key — create a new API key
create_api_key calls POST /api-keys to provision a new key. The request requires:
| Parameter | Type | Required | Description |
|---|---|---|---|
allowed_domains |
string[] | yes | Array of allowed domains (valid URLs) |
routing_strategy |
"performance" or "economy" |
yes | Routing strategy for this key |
name |
string | no | Optional human-readable name |
Important: The response includes the secret api_key value, which is only shown once at creation. Store it securely — it cannot be retrieved again.
update_api_key — update an existing API key
update_api_key calls PUT /api-keys/:apiKey for partial updates:
| Parameter | Type | Required | Description |
|---|---|---|---|
apiKey |
string | yes | The API key string to update (from create_api_key) |
name |
string | no | Updated human-readable name |
active |
boolean | no | Activate or deactivate the key |
allowed_domains |
string[] | no | Updated array of allowed domains |
At least one of name, active, or allowed_domains must be provided. The secret api_key value is never returned by this endpoint.
Prerequisites
- Node.js 20+
- RouteMesh API key (sign up)
- Customer management token with
GET /usage,GET /api-keys,POST /api-keys, andPUT /api-keys/*in the route allowlist (optional, for customer tools)
Quick start
Install and build:
npm install
npm run build
Set API key for local dev:
cp .env.example .env
Run local build:
ROUTEMESH_API_KEY=your_key_here node dist/index.js
Run in dev mode:
ROUTEMESH_API_KEY=your_key_here npm run dev
Run published package:
ROUTEMESH_API_KEY=your_key_here npx -y @routemesh/mcp
Cursor MCP config
Add one of these to ~/.cursor/mcp.json.
Local build:
{
"mcpServers": {
"routemesh": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/PROJECT/dist/index.js"],
"env": {
"ROUTEMESH_API_KEY": "replace-with-your-routemesh-key",
"ROUTEMESH_MGMT_TOKEN": "replace-with-your-customer-mgmt-token"
}
}
}
}
Published package via npx:
{
"mcpServers": {
"routemesh": {
"command": "npx",
"args": ["-y", "@routemesh/mcp"],
"env": {
"ROUTEMESH_API_KEY": "replace-with-your-routemesh-key",
"ROUTEMESH_MGMT_TOKEN": "replace-with-your-customer-mgmt-token"
}
}
}
}
Development commands
npm run typecheck- static type checkingnpm run test- run tests oncenpm run test:watch- watch modenpm run build- compile todist/
Release
npm run test
npm run build
npm version patch
npm publish --access public
Notes
- The server is read-only for on-chain RPC tools.
get_usagereads billing/usage data from the API server; it does not use Atlas.- Requests use
ROUTEMESH_BASE_URLfirst, thenROUTEMESH_BACKUP_BASE_URLon retryable failures. rpc_list_chainsreads chain data fromGET /chainson the API server (ROUTEMESH_API_SERVER_URL).
References
- RouteMesh docs: https://routeme.sh/docs
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。