MCP ExplorerExplorer

Mcp Server Defillama

@dcSparkon a year ago
3 MIT
FreeCommunity
AI Systems
The mcp-server-defillama is an MCP server that connects Claude to DeFi data through the DefiLlama API. It offers tools for retrieving protocol TVL, chain TVL, token prices, and stablecoin information, facilitating comprehensive access to crucial DeFi metrics.

Overview

What is Mcp Server Defillama

mcp-server-defillama is a Model Context Protocol (MCP) server that provides access to DeFi data through the DefiLlama API, enabling operations like retrieving protocol TVL data, chain TVL data, token prices, and stablecoin information.

Use cases

Use cases include retrieving current and historical token prices, monitoring total value locked (TVL) in various protocols and chains, and managing stablecoin data for financial analysis.

How to use

You can run the MCP server using npx for a quick setup or manually by cloning the repository, installing dependencies, and building the project. Configuration for Claude Desktop is required to utilize the server.

Key features

Key features include access to protocol data, chain data, token prices, and stablecoin information, with specific tools for retrieving TVL data and historical prices.

Where to use

mcp-server-defillama is primarily used in the decentralized finance (DeFi) sector, where real-time data on protocols, chains, tokens, and stablecoins is crucial for decision-making.

Content

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers