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.
| Endpoint | Returns | Credits | Cache |
|---|---|---|---|
| protocolsGET /v1/defillama/protocols | DeFi protocols ranked by total value locked, with market cap, chain breakdown and one and seven day change. | 5 | 30 min |
| protocolGET /v1/defillama/protocol | One DeFi protocol: current TVL, per-chain breakdown, growth since listing, treasury, raises and hacks. | 5 | 30 min |
| chainsGET /v1/defillama/chains | Chains ranked by total value locked, with share of all tracked TVL, gas token and chain id. | 1 | 30 min |
| stablecoinsGET /v1/defillama/stablecoins | Stablecoins ranked by circulating value: peg, mechanism, price, weekly change and the chains they run on. | 5 | 30 min |
Connect your agent over MCP
Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.
claude mcp add --transport http krilldata \
https://data.openkrill.app/mcp \
--header "x-api-key: YOUR_API_KEY"{
"mcpServers": {
"krilldata": {
"url": "https://data.openkrill.app/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}{
"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"
}
}
}
}