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.

Skills Repo
claude
What are the top 5 protocols by TVL?
⚡ get_protocol_metrics sort_by: "tvl_base desc", limit: 5
1. Aave · $25.7B
2. Lido · $20.0B
3. SSV Network · $15.5B
4. EigenCloud · $9.2B
5. Binance Staked ETH · $8.0B
ClaudeClaude
OpenClawOpenClaw
Claude CodeClaude Code
CursorCursor
WindsurfWindsurf
CodexCodex
Gemini CLIGemini CLI
OpenCodeOpenCode
ClineCline
ClaudeClaude
OpenClawOpenClaw
Claude CodeClaude Code
CursorCursor
WindsurfWindsurf
CodexCodex
Gemini CLIGemini CLI
OpenCodeOpenCode
ClineCline
🔌

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.

Paste into Claude, OpenClaw, or any AI agent

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
1

Paste the URL

Add the URL above to your MCP client. That's the only config needed.

2

Authenticate

Your agent will prompt you to log in via browser on first use. Sign in with your DefiLlama account. API plan required.

3

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.

LlamaAI

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.

Explore LlamaAI

23 Tools

Everything DeFi, One Connection

resolve_entity

Fuzzy-match protocol, chain, or token names to exact slugs

get_protocol_metrics

Protocol TVL, fees, revenue, mcap, ratios, trends

get_protocol_info

Protocol metadata, URLs, audit info, tags

get_chain_metrics

Chain TVL, gas fees, revenue, DEX volume

get_chain_info

Chain metadata, type, L2 parent

get_category_metrics

Category rankings by TVL, fees, protocol count

list_categories

List all valid protocol/token/chain categories

get_token_prices

Token price, mcap, volume, ATH, growth rankings

get_token_tvl

Token deposits across DeFi protocols

get_token_unlocks

Vesting schedules and upcoming unlocks

get_yield_pools

Pool APY, TVL, lending/borrowing rates

get_market_totals

Global DeFi TVL, DEX volume, derivatives volume

get_cex_volumes

Centralized exchange trading volume

get_open_interest

Derivatives 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-data

Core reference: maps any DeFi question to the right tool

protocol-deep-dive

Complete protocol report: TVL, fees, yields, income, users, token

token-research

Token analysis: price, unlocks, DeFi deposits, yield opportunities

chain-ecosystem

Blockchain overview: TVL, top protocols, bridges, stablecoins

defi-market-overview

Full market snapshot: TVL, categories, chains, events

yield-strategies

Yield hunting: pool filtering, APY conventions, capacity

risk-assessment

Risk evaluation: hacks, oracles, treasury, fundamentals

flows-and-events

Capital flows: bridges, ETFs, stablecoins, hacks, raises

market-analysis

Screening and comparison: valuation ratios, growth

institutional-crypto

Corporate holdings, ETF flows, mNAV ratios

Install skills manually

The quick start prompt installs these automatically. To install manually, run:

Works with any agent
npx skills add DefiLlama/defillama-skills --yes

Ready to get started?

Requires an API plan. Uses the same credits as your API key.