DefiLlama Skills

March 26, 2026 · View on GitHub

Agent skills for DefiLlama MCP — 23 DeFi analytics tools with guided workflows.

Quick Install

Paste this prompt into your AI agent:

Read https://raw.githubusercontent.com/DefiLlama/defillama-skills/master/defillama-setup/SKILL.md and follow the instructions to install DefiLlama MCP.

Manual Setup

1. Add the MCP server

Claude.ai (web): Go to Customize → Connectors → + → Add custom connector. Name: DefiLlama, URL: https://mcp.defillama.com/mcp. Click Add and log in.

Claude Code:

claude mcp add defillama --transport http https://mcp.defillama.com/mcp

Codex:

codex mcp add defillama --url https://mcp.defillama.com/mcp

Claude Desktop / Cursor / Windsurf:

{
  "mcpServers": {
    "defillama": {
      "url": "https://mcp.defillama.com/mcp"
    }
  }
}

Gemini CLI:

{
  "mcpServers": {
    "defillama": {
      "httpUrl": "https://mcp.defillama.com/mcp"
    }
  }
}

OpenCode:

{
  "mcp": {
    "defillama": {
      "type": "remote",
      "url": "https://mcp.defillama.com/mcp"
    }
  }
}

OpenClaw and other stdio-only agents (uses mcp-remote as a bridge):

{
  "mcp": {
    "servers": {
      "defillama": {
        "command": "npx",
        "args": ["-y", "mcp-remote", "https://mcp.defillama.com/mcp"]
      }
    }
  }
}

2. Log in

Requires an active API subscription.

Claude Code: Run /mcp, navigate to the DefiLlama server, press Enter, and select "Authenticate".

Desktop agents (Cursor, Windsurf, Claude Desktop): On first connection your browser opens the DefiLlama login page. Sign in and you're done.

Headless agents (OpenClaw): mcp-remote outputs an OAuth URL. Open it on your phone/computer, log in, then copy the localhost:... URL from your browser address bar after redirect and send it back to the agent.

No API keys, no env vars. Just log in once.

3. Install skills

npx skills add DefiLlama/defillama-skills --yes

Skills

SkillDescription
defi-dataCore reference — maps any DeFi question to the right tool and params
defi-market-overviewFull market snapshot: TVL, categories, chains, events, stablecoins, ETFs
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, users
market-analysisScreening and comparison: valuation ratios, growth, cross-entity
yield-strategiesYield hunting: pool filtering, APY conventions, capacity assessment
risk-assessmentRisk evaluation: hacks, oracles, treasury, fundamentals, yield flags
flows-and-eventsCapital flows: bridges, ETFs, stablecoins, hacks, raises, OI
institutional-cryptoInstitutional exposure: corporate holdings, ETF flows, mNAV ratios

Tools (23)

ToolDescription
resolve_entityFuzzy-match protocol, chain, or token names to exact slugs
get_market_totalsGlobal DeFi TVL, DEX volume, derivatives volume
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 categories
get_token_pricesToken price, mcap, volume, ATH
get_token_tvlToken deposits across DeFi protocols
get_token_unlocksVesting schedules and upcoming unlocks
get_yield_poolsPool APY, TVL, lending/borrowing rates
get_stablecoin_supplyStablecoin issuance by chain
get_bridge_flowsBridge volume and net flows by chain
get_etf_flowsBitcoin and Ethereum ETF inflows/outflows
get_dat_holdingsInstitutional crypto holdings and mNAV
get_eventsHacks, fundraises, protocol events
get_oracle_metricsOracle TVS and protocol coverage
get_cex_volumesCentralized exchange trading volume
get_open_interestDerivatives open interest
get_treasuryProtocol treasury holdings
get_user_activityDaily active users and transactions
get_income_statementProtocol revenue breakdown