DefiLlama MCP Server & API for AI Agents

Data providerAuth: api_key

Connect your own DefiLlama account once in Duang's encrypted team vault to expose 116 operations to your AI agents via MCP, CLI, or HTTP with zero exposed credentials.

Chat promptPaste into Claude Code, OpenClaw, OpenCode, Grok Bot, Antigravity, Hermes, or Pi

set up https://duang.ai/SKILL.md

What you can ask your agent

“How much value is locked in Aave?”

Aave's current total value locked (TVL) across all chains is **$16.21 billion** (`$16,205,648,545.66`). Want me to break this down by chain or compare it with other lending protocols?

protocol-tvl · recorded 2026-11-11T10:19:27.749Z

“Which blockchains hold the most value in DeFi?”

Chains from the response: - **Mantle** (`MNT`): $104.79M TVL - **Moonbeam** (`GLMR`): $0 TVL - **Corn** (`CORN`): $0 TVL

chains · recorded 2026-11-11T10:19:27.217Z

Operations (116)

OperationPrice
GET api.llama.fi/v2/chains

Every blockchain DefiLlama tracks, with the value locked in DeFi on it.

Own key
GET api.llama.fi/v2/historicalChainTvl/{chain}

The value locked in DeFi on a chain, one point a day since it began.

Own key
GET api.llama.fi/tvl/{protocol}

The value locked in one DeFi protocol now, in US dollars.

Own key
GET stablecoins.llama.fi/stablecoins

The stablecoins DefiLlama tracks, with their circulating supply and price.

Own key
GET coins.llama.fi/prices/current/{coins}

The price now of tokens, by chain and address or by CoinGecko id.

Own key
GET coins.llama.fi/prices/historical/{timestamp}/{coins}

The price of tokens at one moment in the past.

Own key
GET coins.llama.fi/chart/{coins}

The price of tokens at regular steps over a stretch of time.

Own key
GET api.llama.fi/protocol/{protocol}

Get historical TVL of a protocol and breakdowns by token and chain

Own key
GET api.llama.fi/v2/historicalChainTvl

Get historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains

Own key
GET coins.llama.fi/batchHistorical

Get historical prices for multiple tokens at multiple different timestamps

Own key
GET coins.llama.fi/percentage/{coins}

Get percentage change in price over time

Own key
GET coins.llama.fi/prices/first/{coins}

Get earliest timestamp price record for coins

Own key
GET coins.llama.fi/block/{chain}/{timestamp}

Get the closest block to a timestamp

Own key
GET stablecoins.llama.fi/stablecoincharts/all

Get historical mcap sum of all stablecoins

Own key
GET stablecoins.llama.fi/stablecoincharts/{chain}

Get historical mcap sum of all stablecoins in a chain

Own key
GET stablecoins.llama.fi/stablecoin/{asset}

Get historical mcap and historical chain distribution of a stablecoin

Own key
GET stablecoins.llama.fi/stablecoinchains

Get current mcap sum of all stablecoins on each chain

Own key
GET stablecoins.llama.fi/stablecoinprices

Get historical prices of all stablecoins

Own key
GET yields.llama.fi/chart/{pool}

Get historical APY and TVL of a pool

Own key
GET api.llama.fi/overview/dexs

List all dexs along with summaries of their volumes and dataType history data

Own key
GET api.llama.fi/overview/dexs/{chain}

List all dexs along with summaries of their volumes and dataType history data filtering by chain

Own key
GET api.llama.fi/summary/dexs/{protocol}

Get summary of dex volume with historical data

Own key
GET api.llama.fi/overview/options

List all options dexs along with summaries of their volumes and dataType history data

Own key
GET api.llama.fi/overview/options/{chain}

List all options dexs along with summaries of their volumes and dataType history data filtering by chain

Own key
GET api.llama.fi/summary/options/{protocol}

Get summary of options dex volume with historical data

Own key
GET api.llama.fi/overview/open-interest

List all open interest dex exchanges along with summaries of their open interest

Own key
GET api.llama.fi/overview/fees

List all protocols along with summaries of their fees and revenue and dataType history data

Own key
GET api.llama.fi/overview/fees/{chain}

List all protocols along with summaries of their fees and revenue and dataType history data by chain

Own key
GET api.llama.fi/summary/fees/{protocol}

Get summary of protocol fees and revenue with historical data

Own key
GET pro-api.llama.fi/api/tokenProtocols/{symbol}

