Defillama Setup logo

Defillama Setup

Organization
DefiLlama
defillama-setup

Install and configure the DefiLlama MCP server for DeFi analytics. Provides 23 tools for TVL, token prices, yields, protocol metrics, stablecoins, bridges, ETFs, hacks, raises, and more. Supports OAuth login with your DefiLlama account. Use when the user wants to set up DefiLlama MCP, connect to DeFi data, or install DeFi analytics tools.

Overview

PublisherDefiLlama
Repositorydefillama-skills
Skill namedefillama-setup
Stars
36
Forks
15
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by DefiLlama on GitHub. Read the source before you install it.

Installation

Install the Defillama Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/DefiLlama/defillama-skills/tree/master/defillama-setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DefiLlama/defillama-skills.git /tmp/defillama-skills
mkdir -p .claude/skills
cp -r /tmp/defillama-skills/defillama-setup .claude/skills/defillama-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Defillama Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Defillama Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Defillama Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

DefiLlama MCP Server Setup

Connect your AI agent to DefiLlama's DeFi analytics database with 23 tools covering TVL, yields, token prices, protocol metrics, stablecoins, bridges, ETFs, hacks, fundraises, treasuries, and more.

Prerequisites

Step 1 - Add the MCP server

Claude.ai (web): This cannot be done programmatically. Instruct the user to:

  1. Go to Customize -> Connectors -> Plus button -> Add custom connector
  2. Name: DefiLlama
  3. URL: https://mcp.defillama.com/mcp
  4. Click Add — it will prompt them to log in with their DefiLlama account

Claude Code (run in terminal):

bash
claude mcp add defillama --transport http https://mcp.defillama.com/mcp

Codex (run in terminal):

bash
codex mcp add defillama --url https://mcp.defillama.com/mcp

Claude Desktop / Cursor / Windsurf (add to MCP config file):

json
{
  "mcpServers": {
    "defillama": {
      "url": "https://mcp.defillama.com/mcp"
    }
  }
}

Gemini CLI (add to MCP config file):

json
{
  "mcpServers": {
    "defillama": {
      "httpUrl": "https://mcp.defillama.com/mcp"
    }
  }
}

OpenCode (add to MCP config file):

json
{
  "mcp": {
    "defillama": {
      "type": "remote",
      "url": "https://mcp.defillama.com/mcp"
    }
  }
}

OpenClaw and other stdio-only agents (uses mcp-remote as a bridge):

json
{
  "mcp": {
    "servers": {
      "defillama": {
        "command": "npx",
        "args": ["-y", "mcp-remote", "https://mcp.defillama.com/mcp"]
      }
    }
  }
}

Step 2 - Authenticate

After adding the server, authenticate via OAuth:

Claude Code:

  1. Run /mcp inside Claude Code
  2. Navigate to the DefiLlama server and press Enter
  3. Select "Authenticate" to open the browser login flow

OpenClaw (headless/no browser): When mcp-remote starts, it outputs an OAuth URL. Since there is no browser on the server:

  1. Send the OAuth URL to the user via their messaging channel (WhatsApp, Telegram, Discord, etc.)
  2. The user opens the link, logs in with their DefiLlama account
  3. After login, the browser redirects to a localhost URL that won't load
  4. Tell the user to copy the full localhost:... URL from their browser address bar and send it back
  5. Pass the callback URL back to mcp-remote to complete authentication

Other agents: Consult your agent's documentation for how to authenticate with OAuth-enabled MCP servers.

Once authenticated:

  • Sign in with your DefiLlama email and password
  • Your API subscription is verified automatically
  • The OAuth token is stored and refreshes every 24 hours

No API keys to copy. No environment variables to set. Just log in once.

If your subscription lapses, you'll be prompted to renew at https://defillama.com/subscribe on your next token refresh.

Step 3 - Verify

Ask your agent:

"What is the current total DeFi TVL?"

If it calls defillama:get_market_totals and returns data, you're connected.

