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 分