- Home
- MCP servers
- DefiLlama
DefiLlama
- javascript
7
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"dcspark-mcp-server-defillama": {
"command": "npx",
"args": [
"@mcp-dockmaster/mcp-server-defillama"
]
}
}
}You run an MCP server that gives Claude access to DeFi data via DefiLlama, enabling you to retrieve protocol TVL, chain TVL, token prices, and stablecoin data through a simple, scalable interface.
How to use
You connect an MCP client to the server, then issue data requests for the specific DefiLlama data you need. The server exposes a concise set of data endpoints that cover protocols, chains, token prices, historical prices, and stablecoins. Use the client to fetch the current TVL for a protocol, the TVL on a specific chain, or prices for tokens and stablecoins. The server handles the communication layer, so you can focus on integrating DeFi data into your application or assistant workflows.
How to install
Prerequisites you need before running the MCP server:
- Node.js (v16 or higher)
Choose one of the following installation paths.
How to install
Option 1: Using npx (Recommended)
npx @mcp-dockmaster/mcp-server-defillama
Option 2: Manual Installation
git clone https://github.com/mcp-dockmaster/mcp-server-defillama.git
npm install
npm run build
Available tools
defillama_get_protocols
List all protocols tracked by DefiLlama.
defillama_get_protocol_tvl
Get TVL data for a specific protocol.
defillama_get_chain_tvl
Get TVL data for a specific chain.
defillama_get_token_prices
Get current prices of tokens.
defillama_get_historical_prices
Get historical prices of tokens.
defillama_get_stablecoins
List all stablecoins tracked by DefiLlama.
defillama_get_stablecoin_data
Get data for a specific stablecoin.