DefiLlama MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| IQ_GATEWAY_KEY | No | IQ Gateway API key; sent as x-api-key to the gateway. | |
| IQ_GATEWAY_URL | No | IQ Gateway base URL. When set together with IQ_GATEWAY_KEY, all upstream calls are proxied through the gateway (adds caching). | |
| DEFILLAMA_API_KEY | No | DefiLlama API key; sent as x-api-key on direct calls. | |
| DEFILLAMA_MCP_TOOLS | No | Set 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
| Capability | Details |
|---|---|
| tools | {} |
| logging | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| executeA | Run async JavaScript against a pre-wired DefiLlama client. Define |
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
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.
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.
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.
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.