DefiLlama MCP Server
DeFi Data for AI Agents
Connect your AI agent to DefiLlama data. Ask questions about TVL, yields, token prices, protocol metrics, stablecoins, bridges, ETFs, and more. Your agent gets the answers directly.
Requires an API plan. Uses the same credits as your DefiLlama API key.
23 DeFi Tools
TVL, fees, revenue, token prices, yields, stablecoins, bridges, ETFs, hacks, treasuries, and more, all accessible through natural language.
Easy Setup
Paste the quick start prompt, your agent handles the rest. Works with Claude Code, OpenClaw, Cursor, Codex, Gemini CLI, and more.
Uses Your API Credits
Same credit pool as your DefiLlama API key. One credit per query. No separate billing. If you have an API plan, you're already set.
Quick Start
Paste This Into Your Agent
Copy this prompt and send it to your AI agent. It handles the rest.
Read https://raw.githubusercontent.com/DefiLlama/defillama-skills/refs/heads/master/defillama-setup/SKILL.md and follow the instructions to connect to DefiLlama MCP
Or add manually to your client config
claude mcp add defillama --transport http https://mcp.defillama.com/mcp
Paste the URL
Add the URL above to your MCP client. That's the only config needed.
Authenticate
Your agent will prompt you to log in via browser on first use. Sign in with your DefiLlama account. API plan required.
Start querying
Ask your agent anything about DeFi. It calls the right tool automatically.
Note: each DefiLlama account can only be connected to one MCP client at a time. Connecting a new client will disconnect the previous one.

Need more than raw data? Try LlamaAI
Charts, onchain analysis, price forecasts, web search, and more. All in one AI chat. Available with the Pro plan at a lower price point.
23 Tools
Everything DeFi, One Connection
resolve_entityFuzzy-match protocol, chain, or token names to exact slugs
get_protocol_metricsProtocol TVL, fees, revenue, mcap, ratios, trends
get_protocol_infoProtocol metadata, URLs, audit info, tags
get_chain_metricsChain TVL, gas fees, revenue, DEX volume
get_chain_infoChain metadata, type, L2 parent
get_category_metricsCategory rankings by TVL, fees, protocol count
list_categoriesList all valid protocol/token/chain categories
get_token_pricesToken price, mcap, volume, ATH, growth rankings
get_token_tvlToken deposits across DeFi protocols
get_token_unlocksVesting schedules and upcoming unlocks
get_yield_poolsPool APY, TVL, lending/borrowing rates
get_market_totalsGlobal DeFi TVL, DEX volume, derivatives volume
get_cex_volumesCentralized exchange trading volume
get_open_interestDerivatives open interest
Workflow Skills
Guided Research Workflows
Optional skills that teach your agent structured analysis patterns, turning raw tools into expert-level DeFi research. Installed automatically by the quick start prompt unless you opted to skip them.
defi-dataCore reference: maps any DeFi question to the right tool
protocol-deep-diveComplete protocol report: TVL, fees, yields, income, users, token
token-researchToken analysis: price, unlocks, DeFi deposits, yield opportunities
chain-ecosystemBlockchain overview: TVL, top protocols, bridges, stablecoins
defi-market-overviewFull market snapshot: TVL, categories, chains, events
yield-strategiesYield hunting: pool filtering, APY conventions, capacity
risk-assessmentRisk evaluation: hacks, oracles, treasury, fundamentals
flows-and-eventsCapital flows: bridges, ETFs, stablecoins, hacks, raises
market-analysisScreening and comparison: valuation ratios, growth
institutional-cryptoCorporate holdings, ETF flows, mNAV ratios
Install skills manually
The quick start prompt installs these automatically. To install manually, run:
npx skills add DefiLlama/defillama-skills --yes
Ready to get started?
Requires an API plan. Uses the same credits as your API key.