# Defillama [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-defillama  
**GitHub Stars:** 1  
**npm Downloads (last month):** 1136  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/defillama

## Description
DefiLlama MCP — DeFi analytics from DefiLlama (free, no auth)

## Tools
Capabilities this server exposes over MCP:

- **defi_tvl_protocols** — Search DeFi protocols by name or category to compare their total value locked. Returns protocol name, TVL amount, blockchain, and category.
- **defi_protocol_detail** — Get detailed metrics for a specific DeFi protocol including TVL history over time, breakdown by blockchain, and token information.
- **defi_chain_tvl** — Compare total value locked across all blockchains. Returns TVL per chain to identify where capital is concentrated.
- **defi_protocol_fees** — Check daily fees and revenue for a DeFi protocol. Returns fee trends to analyze profitability and income changes over time.
- **defi_revenue_ranking** — Rank DeFi protocols by revenue (or fees) over the last 24h, 7d or 30d, with the change versus the prior period. Answers "top DeFi protocols by 30-day revenue" and "which protocols' revenue grew most". Filter by category (e.g. "Dexs", "Lending", "Liquid Staking") and/or chain. Each row: protocol slug, category, chains, revenue for the period, prior-period revenue, percent change, 24h/7d/30d totals and all-time total (USD). Source: DefiLlama, fees and revenue dataset. Pass a returned slug to defi_protocol_fees for the daily series.
- **defi_stablecoins** — Get stablecoin market cap and distribution across blockchains. Returns supply per chain to track adoption and network preferences.
- **defi_yields** — Find yield opportunities across DeFi pools filtered by project name, minimum TVL, or minimum APY. Returns APY, TVL, and project details.
- **defi_token_unlocks** — Crypto token UNLOCK calendar from DefiLlama: every scheduled vesting cliff and emission-rate change across ~370 tracked tokens in a date window (e.g. "which token unlocks are scheduled this week", "unlocks over $10M between 2026-10-05 and 2026-10-12"). Returns per event: date, token, tokens unlocked, USD value at the current DefiLlama price (with the price time), share of circulating supply, and the recipients (investors, team, ecosystem...). Default window is today through 7 days out.
- **defi_token_emission** — One crypto token's full vesting / EMISSION SCHEDULE from DefiLlama (e.g. "Hyperliquid HYPE unlock schedule", "when do Arbitrum team tokens vest"). Returns max supply, allocation by category (insiders, airdrop, staking...) with % unlocked so far, per-recipient unlocked-now vs final amounts, the dated unlock events (past and upcoming, with USD value at the current price), and DefiLlama's methodology notes.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## 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:

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

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

```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.

_Full upstream README: https://allmcps.com/mcp/defillama/readme_

