defillama-mcp-server MCP Server
MCP server for DeFi Llama — free DeFi TVL, yields, stablecoins, bridges, DEX, and fee data for AI...
defillama-mcp-server scores 52 (Fair), licensed MIT and written in JavaScript. It installs as a local process. It declares 8 tools. Filed under AI and memory, Finance. GitHub shows 0 stars. Package registries report about 55 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
52 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
- Repository is archived.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 52 comes from
22 + 10 + 0 + 10 + 0 + 10 = 52. 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: 0 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": { "friendlygeorge-defillama-mcp-server": { "command": "npx", "args": [ "-y", "defillama-mcp-server@1.0.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools8Tool docs quality grade C
All capabilitiesget_bridgestoolGet cross-chain bridge TVL and volume data
get_dex_volumestoolGet DEX trading volumes across chains
Get protocol fee and revenue data
get_protocol_tvltoolGet detailed TVL breakdown for a specific protocol (chain distribution, history, description)
get_stablecoinstoolGet stablecoin market cap data and rankings
get_tvl_by_chaintoolGet total TVL for a specific chain (Ethereum, Arbitrum, Base, Solana, etc.)
get_yieldstoolGet yield/APY data for lending pools and staking, filter by chain / project / min TVL
search_protocolstoolSearch DeFi protocols by name — returns top results with TVL, chains, category
About
DeFi Llama MCP Server
An MCP server for DeFi Llama — connect any MCP-compatible client to free DeFi protocol data.
What is this?
An MCP (Model Context Protocol) server that gives AI assistants and agents access to DeFi Llama's free DeFi data API — protocol TVL, chain TVL, yield pools, stablecoins, cross-chain bridges, DEX volumes, and protocol fees — through natural language.
Use it with Claude Desktop, Cursor, Windsurf, Cline, Continue, or any MCP-compatible client to ask questions about DeFi protocols, track TVL movements, compare yields, and explore the on-chain economy.
Why use this?
- No API key required — DeFi Llama is a free public API
- 8 built-in tools — covers the most common DeFi data queries
- Clean markdown output — results read naturally in chat
- Rate-limited automatically — polite 500ms throttle across all endpoints
Tools
| Tool | Description |
|---|---|
search_protocols | Search DeFi protocols by name — returns top results with TVL, chains, category |
get_protocol_tvl | Get detailed TVL breakdown for a specific protocol (chain distribution, history, description) |
get_tvl_by_chain | Get total TVL for a specific chain (Ethereum, Arbitrum, Base, Solana, etc.) |
get_yields | Get yield/APY data for lending pools and staking, filter by chain / project / min TVL |
get_stablecoins | Get stablecoin market cap data and rankings |
get_bridges | Get cross-chain bridge TVL and volume data |
get_dex_volumes | Get DEX trading volumes across chains |
get_protocol_fees | Get protocol fee and revenue data |
Quick Start
1. Add to your MCP client
Add this to your MCP client config (e.g. claude_desktop_config.json):
{
"mcpServers": {
"defillama": {
"command": "npx",
"args": ["-y", "defillama-mcp-server"]
}
}
}
That's it. npx downloads and runs it automatically. No API key, no install step.
2. Use it
Ask your AI assistant things like:
- "What are the top DeFi protocols by TVL on Ethereum?"
- "Search for Aave and show me the chain breakdown"
- "What's the total TVL on Arbitrum?"
- "Show me the highest yield stablecoin pools on Base with at least $10M TVL"
- "List the top 5 stablecoins by market cap"
- "Which bridges have the most TVL?"
- "Show me DEX trading volumes for the last 24h"
- "What are the protocols with the most fees?"
Example Output
search_protocols
Top 5 protocols matching "aave" (by TVL):
- **Aave** (AAVE) — TVL: $12.45B | Category: Lending | Chains: Ethereum, Arbitrum, Polygon, Base, Optimism, +6 | Slug: `aave`
- **Aave v2** (AAVE) — TVL: $4.20B | Category: Lending | Chains: Ethereum, Polygon, Avalanche | Slug: `aave-v2`
- **Aave v3** (AAVE) — TVL: $8.10B | Category: Lending | Chains: Ethereum, Arbitrum, Polygon, Base, Optimism | Slug: `aave-v3`
get_yields
Top 5 yield pools (chain: Ethereum | min TVL: $10.00M | min APY: 0%):
- **Lido** — stETH on Ethereum 🟢 | APY: 3.42% (3.42% base) | TVL: $23.45B
- **Aave v3** — USDC on Ethereum 🟢 | APY: 4.85% (1.50% base + 3.35% reward) | TVL: $1.85B
- **Compound v3** — USDC on Ethereum 🟢 | APY: 5.12% (3.20% base + 1.92% reward) | TVL: $890.45M
get_tvl_by_chain
Ethereum — Chain TVL
- **Total TVL:** $115.32B
- **Native Token:** ETH
- **CoinGecko ID:** ethereum
### Top Tokens by TVL
- **ETH** (Ether): $67.23B
- **USDC** (USD Coin): $4.12B
- **USDT** (Tether): $3.45B
- **WBTC** (Wrapped BTC): $2.89B
- **WSTETH** (Wrapped stETH): $2.34B
Use Cases
DeFi Research
"Search for Aave and show me the chain breakdown" — find protocols, compare TVL across chains, and understand where value is concentrated. Works with any protocol in DeFi Llama's database of 3,000+ projects.
Yield Optimization
"Show me the highest yield stablecoin pools on Base with at least $10M TVL" — filter yield opportunities by chain, project, minimum TVL, and asset type. Find safe yields without hunting through dashboards.
Chain Analysis
"What's the total TVL on Arbitrum?" — get chain-level stats including top tokens by TVL. Useful for understanding where liquidity is flowing and which chains are growing.
Stablecoin Intelligence
"List the top 5 stablecoins by market cap" — track stablecoin market caps, circulating supply, and price deviations. Essential for understanding DeFi's dollar-denominated liquidity.
Cross-Chain Monitoring
"Which bridges have the most TVL?" — monitor cross-chain bridge activity and volume. Track which bridges are gaining or losing share.
Protocol Revenue Tracking
"What are the protocols with the most fees?" — analyze protocol fee generation and revenue. Useful for fundamental analysis and comparing protocol economics.
Security
- No API key required — uses DeFi Llama's free public API. No authentication needed.
- Read-only — only fetches public DeFi data from DeFi Llama's API. No writes, no mutations.
- No local file access — does not read or write any files on your machine.
- No shell access — does not execute commands or spawn processes.
- Rate-limited — automatically caps requests to be a polite API citizen.
- Open source — MIT licensed. Inspect the code at GitHub.
Troubleshooting
"Protocol not found" errors
Use search_protocols first to find the correct DeFi Llama slug. Protocol slugs are lowercase with hyphens (e.g. aave-v3, lido), not ticker symbols.
Slow responses
DeFi Llama's /protocols and /pools endpoints return multi-MB responses. The server throttles to ~2 calls/second. For large queries, results may take 1-2 seconds.
Server won't start
Make sure Node.js 18+ is installed: node --version. If using npx, ensure npm is up to date: npm install -g npm@latest.
MCP client can't connect
Verify the config path is correct. Claude Desktop uses ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows. Restart the client after config changes.
Requirements
- Node.js 18+
- No API key needed (DeFi Llama is a free public API)
Rate Limits
DeFi Llama doesn't publish hard rate limits, but the server automatically throttles requests to ~2 calls/second (500ms minimum interval) to be a polite citizen. The /protocols and /pools endpoints are large (multi-MB), so the throttle also helps avoid unnecessary load.
Data Sources
- Protocols & TVL:
https://api.llama.fi - Yields:
https://yields.llama.fi - Stablecoins:
https://stablecoins.llama.fi
All endpoints are free and require no authentication. Full API documentation: https://defillama.com/docs/api
Development
git clone https://github.com/nova/defillama-mcp-server.git
cd defillama-mcp-server
npm install
npm run build
npm start
License
MIT
Frequently asked questions
What is defillama-mcp-server MCP Server?
MCP server for DeFi Llama — free DeFi TVL, yields, stablecoins, bridges, DEX, and fee data for AI...
How do I install defillama-mcp-server 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-server MCP Server runs locally from the npm package defillama-mcp-server with the command npx -y defillama-mcp-server@1.0.0.
Is defillama-mcp-server MCP Server free and open source?
Yes. defillama-mcp-server 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-server MCP Server support remote (HTTP) connections?
No remote endpoint is listed for defillama-mcp-server MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does defillama-mcp-server MCP Server provide?
defillama-mcp-server MCP Server provides 8 tools, including get_bridges, get_dex_volumes, get_protocol_fees, and get_protocol_tvl. See the full tool list for descriptions and parameters.
How is defillama-mcp-server MCP Server's trust score calculated?
defillama-mcp-server MCP Server scores 52 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.