Defillama MCP Server

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

Local serverstdioTypeScript

What is the Defillama MCP server?

Defillama MCP server exists for a simple reason — assistants are far more useful when they can act on Defillama directly instead of describing what you should do. DefiLlama DeFi data: chain/protocol TVL, yields, stablecoins, token prices. No API key.

What you get

get_token_prices uses DefiLlama coin ids, comma-separated:

Setting it up

The server ships on npm as npm, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Defillama is connected, these are the calls the assistant has available:

  • get_chains_tvl — TVL across all blockchains, ranked
  • search_protocols — Search protocols by name / symbol / category, ranked by TVL
  • get_protocol — TVL, 1d/7d change, chains, category for one protocol
  • get_token_prices — Current USD price for one or more tokens (DefiLlama coin ids)
  • get_yield_pools — Top yield pools by APY, filter by chain / project / min TVL
  • get_stablecoins — Largest stablecoins by circulating supply + peg type
  • Cursor — The Cursor tool exposed by this server

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the defillama mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Defillama's toolset — get_chains_tvl, search_protocols, get_protocol and 4 more — is a fair guide to whether it matches your workflow. It is maintained by Glebenjoy; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Defillama's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available 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
CursorThe Cursor tool exposed by this server.

How to install the Defillama MCP server

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

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Defillama to get chains tvl.
  • Use Defillama to search protocols.
  • Use Defillama to get protocol.

Frequently asked questions

It connects Defillama to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (get_chains_tvl, search_protocols, get_protocol, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Defillama directly.