> ## Documentation Index
> Fetch the complete documentation index at: https://docs.li.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Setup instructions for connecting the LI.FI MCP Server to your AI tool

The fastest way to get started is connecting to the **hosted server**. No installation required. Below are setup instructions for each supported AI tool.

## Claude Desktop

Add to your Claude Desktop config:

* **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
* **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

```json theme={"system"}
{
  "mcpServers": {
    "lifi": {
      "type": "http",
      "url": "https://mcp.li.quest/mcp"
    }
  }
}
```

With an API key for higher rate limits:

```json theme={"system"}
{
  "mcpServers": {
    "lifi": {
      "type": "http",
      "url": "https://mcp.li.quest/mcp",
      "headers": {
        "X-LiFi-Api-Key": "your_api_key"
      }
    }
  }
}
```

## Claude Code

Add via CLI:

```bash theme={"system"}
claude mcp add lifi --transport http --url https://mcp.li.quest/mcp
```

Or add a `.mcp.json` file at your project root (shareable via git):

```json theme={"system"}
{
  "servers": {
    "lifi": {
      "type": "http",
      "url": "https://mcp.li.quest/mcp"
    }
  }
}
```

## Cursor

Add to `.cursor/mcp.json` (project-level) or `~/.cursor/mcp.json` (global):

```json theme={"system"}
{
  "mcpServers": {
    "lifi": {
      "url": "https://mcp.li.quest/mcp"
    }
  }
}
```

## Windsurf

Add to `~/.codeium/windsurf/mcp_config.json`:

```json theme={"system"}
{
  "mcpServers": {
    "lifi": {
      "serverUrl": "https://mcp.li.quest/mcp"
    }
  }
}
```

<Note>
  Windsurf uses `serverUrl` instead of `url`.
</Note>

## VS Code (GitHub Copilot)

Add to `.vscode/mcp.json` in your project:

```json theme={"system"}
{
  "servers": {
    "lifi": {
      "type": "http",
      "url": "https://mcp.li.quest/mcp"
    }
  }
}
```

With secure API key prompting:

```json theme={"system"}
{
  "inputs": [
    {
      "id": "lifi-api-key",
      "type": "promptString",
      "description": "LI.FI API Key",
      "password": true
    }
  ],
  "servers": {
    "lifi": {
      "type": "http",
      "url": "https://mcp.li.quest/mcp",
      "headers": {
        "X-LiFi-Api-Key": "${input:lifi-api-key}"
      }
    }
  }
}
```

## ChatGPT

ChatGPT supports MCP via developer mode. Add the server through the ChatGPT UI. There is no config file to edit.

1. Open ChatGPT settings
2. Navigate to the MCP servers section
3. Add the server URL: `https://mcp.li.quest/mcp`

## Testing Your Setup

Use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector) to interactively test the server:

```bash theme={"system"}
npx @modelcontextprotocol/inspector --url https://mcp.li.quest/mcp
```

This opens a web UI at `http://localhost:6274` where you can browse and test all available tools.

You can also verify your setup by asking your AI tool a simple question like:

> "What chains does LI.FI support?"

If the MCP server is connected correctly, the tool will call `get-chains` and return a list of supported blockchains.
