chain-data
Provides on-chain data for Ethereum, including wallet portfolio (native and ERC-20 balances with USD value), token info, gas prices, and token prices.
Provides on-chain data for Optimism, including wallet portfolio (native and ERC-20 balances with USD value), token info, gas prices, and token prices.
Provides on-chain data for Polygon, including wallet portfolio (native and ERC-20 balances with USD value), token info, gas prices, and token prices.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@chain-data Show me the portfolio for 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
chain-data π
Live multi-chain on-chain data, aggregated in ONE call β built for AI agents.
Give it a wallet and get its whole portfolio across Ethereum, Base, Polygon, Arbitrum and Optimism β native balances + top ERC-20 holdings, each priced in USD β in a single response. Plus token/contract facts, live gas and prices. All read straight from public RPCs and DefiLlama; no API key, no node.
Available as an MCP server (free) and a pay-per-call x402 API ($0.10 USDC on Base, no sign-up).
Why
An agent that wants a wallet's multi-chain net worth would otherwise have to:
fan out N JSON-RPC calls to N chains β ABI-encode balanceOf/decimals/symbol β batch them β join against a price feed β repeat per chain. chain-data does all of that server-side and returns one fresh JSON object per call. That convenience on live data is the point β agents pay for the aggregation, not for a static answer they could cache.
Related MCP server: Datai MCP Server
Tools (MCP)
Tool | What it does |
| Native + ERC-20 balances with live USD value, across 5 chains, in one call |
| symbol, name, decimals, total supply, is-contract, EIP-1967 proxy + implementation, price |
| base fee / gas price / priority fee / latest block, per chain or all at once |
| live USD price by |
Use as an MCP server (free)
{
"mcpServers": {
"chain-data": { "command": "npx", "args": ["-y", "chain-data-mcp"] }
}
}Or over HTTP: POST https://chain-data.vercel.app/mcp.
Free HTTP API
GET /portfolio?wallet=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
GET /token?chain=base&address=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
GET /gas
GET /price?chain=ethereum&address=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2Rate-limited to 30 requests/hour/IP.
Pay-per-call (x402)
The /pro/* routes are gated by x402. Your agent pays $0.10 USDC per call automatically β no sign-up, no API key. Settles on-chain (Base) to the operator wallet. No rate limit.
GET /pro/portfolio?wallet=0x...
GET /pro/token?chain=base&address=0x...
GET /pro/gas
GET /pro/price?chain=ethereum&address=0x...Supported chains
Ethereum Β· Base Β· Polygon Β· Arbitrum One Β· OP Mainnet β all via public, key-free RPCs with automatic failover.
Data sources
Balances / token info / gas: public JSON-RPC endpoints (
mainnet.base.org,eth.llamarpc.com,polygon-rpc.com, β¦).Prices: DefiLlama coins API (free) / CoinGecko ids.
No credentials are stored or required. The server holds no private key β payTo is a public receiving address only.
Local dev
npm install
npm run build
npm run test:engine # live smoke test against real RPCs
npm run dev:http # local HTTP server on :8080 (payments off unless X402_* set)
npm run dev:mcp # local stdio MCP serverLicense
MIT
Available Tools
4 toolsgas_pricesA
Get LIVE gas prices (base fee, gas price, priority fee, latest block) for one chain or all supported chains at once. Use to decide where/when a transaction is cheapest.
Inputs: chain.
token_infoA
Get on-chain facts about a token/contract: symbol, name, decimals, total supply, whether it is a deployed contract, whether it is an EIP-1967 proxy (and its implementation address), and live USD price. Reads directly from the chain. Use to vet or describe a token contract before interacting with it.
Inputs: chain (required), address (required).
token_priceA
Get the live USD price of a token by {chain,address} (most precise) or by coingeckoId or symbol. Free key-less price feed (DefiLlama/CoinGecko).
Inputs: chain, address, coingeckoId, symbol.
wallet_portfolioA
Get a wallet's LIVE multi-chain portfolio in ONE call: native coin balances (ETH/POL) AND top ERC-20 token holdings, each priced in USD, across Ethereum, Base, Polygon, Arbitrum and Optimism. Reads balances straight from public RPCs and joins live prices. Use this whenever you need the current on-chain holdings / net worth of an EVM address without making dozens of RPC calls yourself.
Inputs: wallet (required), chains.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
Each tool targets a distinct facet of chain data: gas prices, token metadata, token pricing, and wallet portfolio. Overlap between token_info and token_price is minimal since token_info provides comprehensive on-chain facts while token_price is a focused price lookup.
All tool names follow a consistent snake_case pattern using noun phrases (gas_prices, token_info, token_price, wallet_portfolio). No mixing of styles or inconsistent verbs.
With 4 tools, the server is well-scoped for its purpose of providing on-chain data. Each tool serves a clear need without unnecessary bloat or redundancy.
The tools cover gas, token details, price, and portfolio. Missing features like block info or transaction history are acceptable given the focused scope, but a chain-data server could optionally include additional data points.
Related MCP Connectors
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.
Pay-per-call on-chain data for AI agents: token, wallet, risk, whale, NFT, tx. No API keys.
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
Related MCP Servers
- FlicenseCqualityBmaintenanceEnables AI agents to interact with any EVM-compatible blockchain through natural language, supporting token swaps, cross-chain bridges, staking, lending, governance, gas optimization, and portfolio tracking across networks like Ethereum, BSC, Polygon, Arbitrum, and more.10031 npm44-
- AlicenseAqualityDmaintenanceEnables AI agents to retrieve real-time data on wallet DeFi positions, token balances, and NFT holdings across multiple blockchains. It supports hundreds of protocols and provides specialized tools for chain-specific or protocol-specific portfolio analysis.824 npm3MIT
- AlicenseAqualityDmaintenanceDescription: EVM blockchain intelligence toolkit for AI agents. 20 tools for token prices, gas comparison, swap quotes, yield rates, honeypot detection, and transaction simulation across 5 EVM chains. Zero config, no API keys required.2669 npm3MIT
- AlicenseAqualityDmaintenanceEnables AI agents to check balances and send transactions across multiple blockchains with automatic spending limit protection and policy enforcement.3MIT