Defillama

live Data

DefiLlama MCP — DeFi analytics from DefiLlama (free, no auth)

6 tools
0ms auth
free tier 50 calls/day

Tools

defi_tvl_protocols

Get TVL (Total Value Locked) for all DeFi protocols, optionally filtered by name or category. Returns protocol name, TVL, chain, and category.

No parameters required.

Try it
defi_protocol_detail

Get detailed TVL history, chain breakdowns, and token info for a specific DeFi protocol.

No parameters required.

Try it
defi_chain_tvl

Get TVL (Total Value Locked) for each blockchain. No parameters needed.

No parameters required.

Try it
defi_protocol_fees

Get fee or revenue data for a DeFi protocol. Returns daily fee/revenue figures.

No parameters required.

Try it
defi_stablecoins

Get stablecoin market data including market cap and chain distribution. No parameters needed.

No parameters required.

Try it
defi_yields

Get DeFi yield pool opportunities with APY, TVL, and project info. Optionally filter by project name, minimum TVL, or minimum APY.

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/defillama/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/defillama/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"defi_tvl_protocols","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("defi_tvl_protocols", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("defillama mcp — defi analytics from defillama (free, no auth)");