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

TDQS

A4.4/5.0

Scored across 2 tools

Disambiguation5/5

The two tools serve clearly distinct purposes: `execute` runs JavaScript against the DefiLlama client, while `search_docs` provides documentation lookup. There is no overlap or confusion between them.

Naming Consistency5/5

Both tool names are lowercase and follow an imperative style: a single verb (`execute`) and a verb_noun compound (`search_docs`). The naming pattern is simple and consistent across the set.

Tool Count3/5

With only two tools, the count is on the low end. However, the pair of research (search_docs) and action (execute) is a coherent minimal design, though it may feel thin compared to more direct data-access tool sets.

Completeness5/5

The `execute` tool provides full programmatic access to all DefiLlama services via JavaScript, making the surface functionally complete. The addition of `search_docs` fills the knowledge gap, covering the entire workflow without dead ends.

Maintenance

ActivityInactive
ResponsivenessUnresponsive