Defillama logo

Defillama

Query DefiLlama for DeFi TVL, fees, revenue, yields, stablecoins, and token unlock schedules without authentication.

Install Defillama

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "defillama": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-defillama"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio defillama -- npx -y @pipeworx/mcp-defillama

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 9 tools correctly ().

Overview

Defillama MCP server connects AI agents to DefiLlama data for DeFi protocol research across chains. Its tools cover TVL comparisons, protocol details, fees, revenue rankings, stablecoin distribution, yield pools, and token vesting events. Use it to compare protocols, investigate capital concentration, screen yields, or monitor scheduled unlocks. Access is available through a hosted MCP endpoint, a local npm stdio bridge, or the gateway's HTTP tool API.

Use cases

  • Compare DeFi protocols by total value locked
  • Rank protocols by recent fees or revenue
  • Screen yield pools by APY and minimum TVL
  • Monitor token unlocks and vesting schedules

Key features

  • Cross-chain protocol TVL search and history
  • Fee, revenue, and prior-period ranking data
  • Stablecoin supply by blockchain
  • Yield pool filtering by APY and TVL
  • Token unlock calendar and emission schedules
  • Hosted MCP, stdio, and HTTP access

Tools9

What Defillama lets your agent do. Expand a tool for its parameters.

Verified live~1.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 89d

What it can do

From the 9 tools this server returned when we ran it; 9 declare their own safety hints.

Handles credentials · 3Makes network requests · 9Read-only tools · 9
Tool definitions changed on 2026-12-02. Review them if you approved this server earlier.
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age230 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @pipeworx/mcp-defillama (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed9Callable tools this server registers over MCP.

How Defillama works

What Defillama does

Defillama exposes DefiLlama's normalized DeFi datasets through MCP. It is aimed at questions involving protocol TVL, chain-level capital distribution, fees, revenue, yields, stablecoin supply, and token emissions. Coverage spans major protocols and chains, including Ethereum, Solana, Base, and Arbitrum.

The server also provides two token-unlock views. defi_token_unlocks searches scheduled vesting cliffs and emission-rate changes across roughly 370 tracked tokens within a date range. defi_token_emission focuses on one token and combines supply allocation, recipient-level vesting, past and future events, and methodology notes.

This is an independent, unofficial integration and is not affiliated with or endorsed by DefiLlama.

How it works

A hosted streamable MCP endpoint is available at https://gateway.pipeworx.io/defillama/mcp. MCP clients can discover and invoke the Defillama tools through that URL. The endpoint also exposes shared Pipeworx gateway tools, so its complete tools/list response contains more tools than the DefiLlama-specific set. The initialization response identifies the scope available to the connection.

The package @pipeworx/mcp-defillama provides a local stdio bridge. It forwards requests to the same hosted endpoint, so it requires network access and has no offline mode. The gateway can also be called directly over HTTP using routes such as /v1/tools/defi_tvl_protocols.

Setup and configuration

For a hosted MCP connection, add the endpoint to an MCP client configuration:

config.json
{
  "mcpServers": {
    "defillama": {
      "url": "https://gateway.pipeworx.io/defillama/mcp"
    }
  }
}

For local stdio use, configure the npm package with npx:

config.json
{
  "mcpServers": {
    "defillama": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-defillama"]
    }
  }
}

Anonymous calls are capped at 50 per day. A free Pipeworx account raises the limit to 200 calls per day; provide its key as PIPEWORX_API_KEY in the process environment. Set PIPEWORX_META_TOOLS=1 if the local bridge should also list shared gateway tools such as ask_pipeworx. Proxy users may need NODE_USE_ENV_PROXY=1 with a Node release that supports the setting.

Tools and capabilities

  • defi_tvl_protocols searches protocols by name or category and returns TVL, chains, and categories.
  • defi_protocol_detail returns TVL history, chain breakdowns, and token information for a protocol.
  • defi_chain_tvl compares TVL across blockchains.
  • defi_protocol_fees provides daily fee and revenue series for a protocol.
  • defi_revenue_ranking ranks protocols over 24-hour, 7-day, or 30-day periods, with prior-period comparisons and category or chain filters.
  • defi_stablecoins reports stablecoin market capitalization and per-chain distribution.
  • defi_yields filters pools by project, minimum TVL, or minimum APY.
  • defi_token_unlocks returns dated unlock events, token amounts, current-price USD values, circulating-supply shares, and recipient groups.
  • defi_token_emission describes one token's supply allocation, unlocked amounts, scheduled events, and methodology.

Revenue-ranking results include a protocol slug that can be passed to defi_protocol_fees for daily data. Unlock responses include dataset and price timestamps. USD values for unlocks use the current DefiLlama price rather than the historical price on the event date.

Limitations and notes

TVL measures deposited asset value; it is not a direct measure of usage, revenue, or token value. Multi-chain positions and bridged assets can create edge cases involving double counting. Yield APYs can change quickly, and high yields may involve impermanent-loss, contract, or token-emission risk.

Stablecoin supply does not establish that an asset will remain stable. Bridge-flow data is approximate because monitoring does not cover every bridge and excludes centralized-exchange deposits and withdrawals. DefiLlama's price index can differ from other price feeds.

Not every token allocation has published future dates. In those cases, the response identifies the unscheduled amount rather than implying that no supply remains. Linear emission-rate changes may not have a single USD value, so minimum-USD filtering excludes them.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Defillama

Defillama is an MCP server that connects AI agents to DefiLlama’s DeFi datasets. Its main tools query protocol TVL, fees, revenue, chain TVL, stablecoins, yields, token unlocks, and token emission schedules across supported protocols and blockchains, without requiring DefiLlama authentication.

Install it as a local stdio bridge by configuring `npx -y @pipeworx/mcp-defillama` in your MCP client. You can instead connect directly to `https://gateway.pipeworx.io/defillama/mcp` as a hosted MCP endpoint.

Yes, Defillama works with Cursor through the hosted MCP URL or the local npm stdio configuration. The hosted connection requires network access, while the local bridge forwards calls to the same gateway endpoint.

No, an API key is not required for anonymous use. Anonymous calls are limited to 50 per day; a free Pipeworx account and the `PIPEWORX_API_KEY` environment variable raise the limit to 200 calls per day.

Yes, `defi_token_unlocks` searches scheduled vesting cliffs and emission-rate changes by date, token, value, or supply share. `defi_token_emission` provides the complete vesting view for an individual token, including allocation categories and dated events.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDefillama AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/defillama?style=directory)](https://allmcps.com/mcp/defillama)
HTML Embed
<a href="https://allmcps.com/mcp/defillama"><img src="https://allmcps.com/api/badge/defillama?style=directory" alt="Defillama on AllMCPs" /></a>