Defillama Mcp

io.github.GlebenjoyPublished by GitHub account Glebenjoyv1.0.2Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyFinanceData & Analytics

Overview

AI-generated overview

Local MCP server that gives an assistant live DeFi data from DefiLlama: chain and protocol TVL, token prices, yield pools and stablecoins.

What you can do
  • Look up TVL across blockchains, ranked by size
  • Search protocols by name, symbol or category and get one protocol's TVL, 1d/7d change, chains and category
  • Fetch current USD prices for one or more tokens by DefiLlama coin id
  • List top yield pools by APY, filtered by chain, project or minimum TVL
  • List the largest stablecoins by circulating supply with peg type
When to use it
Useful when you want an assistant to answer questions about DeFi market data — chain rankings, a protocol's TVL trend, high-APY pools, token prices or stablecoin supply — without setting up an API key.
Requirements
Runs locally over stdio, started with npx from the npm package defillama-mcp, so Node.js and network access to the public DefiLlama API are needed. No API key, signup or environment variables are declared.
Before you install
Data comes from the free public DefiLlama API, so figures are only as current and accurate as that source; treat prices and yields as informational, not as trading advice. The server only reads public data and declares no credentials, but the README includes the author's freelance and hiring links.

Installation

In SourceWeft

  1. Open Defillama Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: README.md at commit bfb6ffc

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.2LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts