The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Defillama MCP listing page.
An MCP server that gives Claude, Cursor, and any MCP-compatible agent live DeFi data from DefiLlama — chain and protocol TVL, token prices, yield/farming pools, and stablecoin supply.
No API key. No signup. The public DefiLlama API is free.
Most "MCP for X" repos are half-finished and break on the second request. This one ships with tests and graceful error handling so an agent can actually rely on it.
Ask things like:
coingecko:bitcoin,coingecko:ethereum)| Tool | What it does |
|---|---|
get_chains_tvl | TVL across all blockchains, ranked |
search_protocols | Search protocols by name / symbol / category, ranked by TVL |
get_protocol | TVL, 1d/7d change, chains, category for one protocol |
get_token_prices | Current USD price for one or more tokens (DefiLlama coin ids) |
get_yield_pools | Top yield pools by APY, filter by chain / project / min TVL |
get_stablecoins | Largest stablecoins by circulating supply + peg type |
No install needed. It runs straight from npm via npx.
Add to claude_desktop_config.json:
Add to .cursor/mcp.json:
Restart the client and the defillama tools appear.
get_token_prices uses DefiLlama coin ids, comma-separated:
coingecko:bitcoin, coingecko:ethereumchain:0xcontract, e.g. ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 (WETH)MIT — see LICENSE.
I build custom MCP servers and AI systems (multi-agent, RAG, automation). Need a connector for your own API, or a full AI integration?
Built by Gleb.