Ankr Agent RPC
Read blockchain data on 200+ networks with decoded, token-efficient responses for agents
- Pricing
- Freemium
- Platforms
- API, CLI
- Runs
- Locally or Remotely
- Version
- 0.2.8
- Listing updated
- 3 days ago
About Ankr Agent RPC
Ankr Agent RPC is a freemium MCP server for developer tools. It can run locally on your machine or as a hosted remote server.
The core idea is a compact response format. Reads go out with the TORPC header Accept-Token-Tier: 2, so field names are shortened, hex becomes decimal, noisy fields such as logsBloom are dropped and contract calls and event logs come back as named arguments. The README reports a token-weighted saving of 48.4% at tier 2 and 35.3% at tier 1 in a live run over 21 methods and 25 Ethereum mainnet blocks, with eth_getTransactionByHash saving 69.0% and scalar reads 9 to 19%.
Tools split into three groups. Raw RPC with tier 2 decoding covers getTransaction, getLogs (wide ranges are chunk-scanned and paged) and getBlock. Indexed tools cover balances with USD values, multi-chain balances, wallet activity, NFTs, token holders, token prices and price history, cross-chain interactions, contract resolution including EIP-1967 proxies, and a search that resolves hashes, addresses or block numbers. expandResult continues any paged result, and listChains reports supported chains and tiers.
An Ankr API key is required; the README says a free one is available from Ankr. Use the hosted endpoint with an x-ankr-api-key header or run the npm package over stdio, so the server holds no credential of yours.
Install
Run in a terminal
claude mcp add --transport http agent-rpc-mcp https://mcp.ankr.com/rpcAdd to Settings → Connectors → Add custom connector
https://mcp.ankr.com/rpcAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"agent-rpc-mcp": {
"url": "https://mcp.ankr.com/rpc"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"agent-rpc-mcp": {
"type": "http",
"url": "https://mcp.ankr.com/rpc"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"agent-rpc-mcp": {
"serverUrl": "https://mcp.ankr.com/rpc"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"agent-rpc-mcp": {
"type": "http",
"url": "https://mcp.ankr.com/rpc"
}
}
}Configuration
ANKR_API_KEYAnkr API key. Create one at ankr.com/rpc.Required
Tools this server provides (15)
Taken from the project documentation; the running server may differ.
- getTransaction
- Transaction and receipt by hash, ABI-decoded.
- getLogs
- Decoded event logs; wide block ranges are chunk-scanned and paged.
- getBlock
- Block header, optionally with decoded transactions.
- getBalances
- Native coin and ERC-20 balances with USD.
- getAccountBalance
- Balances across many chains at once.
- getWalletActivity
- An address's transaction history, paged.
- getNFTs
- NFTs held by an address.
- getTokenHolders
- Holders of an ERC-20, paged.
- getTokenPrice
- USD price with chain, asset and as_of provenance.
- getTokenPriceHistory
- Historical price series for a token.
- getInteractions
- Which chains an address has touched.
- resolveContract
- Is-contract check, best-effort ERC-20 metadata and EIP-1967 proxy detection.
- searchChain
- Resolves a transaction or block hash, an address or a block number.
- expandResult
- Continues any paged result from its cursor.
- listChains
- Lists supported chains, max TORPC tier and indexer availability.
What it does
- Token-tier responses
- Tier 2 decodes ABI data and trims fields so responses use fewer tokens than raw JSON-RPC.
- Decoded transactions and logs
- getTransaction and getLogs return named arguments instead of raw hex.
- Wallet and token data
- Balances with USD, NFTs, token holders, prices and price history by address or token.
- Cross-chain lookups
- getAccountBalance and getInteractions span many chains at once.
- Contract resolution
- resolveContract reports whether an address is a contract, ERC-20 metadata and EIP-1967 proxy status.
- Paged results
- expandResult continues any paged response from its cursor.
- Hosted or local
- Use mcp.ankr.com/rpc with your key header, or run the npm package over stdio.
Good for
- Decode a transaction and its logs without reading raw hex
- Check an address's balances across several chains
- Look up the holders of an ERC-20 token
- Fetch historical USD prices for a token
- Reduce token spend when an agent reads a lot of chain data
Pricing
Freemium
Free Ankr API key available; premium requests are pay-as-you-go at $0.10 per 1M credits
Prices change. Check ankr.com before you buy.
Ankr Agent RPC FAQ
Do I need an API key?
Yes. The registry marks ANKR_API_KEY as required, and the README says a free key can be created at Ankr's RPC page.
How much does tier 2 save?
The README reports 48.4% fewer tokens in a live run over 21 methods and 25 Ethereum mainnet blocks, counted with o200k_base.
Can it send transactions or change my account?
The listed tools are reads. Account changes belong to the separate Ankr Management MCP.
How do I connect without installing?
Point your client at https://mcp.ankr.com/rpc and send the key in the x-ankr-api-key header or as a bearer token.
Is Ankr Agent RPC free?
Ankr Agent RPC has a free plan, with paid plans for more usage or features.
How do I add Ankr Agent RPC to Claude Code?
Run this command in your terminal: claude mcp add --transport http agent-rpc-mcp https://mcp.ankr.com/rpc
What are the best alternatives to Ankr Agent RPC?
The closest alternatives to Ankr Agent RPC are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Ankr Agent RPC

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Agent-Native Analytics
MCP serverOpen-source analytics app where an AI agent builds charts and dashboards from your data
- Remote
- Open source
- 7.7K GitHub stars
- Analytics and data