Lists the amount of a certain token within all protocols.

Own key
GET pro-api.llama.fi/api/inflows/{protocol}/{timestamp}

Lists the amount of inflows and outflows for a protocol at a given date

Own key
GET pro-api.llama.fi/api/chainAssets

Get assets of all chains

Own key
GET pro-api.llama.fi/stablecoins/stablecoindominance/{chain}

Get stablecoin dominance per chain along with the info about the larges coin in a chain

Own key
GET pro-api.llama.fi/api/emissions

List of all tokens along with basic info for each

Own key
GET pro-api.llama.fi/api/emission/{protocol}

Unlocks data for a given token/protocol.

Own key
GET pro-api.llama.fi/api/categories

Overview of all categories accross all protocols

Own key
GET pro-api.llama.fi/api/forks

Overview of all forks accross all protocols

Own key
GET pro-api.llama.fi/api/oracles

Overview of all oracles accross all protocols

Own key
GET pro-api.llama.fi/api/hacks

Overview of all hacks on our Hacks dashboard

Own key
GET pro-api.llama.fi/api/raises

Overview of all raises on our Raises dashboard

Own key
GET pro-api.llama.fi/api/treasuries

List all protocols on our Treasuries dashboard

Own key
GET pro-api.llama.fi/api/entities

List all entities

Own key
GET pro-api.llama.fi/api/historicalLiquidity/{token}

Provides the name of contracts on a determined chain

Own key
GET pro-api.llama.fi/yields/poolsOld

Same as /pools but it also includes a new parameter `pool_old` which usually contains pool address (but not guaranteed)

Own key
GET pro-api.llama.fi/yields/poolsBorrow

Borrow costs APY of assets from lending markets

Own key
GET pro-api.llama.fi/yields/chartLendBorrow/{pool}

Historical borrow cost APY from a pool on a lending market, pool ids should be obtained from /poolsBorrow

Own key
GET pro-api.llama.fi/yields/perps

Funding rates and Open Interest of perps across exchanges, including both Decentralized and Centralized

Own key
GET pro-api.llama.fi/yields/lsdRates

APY rates of multiple LSDs

Own key
GET pro-api.llama.fi/etfs/snapshot

Get ETFs and their metrics (aum, flows, fees...)

Own key
GET pro-api.llama.fi/etfs/flows

Historical Flows at the Asset Level

Own key
GET pro-api.llama.fi/fdv/performance/{period}

Get chart of narratives based on category performance (with individual coins weighted by mcap)

Own key
GET pro-api.llama.fi/api/overview/derivatives

Lists all derivatives along summaries of their volumes filtering by chain

Own key
GET pro-api.llama.fi/api/summary/derivatives/{protocol}

Volume Details about a specific perp protocol

Own key
GET pro-api.llama.fi/bridges/bridges

List all bridges along with summaries of recent bridge volumes.

Own key
GET pro-api.llama.fi/bridges/bridge/{id}

Get summary of bridge volume and volume breakdown by chain

Own key
GET pro-api.llama.fi/bridges/bridgevolume/{chain}

Get historical volumes for a bridge, chain, or bridge on a particular chain

Own key
GET pro-api.llama.fi/bridges/bridgedaystats/{timestamp}/{chain}

Get a 24hr token and address volume breakdown for a bridge

Own key
GET pro-api.llama.fi/bridges/transactions/{id}

Get all transactions for a bridge within a date range

Own key
GET pro-api.llama.fi/dat/institutions

Get list of all institutions with Digital Asset Treasury data

Own key
GET pro-api.llama.fi/dat/institutions/{symbol}

Get individual institution Digital Asset Treasury details

Own key
Showing 60 of 116 operations — type above to search all.

Frequently asked questions

Do I need my own DefiLlama subscription or API key?

Yes. Connect your existing DefiLlama API key in Duang's team vault so your agents can call all 116 operations without seeing the raw key.

How do I add DefiLlama to Claude Code or Cursor via MCP?

Add Duang's single remote MCP endpoint (https://api.duang.ai/mcp) or follow https://duang.ai/SKILL.md. Your agent discovers and invokes DefiLlama operations on demand without loading hundreds of unused schemas into context.

Am I charged if a DefiLlama API call fails?

No. Upstream supplier failures and Duang platform errors cost $0 on managed calls. Every successful call returns a receipt listing the exact supplier and USD amount charged.

Related data providers