ToolSocket / Tools / DefiLlama (DeFi & crypto)

DefiLlama (DeFi & crypto) data for AI agents

ToolSocket gives Claude, ChatGPT, Cursor, Codex and any MCP or REST client live access to DefiLlama (DeFi & crypto) — token prices, protocol TVL, DEX volumes, fees and revenue, stablecoins, yields and hacks — free — through 26 ready-made tools. No DefiLlama (DeFi & crypto) account, scraper or API key of your own is needed: connect https://toolsocket.top/mcp once and pay per call (free).

ToolSocket 让 Claude、ChatGPT、Cursor、Codex 等任何支持 MCP 或 REST 的 AI 智能体,直接读取DefiLlama (DeFi & crypto)的实时数据:代币价格、协议 TVL、DEX 交易量、协议收入、稳定币、收益率和黑客事件,免费,共 26 个工具。不用注册DefiLlama (DeFi & crypto)账号、不用写爬虫,接入一个地址即可,按次计费(免费)。

Get an API keyConnect your agentTry it in ToolSocket Agent

What you can get

Connect in one step

Claude.ai, ChatGPT, Cursor, VS Code: add the MCP URL https://toolsocket.top/mcp and sign in. Claude Code:

claude mcp add --transport http toolsocket https://toolsocket.top/mcp

Any agent that reads skills (Claude Code, Codex, OpenClaw…): tell it set up https://toolsocket.top/SKILL.md. Setup for every client is in the docs.

Example

Ask your agent: “Which chains gained the most TVL this month?”
「这个月哪条链的 TVL 涨得最多?」

Or call the tool directly over REST:

curl -s -X POST https://toolsocket.top/v1/run \
  -H "Authorization: Bearer $TOOLSOCKET_API_KEY" \
  -H "content-type: application/json" \
  -d '{"tool":"defillama#prices_current","input":{"coins":"ethereum,bitcoin,ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7"},"wait":30}'

Guides

All DefiLlama (DeFi & crypto) tools (26)

