mcpField
M
MCP Server for DefiLlama

MCP Server for DefiLlama

Local
github.com/dcSparkFinance9Updated 84w ago

About MCP Server for DefiLlama

MCP Server for DefiLlama gives Claude access to DeFi data from the DefiLlama API. It exposes queries for protocols, chains, token prices and stablecoins.

Key features

  1. 01List tracked protocols
  2. 02Retrieve protocol TVL
  3. 03Retrieve chain TVL
  4. 04Query current and historical token prices
  5. 05List stablecoins and retrieve their data

Use cases

  1. 01Review a protocol’s TVL
  2. 02Check TVL for a chain
  3. 03Look up token prices over time
  4. 04Inspect stablecoin data

MCP support

Exposes DefiLlama API data to MCP clients through tools for protocol, chain, token and stablecoin queries.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"defillama": {
"command": "npx",
"args": [
"-y",
"@mcp-dockmaster/mcp-server-defillama"
]
}
}
}
Run commandnpx -y @mcp-dockmaster/mcp-server-defillama

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@mcp-dockmaster/mcp-server-defillama

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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 DefiLlama
  • defillama_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 tokens
  • defillama_get_historical_prices: Get historical prices of tokens
Stablecoin Data
  • defillama_get_stablecoins: List all stablecoins tracked by DefiLlama
  • defillama_get_stablecoin_data: Get data for a specific stablecoin

Prerequisites

  • Node.js (v16 or higher)

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"
      ]
    }
  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.