
DefiLlama MCP Server & API for AI Agents
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.
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.217ZOperations (116)
| Operation | Price |
|---|---|
GET api.llama.fi/v2/chainsEvery 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/stablecoinsThe 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/historicalChainTvlGet historical TVL (excludes liquid staking and double counted tvl) of DeFi on all chains | Own key |
GET coins.llama.fi/batchHistoricalGet 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/allGet 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/stablecoinchainsGet current mcap sum of all stablecoins on each chain | Own key |
GET stablecoins.llama.fi/stablecoinpricesGet 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/dexsList 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/optionsList 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-interestList all open interest dex exchanges along with summaries of their open interest | Own key |
GET api.llama.fi/overview/feesList 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/chainAssetsGet 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/emissionsList 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/categoriesOverview of all categories accross all protocols | Own key |
GET pro-api.llama.fi/api/forksOverview of all forks accross all protocols | Own key |
GET pro-api.llama.fi/api/oraclesOverview of all oracles accross all protocols | Own key |
GET pro-api.llama.fi/api/hacksOverview of all hacks on our Hacks dashboard | Own key |
GET pro-api.llama.fi/api/raisesOverview of all raises on our Raises dashboard | Own key |
GET pro-api.llama.fi/api/treasuriesList all protocols on our Treasuries dashboard | Own key |
GET pro-api.llama.fi/api/entitiesList 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/poolsOldSame 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/poolsBorrowBorrow 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/perpsFunding rates and Open Interest of perps across exchanges, including both Decentralized and Centralized | Own key |
GET pro-api.llama.fi/yields/lsdRatesAPY rates of multiple LSDs | Own key |
GET pro-api.llama.fi/etfs/snapshotGet ETFs and their metrics (aum, flows, fees...) | Own key |
GET pro-api.llama.fi/etfs/flowsHistorical 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/derivativesLists 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/bridgesList 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/institutionsGet 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 |
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.





