Skip to main content
DeFindex provides two complementary AI integrations that let you query documentation and build integrations using natural language.

1. DeFindex MCP Server

The Model Context Protocol (MCP) server exposes the full DeFindex documentation to any compatible AI assistant, including Claude, so it can answer questions about vaults, strategies, API endpoints, and SDK usage without you having to paste docs manually.

What is it?

The DeFindex MCP server (https://docs.defindex.io/mcp) gives AI tools direct, searchable access to these docs. Ask your AI assistant about deposit flows, vault roles, APY calculations, or any other DeFindex concept and it will answer from the latest documentation.

Add to Claude Code (CLI)

Add the following to your project’s .claude/settings.json or to your global ~/.claude/settings.json:
After saving, restart Claude Code. The server will be available as mcp__Defindex__* tools.

Add to Claude.ai (Web)

  1. Open Claude.ai → Settings → Integrations → Add MCP Server
  2. Enter the server URL: https://docs.defindex.io/mcp
  3. Give it a name (e.g. DeFindex Docs) and save

Add to Claude Desktop

In your claude_desktop_config.json:

Example Queries

Once configured, you can ask your AI assistant:
  • “How do I deposit into a DeFindex vault?”
  • “What roles does a DeFindex vault have?”
  • “Show me the withdraw-shares endpoint”
  • “How is APY calculated in DeFindex?”
  • “What is a dfToken?“

2. Claude Code Skill — defindex-api

The defindex-api skill is a Claude Code playbook that gives the model a complete, structured reference for the DeFindex REST API. It covers authentication, every endpoint, request/response shapes, error handling, and code examples.

What it does

When invoked, the skill provides Claude Code with:
  • Auth flow — generate an API key in the console → send it as a Bearer token
  • User operations — deposit, withdraw, withdraw-shares, balance, APY, discover vaults
  • Vault administration — roles (get/set), rebalance, lock/release/distribute fees, rescue, pause/unpause strategies, upgrade WASM
  • Factory — create-vault, create-vault-deposit, create-vault-auto-invest
  • Submit transactions — POST /send for signed XDRs
  • Rate limits — tier configs and retry patterns

Installation

Clone the skill repository into your Claude Code skills directory:
Or install file-by-file:

How to use it

In Claude Code, type:
Or reference it in your prompt:
Argument hints:
  • stellar-dev — general Stellar and Soroban development playbook.

Getting Your API Key

Before you can call protected endpoints, you need an API key:
  1. Open the DeFindex Console and create your account, or log in.
  2. Go to API Keys and click Generate API Key.
See the full walkthrough: Getting Your API Key

Additional Resources