DefiLlama MCP 与 API 接入

数据供应商鉴权:api_key

免密钥读取 DeFi TVL、稳定币、币价与交易量;配置 Pro 密钥可查解锁、黑客事件、跨链桥与 ETF。

发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

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

可以让智能体这样提问

“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 · 记录于 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 · 记录于 2026-11-11T10:19:27.217Z

全部操作(116)

操作价格
GET api.llama.fi/v2/chains

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

自备 Key
GET api.llama.fi/v2/historicalChainTvl/{chain}

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

自备 Key
GET api.llama.fi/tvl/{protocol}

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

自备 Key
GET stablecoins.llama.fi/stablecoins

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

自备 Key
GET coins.llama.fi/prices/current/{coins}

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

自备 Key
GET coins.llama.fi/prices/historical/{timestamp}/{coins}

The price of tokens at one moment in the past.

自备 Key
GET coins.llama.fi/chart/{coins}

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

自备 Key
GET api.llama.fi/protocol/{protocol}

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

自备 Key
GET api.llama.fi/v2/historicalChainTvl

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

自备 Key
GET coins.llama.fi/batchHistorical

Get historical prices for multiple tokens at multiple different timestamps

自备 Key
GET coins.llama.fi/percentage/{coins}

Get percentage change in price over time

自备 Key
GET coins.llama.fi/prices/first/{coins}

Get earliest timestamp price record for coins

自备 Key
GET coins.llama.fi/block/{chain}/{timestamp}

Get the closest block to a timestamp

自备 Key
GET stablecoins.llama.fi/stablecoincharts/all

Get historical mcap sum of all stablecoins

自备 Key
GET stablecoins.llama.fi/stablecoincharts/{chain}

Get historical mcap sum of all stablecoins in a chain

自备 Key
GET stablecoins.llama.fi/stablecoin/{asset}

Get historical mcap and historical chain distribution of a stablecoin

自备 Key
GET stablecoins.llama.fi/stablecoinchains

Get current mcap sum of all stablecoins on each chain

自备 Key
GET stablecoins.llama.fi/stablecoinprices

Get historical prices of all stablecoins

自备 Key
GET yields.llama.fi/chart/{pool}

Get historical APY and TVL of a pool

自备 Key
GET api.llama.fi/overview/dexs

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

自备 Key
GET api.llama.fi/overview/dexs/{chain}

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

自备 Key
GET api.llama.fi/summary/dexs/{protocol}

Get summary of dex volume with historical data

自备 Key
GET api.llama.fi/overview/options

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

自备 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

自备 Key
GET api.llama.fi/summary/options/{protocol}

Get summary of options dex volume with historical data

自备 Key
GET api.llama.fi/overview/open-interest

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

自备 Key
GET api.llama.fi/overview/fees

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

自备 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

自备 Key
GET api.llama.fi/summary/fees/{protocol}

Get summary of protocol fees and revenue with historical data

自备 Key
GET pro-api.llama.fi/api/tokenProtocols/{symbol}

Lists the amount of a certain token within all protocols.

自备 Key
GET pro-api.llama.fi/api/inflows/{protocol}/{timestamp}

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

自备 Key
GET pro-api.llama.fi/api/chainAssets

Get assets of all chains

自备 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

自备 Key
GET pro-api.llama.fi/api/emissions

List of all tokens along with basic info for each

自备 Key
GET pro-api.llama.fi/api/emission/{protocol}

Unlocks data for a given token/protocol.

自备 Key
GET pro-api.llama.fi/api/categories

Overview of all categories accross all protocols

自备 Key
GET pro-api.llama.fi/api/forks

Overview of all forks accross all protocols

自备 Key
GET pro-api.llama.fi/api/oracles

Overview of all oracles accross all protocols

自备 Key
GET pro-api.llama.fi/api/hacks

Overview of all hacks on our Hacks dashboard

自备 Key
GET pro-api.llama.fi/api/raises

Overview of all raises on our Raises dashboard

自备 Key
GET pro-api.llama.fi/api/treasuries

List all protocols on our Treasuries dashboard

自备 Key
GET pro-api.llama.fi/api/entities

List all entities

自备 Key
GET pro-api.llama.fi/api/historicalLiquidity/{token}

Provides the name of contracts on a determined chain

自备 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)

自备 Key
GET pro-api.llama.fi/yields/poolsBorrow

Borrow costs APY of assets from lending markets

自备 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

自备 Key
GET pro-api.llama.fi/yields/perps

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

自备 Key
GET pro-api.llama.fi/yields/lsdRates

APY rates of multiple LSDs

自备 Key
GET pro-api.llama.fi/etfs/snapshot

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

自备 Key
GET pro-api.llama.fi/etfs/flows

Historical Flows at the Asset Level

自备 Key
GET pro-api.llama.fi/fdv/performance/{period}

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

自备 Key
GET pro-api.llama.fi/api/overview/derivatives

Lists all derivatives along summaries of their volumes filtering by chain

自备 Key
GET pro-api.llama.fi/api/summary/derivatives/{protocol}

Volume Details about a specific perp protocol

自备 Key
GET pro-api.llama.fi/bridges/bridges

List all bridges along with summaries of recent bridge volumes.

自备 Key
GET pro-api.llama.fi/bridges/bridge/{id}

Get summary of bridge volume and volume breakdown by chain

自备 Key
GET pro-api.llama.fi/bridges/bridgevolume/{chain}

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

自备 Key
GET pro-api.llama.fi/bridges/bridgedaystats/{timestamp}/{chain}

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

自备 Key
GET pro-api.llama.fi/bridges/transactions/{id}

Get all transactions for a bridge within a date range

自备 Key
GET pro-api.llama.fi/dat/institutions

Get list of all institutions with Digital Asset Treasury data

自备 Key
GET pro-api.llama.fi/dat/institutions/{symbol}

Get individual institution Digital Asset Treasury details

自备 Key
已展示 60 / 116 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 DefiLlama?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 DefiLlama 全部 116 个操作,无需本地维护 MCP 插件或明文密钥。

调用 DefiLlama 的数据接口如何计费?

在团队加密金库中绑定自有 DefiLlama 密钥即可免费调用。

我的 DefiLlama 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关数据供应商