# agentdefi

agentdefi connects DefiLlama market data to your coding assistant, exposing protocol TVL figures, pool yields, and chain rankings.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 2977 installs
- Author: heavysword1
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/heavysword1/agentdefi
- Updated: 2026-05-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/agentdefi

## What it does

The server routes DefiLlama metrics straight into your agent through an HTTP endpoint. It exposes three functions: `get_defi_protocols` fetches protocols ranked by total value locked, with options to narrow results by chain, slug, or minimum TVL threshold.

Yield analysis is handled by `get_yield_pools`, which scans liquidity pools filtered by ticker symbol, project, or target APY. The third tool, `get_chain_tvl`, tracks ecosystem TVL standings or pulls historical volume for a designated network.

Because the tool relies on `https://agentdefi--heavysword1.run.tools`, it will fail in network environments that block outbound HTTP traffic.

## Requirements
- Remote server: `https://agentdefi--heavysword1.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http agentdefi https://agentdefi--heavysword1.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add agentdefi --url https://agentdefi--heavysword1.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agentdefi": {
            "url": "https://agentdefi--heavysword1.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agentdefi": {
            "type": "http",
            "url": "https://agentdefi--heavysword1.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http agentdefi https://agentdefi--heavysword1.run.tools
```

## When to use it
- Retrieve protocol rankings sorted by total value locked
- Filter yield pools by token symbol and minimum APY percentage
- Pull historical TVL trajectories for a target blockchain
- Look up specific DeFi projects by their slug identifier

## Example prompts
- Find liquidity pools containing ETH with an APY above 5%
- List the leading protocols on Base filtered by minimum TVL
- Show historical total value locked for Polygon

## Similar
- [defillama](https://affpapa.org/en/nevibecode/skills/defillama.md) — skill · 334 installs
- [defillama-api](https://affpapa.org/en/nevibecode/skills/defillama-api.md) — skill · 502 installs
- [Crypto Market Data](https://affpapa.org/en/nevibecode/mcp/crypto-market-data.md) — MCP server · ★ 32 repo stars
- [Hyperliquid Vaults — APR, TVL, Performance Rankings](https://affpapa.org/en/nevibecode/mcp/hyperliquid-vaults-apr-tvl-performance-rankings.md) — MCP server · 2481 installs
- [CryptoWhaleInsights](https://affpapa.org/en/nevibecode/mcp/cryptowhaleinsights.md) — MCP server · 463 installs
- [defi-intel](https://affpapa.org/en/nevibecode/mcp/defi-intel.md) — MCP server · 5847 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
