Defillama Mcp

io.github.Glebenjoy由 GitHub 帳號 Glebenjoy 發布v1.0.2更新於 Oct 24, 2026

DefiLlama DeFi data: chain/protocol TVL, yields, stablecoins, token prices. No API key.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理取得 DefiLlama 的即時 DeFi 資料:鏈與協議 TVL、代幣價格、收益池和穩定幣。

可以做什麼
  • 查詢各區塊鏈的 TVL 排名
  • 依名稱、代號或類別搜尋協議,並查看單一協議的 TVL、1 日/7 日變化、所在鏈與類別
  • 依 DefiLlama 代幣 id 取得一個或多個代幣目前的美元價格
  • 依 APY 列出收益池,可依鏈、專案或最低 TVL 篩選
  • 依流通量列出最大的穩定幣及其錨定類型
適用情境
適合讓助理回答 DeFi 市場資料問題,例如鏈排名、某協議的 TVL 走勢、高 APY 池、代幣價格或穩定幣供給量,且不需設定 API 金鑰。
執行需求
以 stdio 在本機執行,透過 npx 啟動 npm 套件 defillama-mcp,因此需要 Node.js 以及連線至 DefiLlama 公開 API 的網路。未宣告需要 API 金鑰、註冊或環境變數。
安裝前請注意
資料來自免費的 DefiLlama 公開 API,其時效與正確性取決於該來源;價格與收益率僅供參考,不構成交易建議。此伺服器只讀取公開資料且未宣告任何憑證,但 README 中含有作者的接案與招募連結。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Defillama Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

DefiLlama MCP

An MCP server that gives Claude, Cursor, and any MCP-compatible agent live DeFi data from DefiLlama — chain and protocol TVL, token prices, yield/farming pools, and stablecoin supply.

No API key. No signup. The public DefiLlama API is free.

Most "MCP for X" repos are half-finished and break on the second request. This one ships with tests and graceful error handling so an agent can actually rely on it.

What your agent can do

Ask things like:

  • "Which chains have the most TVL right now?"
  • "What's Aave's TVL and how did it move this week?"
  • "Find the highest-APY stablecoin pools on Ethereum with at least $10M TVL."
  • "Price of BTC and ETH?" (coingecko:bitcoin,coingecko:ethereum)
  • "List the biggest stablecoins by circulating supply."

Tools

ToolWhat it does
get_chains_tvlTVL across all blockchains, ranked
search_protocolsSearch protocols by name / symbol / category, ranked by TVL
get_protocolTVL, 1d/7d change, chains, category for one protocol
get_token_pricesCurrent USD price for one or more tokens (DefiLlama coin ids)
get_yield_poolsTop yield pools by APY, filter by chain / project / min TVL
get_stablecoinsLargest stablecoins by circulating supply + peg type

Install

No install needed. It runs straight from npm via npx.

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "defillama": {      "command": "npx",      "args": ["-y", "defillama-mcp"]    }  }}

Cursor

Add to .cursor/mcp.json:

json
{  "mcpServers": {    "defillama": {      "command": "npx",      "args": ["-y", "defillama-mcp"]    }  }}

Restart the client and the defillama tools appear.

Coin ids for prices

get_token_prices uses DefiLlama coin ids, comma-separated:

  • By CoinGecko id: coingecko:bitcoin, coingecko:ethereum
  • By contract: chain:0xcontract, e.g. ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 (WETH)

Develop

bash
npm installnpm run dev     # run from TypeScript source over stdionpm test        # run the unit testsnpm run build   # compile to dist/

License

MIT — see LICENSE.


Hire me

I build custom MCP servers and AI systems (multi-agent, RAG, automation). Need a connector for your own API, or a full AI integration?

Built by Gleb.

來源:README.md,提交 bfb6ffc

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分