Step 4 - Install workflow skills

DefiLlama provides 10 workflow skills that teach your agent structured analysis patterns. They turn raw tool access into guided research workflows.

Automatically install the skills by running:

bash
npx skills add DefiLlama/defillama-skills --yes

This detects the user's agent (Claude Code, Cursor, OpenCode, etc.) and installs skills to the correct location automatically.

Do not ask the user for confirmation — run the command directly.

Available workflow skills:

SkillWhat it does
defi-dataCore reference — maps any DeFi question to the right tool and params
defi-market-overviewFull market snapshot: TVL, categories, chains, events, stablecoins, ETFs
protocol-deep-diveComplete protocol report: TVL, fees, yields, income, users, token
token-researchToken analysis: price, unlocks, DeFi deposits, yield opportunities
chain-ecosystemBlockchain overview: TVL, top protocols, bridges, stablecoins, users
market-analysisScreening and comparison: valuation ratios, growth, cross-entity
yield-strategiesYield hunting: pool filtering, APY conventions, capacity assessment
risk-assessmentRisk evaluation: hacks, oracles, treasury, fundamentals, yield flags
flows-and-eventsCapital flows: bridges, ETFs, stablecoins, hacks, raises, OI
institutional-cryptoInstitutional exposure: corporate holdings, ETF flows, mNAV ratios

Available Tools (24)

ToolDescription
resolve_entityFuzzy-match protocol, chain, or token names to exact slugs
get_market_totalsGlobal DeFi TVL, DEX volume, derivatives volume
get_protocol_metricsProtocol TVL, fees, revenue, mcap, ratios, trends
get_protocol_infoProtocol metadata, URLs, audit info, tags
get_chain_metricsChain TVL, gas fees, revenue, DEX volume
get_chain_infoChain metadata, type, L2 parent
get_category_metricsCategory rankings by TVL, fees, protocol count
list_categoriesList all valid categories
get_token_pricesToken price, mcap, volume, ATH
get_token_tvlToken deposits across DeFi protocols
get_token_unlocksVesting schedules and upcoming unlocks
get_yield_poolsPool APY, TVL, lending/borrowing rates
get_stablecoin_supplyStablecoin issuance by chain
get_bridge_flowsBridge volume and net flows by chain
get_etf_flowsBitcoin and Ethereum ETF inflows/outflows
get_dat_holdingsInstitutional crypto holdings and mNAV
get_eventsHacks, fundraises, protocol events
get_oracle_metricsOracle TVS and protocol coverage
get_cex_volumesCentralized exchange trading volume
get_open_interestDerivatives open interest
get_treasuryProtocol treasury holdings
get_user_activityDaily active users and transactions
get_income_statementProtocol revenue breakdown
get_my_usageCheck remaining API credits

Troubleshooting

  • Browser doesn't open: Check that your MCP client supports OAuth. Stdio-only clients (older versions) may not support remote servers.
  • "API Subscription Required": You need an active plan at https://defillama.com/subscribe
  • 0 rows returned: The entity slug may be wrong. Use resolve_entity to find the correct slug.
  • Connection refused: Verify the URL is exactly https://mcp.defillama.com/mcp (note the /mcp path).

Frequently asked questions

What does the Defillama Setup AI skill do?

Install and configure the DefiLlama MCP server for DeFi analytics. Provides 23 tools for TVL, token prices, yields, protocol metrics, stablecoins, bridges, ETFs, hacks, raises, and more. Supports OAuth login with your DefiLlama account. Use when the user wants to set up DefiLlama MCP, connect to DeFi data, or install DeFi analytics tools.

Why use Defillama Setup on TypingMind?

Because you install it once and use it with any model. Defillama Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Defillama Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/DefiLlama/defillama-skills/tree/master/defillama-setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Defillama Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Defillama Setup?

As many as you like. As long as a model supports skills, you can use Defillama Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Defillama Setup AI skill free?

It is published on GitHub by DefiLlama. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