Moltllama

by moltllama

324 downloads
Not rated
GitHub

About

Real-time DeFi data for AI agents. 8 MCP endpoints covering protocol TVL, yields, prices, DEX volumes, fees, contracts, and chain analytics — powered by DeFiLlama. Supports Base and Ethereum.

Details

Author
moltllama
Downloads
324
Categories
Search, AI

- MCP API for AI agents to call DeFi tools
- REST API at /api/mcp/* endpoints
- Browser dashboard for protocols, yields, and DEX volumes
- Supports Ethereum and Base chains
- Tracks yields, prices, fees, and contract interfaces
- Integrates with Aave V3, Uniswap V3, Compound V3, and more

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Moltllama
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with npm install, copy .env.example to .env.local, and run npm run dev to start at localhost:3000. For AI agent integration, add the MCP URL https://moltllama.com/api/mcp to your agent’s MCP configuration. No environment variables are required for development; production may use Upstash Redis and optional API keys.

list_protocols

List DeFi protocols with TVL, category, and change metrics. Filters to supported chains (Base + Ethereum) by default.

get_protocol

Get detailed protocol info including registry contract data, key functions, and supported tokens. Merges DeFiLlama data with local contract registry.

get_prices

Get current token prices from DeFiLlama. Accepts comma-separated token symbols and resolves them to on-chain addresses.

get_chain

Get chain TVL overview including current TVL, 24h/7d changes, TVL history (last 90 days), and top 20 protocols on the chain.

get_yields

List yield farming opportunities across DeFi protocols. Supports filtering by chain, protocol, minimum APY, and stablecoin-only pools.

get_dex_volumes

Get DEX volume overview and per-protocol volumes. Returns top 100 DEXs with 24h/7d/30d volume data and historical chart.

get_fees

Get protocol fee and revenue overview. Returns top 100 protocols by fees with 24h/7d/30d fee and revenue data.

get_contracts

Get contract addresses, key functions, and ABI info from the protocol registry. Returns contract metadata including function signatures, selectors, inputs, and transaction preparation details.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "moltllama": {
            "moltllama": {
                "url": "https://moltllama.com/api/mcp"
            }
        }
    }
}

McpServers

{
    "moltllama": {
        "url": "https://moltllama.com/api/mcp"
    }
}

MoltLlama

DeFi data and contract interfaces for AI agents that execute real tasks.

Live at moltllama.com

What it does

MoltLlama aggregates DeFi protocol data from DeFiLlama into three surfaces:

- MCP API — Machine Context Protocol endpoints for AI agents to discover and call DeFi tools (protocols, yields, prices, DEX volumes, fees, contracts)
- REST API — JSON endpoints at /api/mcp/* for any HTTP consumer
- Dashboard — Web UI for browsing protocols, yields, DEX volumes, and contract interfaces

Supported chains: Ethereum, Base. Protocols include Aave V3, Uniswap V3, Compound V3, Aerodrome, Morpho, and Moonwell.

Quick start

npm install
cp .env.example .env.local
npm run dev

The app runs at localhost:3000. No environment variables are required for development — caching falls back to in-memory LRU.

MCP integration

Add to your AI agent's MCP config:

{
  "mcpServers": {
    "moltllama": {
      "url": "https://moltllama.com/api/mcp"
    }
  }
}

API endpoints

| Endpoint | Description |
|----------|-------------|
| GET /api/mcp/protocols | List all tracked protocols with TVL |
| GET /api/mcp/protocols/[slug] | Protocol detail (TVL, fees, revenue) |
| GET /api/mcp/prices | Current token prices |
| GET /api/mcp/chains/[chain] | Chain TVL and stats |
| GET /api/mcp/yields | Yield opportunities across protocols |
| GET /api/mcp/dexs | DEX trading volumes |
| GET /api/mcp/fees | Protocol fee data |
| GET /api/mcp/contracts | Contract addresses, ABIs, and function signatures |

Environment variables

| Variable | Required | Description |
|----------|----------|-------------|
| UPSTASH_REDIS_REST_URL | Production | Redis cache URL |
| UPSTASH_REDIS_REST_TOKEN | Production | Redis cache token |
| DEFILLAMA_API_KEY | No | DeFiLlama Pro API key |
| COINGECKO_API_KEY | No | CoinGecko Pro API key (fallback provider) |
| BASE_RPC_URL | No | Base chain RPC endpoint |
| ETHEREUM_RPC_URL | No | Ethereum RPC endpoint |

Tech stack

Next.js 14 (App Router) · TypeScript · Tailwind CSS · Recharts · Radix UI · SWR · Zod · Upstash Redis

License

All rights reserved.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.