D
demcp/demcp-defillama-mcp
DeFi protocol data from DefiLlama
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# DeFiLlama MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
## Overview
DeFiLlama MCP is a powerful and flexible tool that provides a microservice-based API wrapper around the DeFi Llama ecosystem. It leverages the FastMCP framework to transform DeFi Llama's comprehensive DeFi data into easily accessible tool endpoints that can be integrated with various AI applications, including LLM agents and autonomous systems.
This project serves as a bridge between the rich data sources provided by DeFi Llama and the emerging needs of AI-driven applications in the Web3 space. By wrapping DeFi Llama's APIs in a standardized MCP (Microservice Communication Protocol) format, developers can quickly integrate real-time DeFi data into their AI systems without dealing with the complexities of direct API integration.
## Features
Protocol Data Access: Retrieve comprehensive information about DeFi protocols including TVL (Total Value Locked) metrics.
Blockchain Analytics: Access historical TVL data for specific blockchains to analyze trends and growth patterns.
Token Price Tracking: Fetch current price information for various tokens across multiple chains.
Liquidity Pool Data: Get detailed insights into liquidity pools, including TVL and other critical metrics.
Standardized Interface: All data is accessible through a consistent API pattern, making it easy to integrate with AI systems.
Docker Support: Ready-to-deploy containerization for easy implementation in any environment.
Server-Sent Events: Real-time data updates using SSE transport mechanism.
## Architecture
DeFiLlama MCP is built using a modular architecture that separates the data-fetching logic from the API interface. The core components include:
1. API Clients: Specialized HTTP clients for each of DeFi Llama's API endpoints (Main, Coins, Yields).
2. MCP Tools: Function-based tools that transform raw API responses into structured data for consumption by AI agents.
3. FastMCP Server: A lightweight server that exposes the tools via HTTP and SSE (Server-Sent Events).
4. Error Handling: Robust error management to ensure reliability even when upstream services experience issues.
## Installation
### Prerequisites
Python 3.13 or higher
uv (Python package installer and environment manager)
### Option 1: Local Installation
bash
# Clone the repository
git clone https://github.com/demcp/defillama-mcp.git
cd defillama-mcp
# Create a virtual environment and install dependencies
uv venv
uv pip install -e .
# Run the server
uv run defillama.py
### Option 2: Docker Installation
bash
# Clone the repository
git clone https://github.com/demcp/defillama-mcp.git
cd defillama-mcp
# Build the Docker image
docker build -t defillama-mcp .
# Run the container
docker run -p 8080:8080 defillama-mcp
## Usage
Once the server is running, it exposes several endpoints that can be used to interact with DeFi Llama data:
### Available Tools
getprotocols: Retrieve information about top DeFi protocols.
getprotocoltvl: Get TVL data for a specific protocol.
getchaintvl: Access historical TVL data for a specific blockchain.
gettokenprices: Obtain current price information for specific tokens.
getpools: List available liquidity pools.
getpooltvl: Get detailed information about a specific liquidity pool.
DeFiLlama MCP is a powerful and flexible tool that provides a microservice-based API wrapper around the DeFi Llama ecosystem. It leverages the FastMCP framework to transform DeFi Llama's comprehensive DeFi data into easily accessible tool endpoints that can be integrated with various AI applications, including LLM agents and autonomous systems.
This project serves as a bridge between the rich data sources provided by DeFi Llama and the emerging needs of AI-driven applications in the Web3 space. By wrapping DeFi Llama's APIs in a standardized MCP (Microservice Communication Protocol) format, developers can quickly integrate real-time DeFi data into their AI systems without dealing with the complexities of direct API integration.
## Features
Protocol Data Access: Retrieve comprehensive information about DeFi protocols including TVL (Total Value Locked) metrics.
Blockchain Analytics: Access historical TVL data for specific blockchains to analyze trends and growth patterns.
Token Price Tracking: Fetch current price information for various tokens across multiple chains.
Liquidity Pool Data: Get detailed insights into liquidity pools, including TVL and other critical metrics.
Standardized Interface: All data is accessible through a consistent API pattern, making it easy to integrate with AI systems.
Docker Support: Ready-to-deploy containerization for easy implementation in any environment.
Server-Sent Events: Real-time data updates using SSE transport mechanism.
## Architecture
DeFiLlama MCP is built using a modular architecture that separates the data-fetching logic from the API interface. The core components include:
1. API Clients: Specialized HTTP clients for each of DeFi Llama's API endpoints (Main, Coins, Yields).
2. MCP Tools: Function-based tools that transform raw API responses into structured data for consumption by AI agents.
3. FastMCP Server: A lightweight server that exposes the tools via HTTP and SSE (Server-Sent Events).
4. Error Handling: Robust error management to ensure reliability even when upstream services experience issues.
## Installation
### Prerequisites
Python 3.13 or higher
uv (Python package installer and environment manager)
### Option 1: Local Installation
bash
# Clone the repository
git clone https://github.com/demcp/defillama-mcp.git
cd defillama-mcp
# Create a virtual environment and install dependencies
uv venv
uv pip install -e .
# Run the server
uv run defillama.py
### Option 2: Docker Installation
bash
# Clone the repository
git clone https://github.com/demcp/defillama-mcp.git
cd defillama-mcp
# Build the Docker image
docker build -t defillama-mcp .
# Run the container
docker run -p 8080:8080 defillama-mcp
## Usage
Once the server is running, it exposes several endpoints that can be used to interact with DeFi Llama data:
### Available Tools
getprotocols: Retrieve information about top DeFi protocols.
getprotocoltvl: Get TVL data for a specific protocol.
getchaintvl: Access historical TVL data for a specific blockchain.
gettokenprices: Obtain current price information for specific tokens.
getpools: List available liquidity pools.
getpooltvl: Get detailed information about a specific liquidity pool.
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/demcp-demcp-defillama-mcp/)
- Source
- awesome · https://github.com/demcp/demcp-defillama-mcp
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.