Skip to main content
Glama
BrainDAO

DefiLlama MCP Server

by BrainDAO

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
IQ_GATEWAY_KEYNoIQ Gateway API key; sent as x-api-key to the gateway.
IQ_GATEWAY_URLNoIQ Gateway base URL. When set together with IQ_GATEWAY_KEY, all upstream calls are proxied through the gateway (adds caching).
DEFILLAMA_API_KEYNoDefiLlama API key; sent as x-api-key on direct calls.
DEFILLAMA_MCP_TOOLSNoSet to 'dynamic' to register the four additional endpoint-dispatch tools alongside the default two. Equivalent to passing --tools=dynamic.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
executeA

Run async JavaScript against a pre-wired DefiLlama client. Define async function run(defillama) { ... }; the JSON-serializable return value is sent back plus console.log output. The defillama client mirrors the services: defillama.protocol, defillama.dex, defillama.fees, defillama.options, defillama.stablecoin, defillama.price, defillama.yield, defillama.blockchain, plus defillama.resolveChain / defillama.resolveProtocol / defillama.resolveStablecoin helpers. JavaScript only (no type annotations); variables don't persist between calls; no fs, no network outside the client.

search_docsA

Search DefiLlama SDK docs to find the right methods, parameters, and example code. Use before writing execute() code when you're unsure of the API.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BrainDAO/mcp-defillama'

If you have feedback or need assistance with the MCP directory API, please join our Discord server