{
  "markdown": "# DefiLlama MCP\n\nAn [MCP](https://modelcontextprotocol.io) server that gives Claude, Cursor, and any\nMCP-compatible agent **live DeFi data from [DefiLlama](https://defillama.com)** —\nchain and protocol TVL, token prices, yield/farming pools, and stablecoin supply.\n\nNo API key. No signup. The public DefiLlama API is free.\n\n> Most \"MCP for X\" repos are half-finished and break on the second request. This one ships\n> with tests and graceful error handling so an agent can actually rely on it.\n\n## What your agent can do\n\nAsk things like:\n\n- \"Which chains have the most TVL right now?\"\n- \"What's Aave's TVL and how did it move this week?\"\n- \"Find the highest-APY stablecoin pools on Ethereum with at least $10M TVL.\"\n- \"Price of BTC and ETH?\" (`coingecko:bitcoin,coingecko:ethereum`)\n- \"List the biggest stablecoins by circulating supply.\"\n\n## Tools\n\n| Tool | What it does |\n|------|--------------|\n| `get_chains_tvl` | TVL across all blockchains, ranked |\n| `search_protocols` | Search protocols by name / symbol / category, ranked by TVL |\n| `get_protocol` | TVL, 1d/7d change, chains, category for one protocol |\n| `get_token_prices` | Current USD price for one or more tokens (DefiLlama coin ids) |\n| `get_yield_pools` | Top yield pools by APY, filter by chain / project / min TVL |\n| `get_stablecoins` | Largest stablecoins by circulating supply + peg type |\n\n## Install\n\nNo install needed. It runs straight from npm via `npx`.\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"defillama\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"defillama-mcp\"]\n    }\n  }\n}\n```\n\n### Cursor\n\nAdd to `.cursor/mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"defillama\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"defillama-mcp\"]\n    }\n  }\n}\n```\n\nRestart the client and the `defillama` tools appear.\n\n## Coin ids for prices\n\n`get_token_prices` uses DefiLlama coin ids, comma-separated:\n\n- By CoinGecko id: `coingecko:bitcoin`, `coingecko:ethereum`\n- By contract: `chain:0xcontract`, e.g. `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2` (WETH)\n\n## Develop\n\n```bash\nnpm install\nnpm run dev     # run from TypeScript source over stdio\nnpm test        # run the unit tests\nnpm run build   # compile to dist/\n```\n\n## License\n\nMIT — see [LICENSE](./LICENSE).\n\n---\n\n## Hire me\n\nI build custom MCP servers and AI systems (multi-agent, RAG, automation). Need a connector for your own API, or a full AI integration?\n\n- Hire me on Upwork: https://www.upwork.com/freelancers/~01946645ed245c263d\n- Or open an issue on this repo.\n\nBuilt by Gleb.\n",
  "bytes": 2574,
  "sha": "96c36eb025df76b21a4dd2612b3da92aabc091998b34b400965b31e2773ba9ce",
  "repo_slug": "glebenjoy/defillama-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_glebenjoy_defillama_mcp_b9d22d04/readme"
}