
Defillama Mcp Server
io.github.friendlygeorgePublished by GitHub account friendlygeorgev1.0.0Updated Oct 24, 2026
MCP server for DeFi Llama — free DeFi TVL, yields, stablecoins, bridges, DEX, and fee data for AI...
Overview
A local MCP server that gives an assistant read-only access to DeFi Llama's free public data on protocol TVL, yields, stablecoins, bridges, DEX volumes and fees
- What you can do
- Search protocols and read TVL breakdowns by protocol or chain, including chain distribution and history. Filter yield and APY pools by chain, project, minimum TVL and asset type. Read stablecoin market caps and rankings, cross-chain bridge TVL and volume, DEX trading volumes, and protocol fee and revenue data. Results come back as markdown for chat.
- When to use it
- Useful for DeFi research in chat: comparing protocol TVL across chains, screening yield pools, tracking stablecoin liquidity, monitoring bridges, or comparing protocol fee revenue, without opening dashboards.
- Requirements
- Runs locally over stdio, typically launched with npx from the npm package defillama-mcp-server. Needs Node.js 18+ and network access to DeFi Llama's public API endpoints. No API key or account is required.
Installation
In SourceWeft
- Open Defillama Mcp Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
DeFi Llama MCP Server
An MCP server for DeFi Llama — connect any MCP-compatible client to free DeFi protocol data.
[npm version] [npm downloads] [License: MIT] [MCP Compatible] [TypeScript] [Claude Desktop] [Cursor]
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
Quick Start
1. Add to your MCP client
Add this to your MCP client config (e.g. claude_desktop_config.json):
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
get_yields
get_tvl_by_chain
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
License
MIT
Source: README.md at commit 3771ae0
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts