defillama-mcp MCP Server
DefiLlama DeFi data: chain/protocol TVL, yields, stablecoins, token prices. No API key.
defillama-mcp scores 56 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 6 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 93 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
56 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
85/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 56 comes from
22 + 10 + 0 + 10 + 4 + 10 = 56. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "glebenjoy-defillama-mcp": { "command": "npx", "args": [ "-y", "defillama-mcp@1.0.2" ] } }}
Environment variables
This server does not declare environment variables.
Tools6Tool docs quality grade C
All capabilitiesget_chains_tvltoolTVL across all blockchains, ranked
get_protocoltoolTVL, 1d/7d change, chains, category for one protocol
get_stablecoinstoolLargest stablecoins by circulating supply + peg type
get_token_pricestoolCurrent USD price for one or more tokens (DefiLlama coin ids)
get_yield_poolstoolTop yield pools by APY, filter by chain / project / min TVL
search_protocolstoolSearch protocols by name / symbol / category, ranked by TVL
About
DefiLlama MCP
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.
What your agent can do
Ask things like:
- "Which chains have the most TVL right now?"
- "What's Aave's TVL and how did it move this week?"
- "Find the highest-APY stablecoin pools on Ethereum with at least $10M TVL."
- "Price of BTC and ETH?" (
coingecko:bitcoin,coingecko:ethereum) - "List the biggest stablecoins by circulating supply."
Tools
| 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 |
Install
No install needed. It runs straight from npm via npx.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"defillama": {
"command": "npx",
"args": ["-y", "defillama-mcp"]
}
}
}
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"defillama": {
"command": "npx",
"args": ["-y", "defillama-mcp"]
}
}
}
Restart the client and the defillama tools appear.
Coin ids for prices
get_token_prices uses DefiLlama coin ids, comma-separated:
- By CoinGecko id:
coingecko:bitcoin,coingecko:ethereum - By contract:
chain:0xcontract, e.g.ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2(WETH)
Develop
npm install
npm run dev # run from TypeScript source over stdio
npm test # run the unit tests
npm run build # compile to dist/
License
MIT — see LICENSE.
Hire me
I build custom MCP servers and AI systems (multi-agent, RAG, automation). Need a connector for your own API, or a full AI integration?
- Hire me on Upwork: https://www.upwork.com/freelancers/~01946645ed245c263d
- Or open an issue on this repo.
Built by Gleb.
Frequently asked questions
What is defillama-mcp MCP Server?
DefiLlama DeFi data: chain/protocol TVL, yields, stablecoins, token prices. No API key.
How do I install defillama-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. defillama-mcp MCP Server runs locally from the npm package defillama-mcp with the command npx -y defillama-mcp@1.0.2.
Is defillama-mcp MCP Server free and open source?
Yes. defillama-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does defillama-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for defillama-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does defillama-mcp MCP Server provide?
defillama-mcp MCP Server provides 6 tools, including get_chains_tvl, get_protocol, get_stablecoins, and get_token_prices. See the full tool list for descriptions and parameters.
How is defillama-mcp MCP Server's trust score calculated?
defillama-mcp MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.