DefiLlama data API

4 endpoints for DefiLlama: protocols, protocol, chains, stablecoins. One API key, one JSON schema, as MCP tools or REST.

Endpoints

Call any of them over MCP with call_endpoint and its path, or over REST.

EndpointReturnsCreditsCache
protocolsGET /v1/defillama/protocolsDeFi protocols ranked by total value locked, with market cap, chain breakdown and one and seven day change.530 min
protocolGET /v1/defillama/protocolOne DeFi protocol: current TVL, per-chain breakdown, growth since listing, treasury, raises and hacks.530 min
chainsGET /v1/defillama/chainsChains ranked by total value locked, with share of all tracked TVL, gas token and chain id.130 min
stablecoinsGET /v1/defillama/stablecoinsStablecoins ranked by circulating value: peg, mechanism, price, weekly change and the chains they run on.530 min

Connect your agent over MCP

Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.

Claude Code · Run in a terminal
claude mcp add --transport http krilldata \
  https://data.openkrill.app/mcp \
  --header "x-api-key: YOUR_API_KEY"
Cursor · Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "krilldata": {
      "url": "https://data.openkrill.app/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}
Claude Desktop · Add to claude_desktop_config.json
{
  "mcpServers": {
    "krilldata": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://data.openkrill.app/mcp",
        "--header",
        "x-api-key:${API_KEY}"
      ],
      "env": {
        "API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
DefiLlama data API for AI agents | KrillData