MCP Server for DefiLlama

MCP Server for DefiLlama

By dcSpark GitHub

-

Overview

what is MCP Server for DefiLlama?

MCP Server for DefiLlama is a Model Context Protocol server that provides access to DeFi data through the DefiLlama API, enabling users to retrieve various financial metrics related to decentralized finance.

how to use MCP Server for DefiLlama?

To use the MCP Server, clone the repository from GitHub, install the necessary dependencies, build the project, and start the server using npm commands.

key features of MCP Server for DefiLlama?

  • Access to a comprehensive list of DeFi protocols tracked by DefiLlama.
  • Retrieval of Total Value Locked (TVL) data for specific protocols and chains.
  • Current and historical token price data.
  • Information on stablecoins and their respective data.

use cases of MCP Server for DefiLlama?

  1. Analyzing the performance of various DeFi protocols.
  2. Monitoring TVL changes across different chains.
  3. Fetching real-time and historical token prices for investment analysis.
  4. Researching stablecoin metrics for financial insights.

FAQ from MCP Server for DefiLlama?

  • What is the purpose of the MCP Server?

The MCP Server allows users to access and analyze DeFi data efficiently through the DefiLlama API.

  • Is there any cost associated with using the MCP Server?

No, the MCP Server is open-source and free to use under the MIT license.

  • What technologies are used in the MCP Server?

The MCP Server is built using TypeScript and follows standard npm practices for setup and deployment.

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

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"
      ]
    }
  }
}
No tools information available.
No content found.