MoltLlama MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add --transport http moltllama https://moltllama.com/api/mcp
README.md

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

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.

Tools (8)

protocolsList all tracked DeFi protocols with their total value locked (TVL).
protocol_detailGet detailed data for a specific protocol including TVL, fees, and revenue.
pricesRetrieve current token prices.
chainsGet TVL and statistics for a specific blockchain.
yieldsList yield opportunities across various DeFi protocols.
dexsGet trading volume data for decentralized exchanges.
feesRetrieve protocol fee data.
contractsGet contract addresses, ABIs, and function signatures for protocols.

Environment Variables

UPSTASH_REDIS_REST_URLRedis cache URL
UPSTASH_REDIS_REST_TOKENRedis cache token
DEFILLAMA_API_KEYDeFiLlama Pro API key
COINGECKO_API_KEYCoinGecko Pro API key
BASE_RPC_URLBase chain RPC endpoint
ETHEREUM_RPC_URLEthereum RPC endpoint

Configuration

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

Try it

What are the current top yield opportunities for Aave V3?
Can you provide the contract address and ABI for the Uniswap V3 router?
Compare the total value locked (TVL) between Ethereum and Base chains.
What are the latest trading volumes for major DEXs?

Frequently Asked Questions

What are the key features of MoltLlama?

Aggregates DeFi protocol data from DeFiLlama. Provides MCP endpoints for AI agent integration. Supports multiple chains including Ethereum and Base. Exposes contract addresses, ABIs, and function signatures. Tracks protocol-specific metrics like TVL, fees, and revenue.

What can I use MoltLlama for?

Automated research for DeFi yield farming strategies. Retrieving smart contract interfaces for autonomous transaction execution. Monitoring cross-chain liquidity and protocol performance. Integrating real-time market data into AI-driven financial analysis tools.

How do I install MoltLlama?

Install MoltLlama by running: npm install && cp .env.example .env.local && npm run dev

What MCP clients work with MoltLlama?

MoltLlama works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MoltLlama docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare