# XFuel

> XFuel is an open-source MCP server. Submit AI inference to XFuel, pay per task (USDC via x402 or TFUEL), fetch/verify ZK proofs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/xfuel-lab/xfuel-protocol/tree/HEAD/xfuel-mcp
- **MCP Registry name:** io.github.XFuel-Lab/xfuel-mcp
- **Listing updated:** 2026-11-13

## About

Submit AI inference to XFuel, pay per task (USDC via x402 or TFUEL), fetch/verify ZK proofs.

## Install

### Claude Code (Terminal)

```sh
claude mcp add xfuel-mcp --env XFUEL_API_KEY='<XFUEL_API_KEY>' --env XFUEL_MCP_AUTH_TOKEN='<XFUEL_MCP_AUTH_TOKEN>' --env XFUEL_PAYER_PRIVATE_KEY='<XFUEL_PAYER_PRIVATE_KEY>' -- npx -y xfuel-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "xfuel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xfuel-mcp"
      ],
      "env": {
        "XFUEL_API_KEY": "<XFUEL_API_KEY>",
        "XFUEL_MCP_AUTH_TOKEN": "<XFUEL_MCP_AUTH_TOKEN>",
        "XFUEL_PAYER_PRIVATE_KEY": "<XFUEL_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "xfuel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xfuel-mcp"
      ],
      "env": {
        "XFUEL_API_KEY": "<XFUEL_API_KEY>",
        "XFUEL_MCP_AUTH_TOKEN": "<XFUEL_MCP_AUTH_TOKEN>",
        "XFUEL_PAYER_PRIVATE_KEY": "<XFUEL_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "xfuel-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "xfuel-mcp"
      ],
      "env": {
        "XFUEL_API_KEY": "<XFUEL_API_KEY>",
        "XFUEL_MCP_AUTH_TOKEN": "<XFUEL_MCP_AUTH_TOKEN>",
        "XFUEL_PAYER_PRIVATE_KEY": "<XFUEL_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "xfuel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xfuel-mcp"
      ],
      "env": {
        "XFUEL_API_KEY": "<XFUEL_API_KEY>",
        "XFUEL_MCP_AUTH_TOKEN": "<XFUEL_MCP_AUTH_TOKEN>",
        "XFUEL_PAYER_PRIVATE_KEY": "<XFUEL_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "xfuel-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xfuel-mcp"
      ],
      "env": {
        "XFUEL_API_KEY": "<XFUEL_API_KEY>",
        "XFUEL_MCP_AUTH_TOKEN": "<XFUEL_MCP_AUTH_TOKEN>",
        "XFUEL_PAYER_PRIVATE_KEY": "<XFUEL_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

## FAQ

### Is XFuel free?

Yes. XFuel is open source, so you can use and self-host it for free.

### How do I add XFuel to Claude Code?

Run this command in your terminal: claude mcp add xfuel-mcp --env XFUEL_API_KEY='<XFUEL_API_KEY>' --env XFUEL_MCP_AUTH_TOKEN='<XFUEL_MCP_AUTH_TOKEN>' --env XFUEL_PAYER_PRIVATE_KEY='<XFUEL_PAYER_PRIVATE_KEY>' -- npx -y xfuel-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/xfuel
