mcp-server-defillama
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-defillamawhat's the TVL of Uniswap?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server for DefiLlama
This repository contains a Model Context Protocol (MCP) server that provides Claude with access to DeFi data via the DefiLlama API. The server enables Claude to perform operations like retrieving protocol TVL data, chain TVL data, token prices, and stablecoin information.
Overview
The MCP server exposes the following tools to Claude:
Protocol Data
defillama_get_protocols: List all protocols tracked by DefiLlamadefillama_get_protocol_tvl: Get TVL data for a specific protocol
Chain Data
defillama_get_chain_tvl: Get TVL data for a specific chain
Token Data
defillama_get_token_prices: Get current prices of tokensdefillama_get_historical_prices: Get historical prices of tokens
Stablecoin Data
defillama_get_stablecoins: List all stablecoins tracked by DefiLlamadefillama_get_stablecoin_data: Get data for a specific stablecoin
Prerequisites
Node.js (v16 or higher)
Related MCP server: DeFi Llama MCP Server
Running the server
Option 1: Using npx (Recommended)
npx @mcp-dockmaster/mcp-server-defillama
You can run the MCP server directly without installation using npx:
This will download and execute the server directly from npm.
Option 2: Manual Installation
Clone this repository:
git clone https://github.com/mcp-dockmaster/mcp-server-defillama.git
Install dependencies:
npm install
Build the project:
npm run build
Claude Usage
To configure Claude Desktop to use this MCP server:
Open Claude Desktop, and navigate to Settings>Developer Settings>MCP Servers. There you'll encounter the button to open the configuration JSON file.
Add the MCP server configuration:
{
"mcpServers": {
"mcp-server-defillama": {
"command": "npx",
"args": [
"@mcp-dockmaster/mcp-server-defillama"
]
}
}
}Alternatively, if you installed the package locally:
{
"mcpServers": {
"mcp-server-defillama": {
"command": "node",
"args": [
"/path/to/your/mcp-server-defillama/build/index.js"
]
}
}
}Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides access to DeFi Llama's free API for querying protocol TVL, chain TVL, yields, stablecoins, bridges, DEX volumes, and fees through natural language.89MIT
- Flicense-qualityDmaintenanceEnables Claude to access real-time NEAR DeFi data for yield comparisons, staking analysis, swap routing, and lending rates, helping users make informed DeFi decisions.
- AlicenseAqualityAmaintenanceEnables AI agents to interact with DefiLlama's DeFi data aggregator, providing access to TVL, DEX volumes, protocol statistics, and more via the Model Context Protocol.2143ISC
Related MCP Connectors
DefiLlama MCP — DeFi analytics from DefiLlama (free, no auth)
Cross-network DeFi API data, AMM analytics, and SDK docs for 17+ networks.
52 paid x402 API endpoints for AI agents — crypto, data, DeFi, market intelligence.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcSpark/mcp-server-defillama'
If you have feedback or need assistance with the MCP directory API, please join our Discord server