DefiLlama ships an MCP with 23 tools
DefiLlama released a Model Context Protocol (MCP) with 23 tools for querying on‑chain data, demonstrating how SDK‑style toolsets can speed agent developer velocity and guided workflows. It’s an example of packaging domain primitives as agent‑consumable tools. (x.com)
DefiLlama maps its API surface into named MCP tools organized under Protocol & TVL, Tokens & Yield, Markets & Trading, and Flows & Events categories. (defillama.com) Named tool endpoints include get_protocol_metrics, get_protocol_info, get_chain_metrics, get_token_prices, get_token_unlocks and get_yield_pools, each documented with typed parameters such as protocol, chain, sortCondition and timestamp. (github.com) The MCP endpoint is published at supports clients like Claude Code, OpenClaw, Cursor, Codex and Gemini CLI, requires a DefiLlama API plan, and enforces browser sign‑in on first use while charging one DefiLlama API credit per query. (defillama.com) Multiple open‑source server implementations and forks are available on GitHub (for example IQAIcom/defillama-mcp and demcp/demcp-defillama-mcp), and the IQAIcom repo shows a TypeScript/fastmcp implementation with environment variables for DEFILLAMA_API_KEY, IQ_GATEWAY_URL and optional LLM model configuration. (github.com) The public quick‑start includes a copy‑paste client command (for example: "claude mcp add defillama --transport http ) and an example query that lists top protocols by TVL—Aave $25.7B, Lido $20.0B, SSV Network $15.5B, EigenCloud $9.2B and Binance Staked ETH $8.0B. (defillama.com) FastMCP, the framework used in several implementations, advertises production features such as automatic schema generation, a provider/transform architecture for extensibility, async auth flows and improved observability designed to address scale and reliability needs for MCP servers. (pypi.org)