Logo vun Defillama Setup

Defillama Setup

Organisatioun
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.

Iwwersiicht

EditeurDefiLlama
Repositorydefillama-skills
Skill-Nummdefillama-setup
Stären
36
Forks
15
Matgeliwwert Fichieren
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum DefiLlama op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Defillama Setup an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/DefiLlama/defillama-skills/tree/master/defillama-setup
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Defillama Setup an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Defillama Setup automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Defillama Setup net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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).

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Defillama Setup op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Defillama Setup besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Defillama Setup an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/DefiLlama/defillama-skills/tree/master/defillama-setup an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Defillama Setup benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Defillama Setup benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Defillama Setup domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Defillama Setup gratis?

De Skill gëtt vum DefiLlama op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