✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

DefiLlama MCP Server

smithery badge

This package provides a Model Context Protocol (MCP) server that acts as a proxy to the public DefiLlama API. It allows AI assistants (like Cursor) to interact with the DefiLlama API through the defined OpenAPI specification.

Features

  • Dynamically generates MCP tools from the DefiLlama OpenAPI specification.
  • Uses the official DefiLlama API.
  • Translates MCP callTool requests into HTTP requests to the DefiLlama API.
  • Handles responses and errors from the API.

Installation & Usage

Using npx (Recommended for Clients like Cursor)

Once published to npm, you can configure clients like Cursor to automatically download and run the server using npx. Add an entry to your client’s MCP configuration (e.g., mcp.json):

{
  "mcpServers": {
    "defillama": { 
      "command": "npx",
      "args": [
        "-y", // Ensures the latest version is used without prompting
        "@nic0xflamel/defillama-mcp-server"
        // Add any server-specific arguments here if needed in the future
      ]
    }
    // ... other servers
  }
}

Replace "defillama" with your desired server name key.

Using Smithery (for Claude Desktop)

To install automatically via Smithery:

npx -y @smithery/cli install @nic0xflamel/defillama-mcp-server --client claude

Manual / Development

  1. Clone the repository.
  2. Run npm install.
  3. Run npm run build.
  4. Start the server: npm start or use the linked command defillama-mcp-server (after running npm link).
  5. Configure your MCP client to connect via stdio using the appropriate command (see npx example above, adapting for local paths or linked command if not using npx).

License

MIT (A LICENSE file exists in the project root)

Featured Templates

View More
Customer service
Multi-language AI Translator
136 921
AI Engineering
Python Bug Fixer
119 1433
Customer service
AI-Powered Product List Manager
153 868
AI Agents
AI Video Generator
252 2007 5.0
Verified Icon
AI Agents
AI Chatbot Starter Kit
1336 8300 5.0
AI Characters
Sarcastic AI Chat Bot
129 1713

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.