Skip to main content
MCP server CX Codex

agentdefi — Claude Code MCP server: what it does, how to install

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

no license 2,977 installs updated 2026-05-29

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http agentdefi https://agentdefi--heavysword1.run.tools
Open on GitHub

What agentdefi 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.

What it helps with

  • 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 for the agent

  • 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

How to install agentdefi

Platform CLI: remote server

claude mcp add --transport http agentdefi https://agentdefi--heavysword1.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about agentdefi

How to install agentdefi in Claude Code?

Run claude mcp add --transport http agentdefi https://agentdefi--heavysword1.run.tools. This registers the remote HTTP endpoint without local compilation.

What does agentdefi do?

It feeds DefiLlama market intelligence directly to your assistant. Agents can query TVL statistics across 7,500+ protocols and yield metrics across 19,000+ pools.

What query filters are available in agentdefi?

You can filter protocols by blockchain, project slug, or minimum TVL. Yield searches accept parameters for token symbols, project names, and threshold APY rates.

Similar MCP servers

All MCP servers for Finance and business →

Project sponsors

Companies that keep this analytics open