MCP.Market

Defillama MCP server

by Glebenjoy·io.github.Glebenjoy/defillama-mcp·v1.0.2

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

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
New

0 stars90 downloads/wk

Reviews

Write one

Nobody has reviewed Defillama yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Defillama tools (6)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • get_chains_tvl

    Total Value Locked (TVL) across all blockchains, ranked highest first. Shows which chains hold the most DeFi capital.

  • get_protocol

    Get current TVL, 1d/7d change, chains, and category for a single DeFi protocol by name (e.g. 'Aave', 'Uniswap', 'Lido').

  • get_stablecoins

    Largest stablecoins by circulating supply, with peg type (fiat-backed, crypto-backed, algorithmic).

  • get_token_prices

    Current USD price for one or more tokens. Use DefiLlama coin ids, comma-separated: 'coingecko:bitcoin,coingecko:ethereum' or 'chain:0xcontract' (e.g. 'ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2').

  • get_yield_pools

    Top DeFi yield / farming pools by APY. Optionally filter by chain (e.g. 'Ethereum'), project (e.g. 'aave'), and minimum TVL in USD to avoid tiny risky pools.

  • search_protocols

    Search DeFi protocols by name, token symbol, or category (e.g. 'lending', 'dexes', 'aave'), ranked by TVL. Leave query empty for the top protocols overall.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan4 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 113 days ago8/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Defillama compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
82/100
higher than 63% of 48,255 servers
Tools
6
the typical server has 7
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
Downloads a week
90
more than 60% of 12,191 servers with a package

What its tools let an agent do: 6 read

Install Defillama in Claude Code, Cursor or VS Code

Runs npx -y defillama-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add defillama-mcp -- npx -y defillama-mcp
Add to Cursor

What the publisher says

From the Defillama repository's README, as published. We do not edit it. Read it on GitHub

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

Install

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

Claude Desktop

Add to claudedesktopconfig.json:

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

Cursor

Add to .cursor/mcp.json:

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

Restart the client and the defillama tools appear.

Coin ids for prices

gettokenprices uses DefiLlama coin ids, comma-separated:

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

Develop

npm install
npm run dev     # run from TypeScript source over stdio
npm test        # run the unit tests
npm 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?

  • Hire me on Upwork: https://www.upwork.com/freelancers/~01946645ed245c263d
  • Or open an issue on this repo.

Built by Gleb.

Nothing above is checked by us. What we check is on the safety report.

Defillama: common questions

Is Defillama MCP server safe?
Mostly: it is graded B (82/100). Read the Defillama safety report
How do I install Defillama?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Defillama need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Defillama maintained?
The last commit was 151 days ago (2026-06-06). The latest release is v1.0.2.
How does Defillama compare with other MCP servers?
safety score 82/100 (higher than 63% of 48,255 servers); tools 6 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

More from Glebenjoy →