ToolIDPrice
DefiLlama · Token Prices (now)DefiLlama · 代币实时价格
Current USD price for any coin or on-chain token address, on 400+ chains.
defillama#prices_currentFree
DefiLlama · Token Prices at a DateDefiLlama · 代币历史价格
USD price of coins at a past date or moment.
defillama#prices_historicalFree
DefiLlama · Price ChartDefiLlama · 价格走势
Evenly spaced price points for coins over a window (e.g. 30 daily points).
defillama#price_chartFree
DefiLlama · Price Change %DefiLlama · 涨跌幅
Percent price change of coins over 1h / 24h / 7d / 30d.
defillama#price_changeFree
DefiLlama · First Recorded PriceDefiLlama · 首个价格记录
Earliest price DefiLlama has for each coin, and when it was recorded.
defillama#price_firstFree
DefiLlama · Block at TimeDefiLlama · 时间对应区块高度
The block number closest to a given time on a chain.
defillama#block_atFree
DefiLlama · DeFi Protocols by TVLDefiLlama · DeFi 协议 TVL 排行
Rank and filter 8,000+ DeFi protocols by TVL, growth, chain or category.
defillama#protocolsFree
DefiLlama · Protocol DetailDefiLlama · 协议详情
One protocol: description, TVL by chain, TVL history, funding rounds, hacks, sub-protocols.
defillama#protocolFree
DefiLlama · Chains by TVLDefiLlama · 公链锁仓排行
Every blockchain ranked by DeFi TVL, with native token.
defillama#chainsFree
DefiLlama · Chain TVL HistoryDefiLlama · 公链锁仓历史
Daily DeFi TVL of one chain, or of all chains combined.
defillama#chain_tvl_historyFree
DefiLlama · DEX VolumeDefiLlama · DEX 交易量
Spot DEX trading volume: market totals and top protocols (24h / 7d / 30d).
defillama#dex_volumesFree
DefiLlama · DEX Aggregator VolumeDefiLlama · 聚合器交易量
Volume routed by DEX aggregators (1inch, Jupiter, CoW…): market totals and top protocols (24h / 7d / 30d).
defillama#aggregator_volumesFree
DefiLlama · Fees & RevenueDefiLlama · 协议收入
Fees paid by users, or revenue kept by protocols: market totals and top protocols (24h / 7d / 30d).
defillama#feesFree
DefiLlama · Options VolumeDefiLlama · 期权交易量
On-chain options notional and premium volume: market totals and top protocols (24h / 7d / 30d).
defillama#options_volumesFree
DefiLlama · Perps Open InterestDefiLlama · 永续合约持仓量
Open interest across on-chain perp exchanges: market totals and top protocols (24h / 7d / 30d).
defillama#open_interestFree
DefiLlama · DEX Volume of a ProtocolDefiLlama · 协议 DEX 交易量
DEX Volume of a Protocol: totals, per-chain split and daily history.
defillama#dex_summaryFree
DefiLlama · Fees & Revenue of a ProtocolDefiLlama · 协议收入明细
Fees & Revenue of a Protocol: totals, per-chain split and daily history.
defillama#fees_summaryFree
DefiLlama · Options Volume of a ProtocolDefiLlama · 协议期权交易量
Options Volume of a Protocol: totals, per-chain split and daily history.
defillama#options_summaryFree
DefiLlama · StablecoinsDefiLlama · 稳定币排行
Every stablecoin ranked by supply, with peg price, growth and top chains.
defillama#stablecoinsFree
DefiLlama · Stablecoin DetailDefiLlama · 单个稳定币详情
One stablecoin: supply on every chain and supply history.
defillama#stablecoinFree
DefiLlama · Stablecoin Supply by ChainDefiLlama · 各链稳定币总量
Chains ranked by total stablecoin supply.
defillama#stablecoin_chainsFree
DefiLlama · Stablecoin Supply HistoryDefiLlama · 稳定币总量历史
Daily total stablecoin supply, market-wide or on one chain.
defillama#stablecoin_historyFree
DefiLlama · Stablecoin Peg PricesDefiLlama · 稳定币价格(脱锚监控)
Daily price history of stablecoins — spot de-pegs.
defillama#stablecoin_pricesFree
DefiLlama · Yield Pools (APY)DefiLlama · 收益池 / 年化收益
Search 15,000+ yield pools by chain, project, token, APY and TVL.
defillama#yield_poolsFree
DefiLlama · Yield Pool HistoryDefiLlama · 收益池历史
Daily APY and TVL history of one yield pool.
defillama#yield_pool_chartFree
DefiLlama · Hacks & ExploitsDefiLlama · 黑客攻击记录
1,300+ crypto hacks: date, amount lost, technique, chain, funds returned.
defillama#hacksFree

Machine-readable: /tools/defillama.md · llms.txt · /v1/tools

FAQ

How can my AI agent get DefiLlama (DeFi & crypto) data?

Connect the ToolSocket MCP server (https://toolsocket.top/mcp) to Claude, ChatGPT, Cursor, Codex or any MCP client, or call the REST API. Your agent searches the 26 DefiLlama (DeFi & crypto) tools with discover_tools, reads the input schema with inspect_tool and runs it with run_tool.

Do I need a DefiLlama (DeFi & crypto) account or API key?

No. ToolSocket handles the upstream access. You only need a ToolSocket account; these tools are free.

How much does it cost?

These tools are free.

Which AI agents work with it?

Claude.ai and Claude Desktop, Claude Code, ChatGPT (developer mode), Cursor, VS Code Copilot, Windsurf, Codex, and any agent that can read a Markdown skill or make HTTP requests.

Other platforms

Douyin (抖音)TikTokXiaohongshu (小红书)WeChat (微信)Weibo (微博)Bilibili (B站)Kuaishou (快手)Zhihu (知乎)Toutiao (今日头条)Xigua Video (西瓜视频)Pipixia (皮皮虾)Lemon8InstagramYouTubeX (Twitter)ThreadsRedditLinkedInTelegramWeb search & page readerOpen data