@routemesh/mcp
v0.1.2
Published
RouteMesh MCP server for cross-chain RPC data and transactions
Downloads
303
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...."
Tools
rpc_list_chains- discover and filter supported chainsrpc_call- generic JSON-RPC escape hatchrpc_get_block- fetch by number/tag/hashrpc_get_transaction- fetch transaction by hashrpc_get_transaction_receipt- fetch receipt by hashrpc_get_logs- query logs with block/topic filtersrpc_get_balance- native token balance for an addressrpc_call_contract- read-onlyeth_callrpc_estimate_gas- gas estimationrpc_get_fee_data- gas price + EIP-1559 hintsrpc_trace_transaction- trace/debug transaction best effort
Prerequisites
- Node.js 20+
- RouteMesh API key (sign up)
Quick start
Install and build:
npm install
npm run buildSet API key for local dev:
cp .env.example .envRun local build:
ROUTEMESH_API_KEY=your_key_here node dist/index.jsRun in dev mode:
ROUTEMESH_API_KEY=your_key_here npm run devRun published package:
ROUTEMESH_API_KEY=your_key_here npx -y @routemesh/mcpCursor 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"
}
}
}
}Published package via npx:
{
"mcpServers": {
"routemesh": {
"command": "npx",
"args": ["-y", "@routemesh/mcp"],
"env": {
"ROUTEMESH_API_KEY": "replace-with-your-routemesh-key"
}
}
}
}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 publicNotes
- The server is read-only.
- Requests use
ROUTEMESH_BASE_URLfirst, thenROUTEMESH_BACKUP_BASE_URLon retryable failures. rpc_list_chainsparses chain data fromhttps://routeme.sh/llms.txt.
References
- RouteMesh chain list: https://routeme.sh/llms.txt
- RouteMesh docs: https://routeme.sh/docs
