# AISIX AI Gateway

> AISIX AI Gateway is an open-source MCP server. Self-hosted AI gateway that governs MCP servers, LLM traffic, and A2A agents behind one endpoint. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://docs.api7.ai/ai-gateway/mcp-gateway/overview
- **Repository:** https://github.com/api7/aisix
- **MCP Registry name:** io.github.api7/aisix
- **Listing updated:** 2026-11-13

## About

Self-hosted AI gateway that governs MCP servers, LLM traffic, and A2A agents behind one endpoint

## Install

### Claude Code (Terminal)

```sh
claude mcp add aisix -- docker run -i --rm ghcr.io/api7/aisix:1.3.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "aisix": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/api7/aisix:1.3.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "aisix": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/api7/aisix:1.3.0"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "aisix": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/api7/aisix:1.3.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "aisix": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/api7/aisix:1.3.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "aisix": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/api7/aisix:1.3.0"
      ]
    }
  }
}
```

## FAQ

### Is AISIX AI Gateway free?

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

### How do I add AISIX AI Gateway to Claude Code?

Run this command in your terminal: claude mcp add aisix -- docker run -i --rm ghcr.io/api7/aisix:1.3.0

---
Source: https://ai-powered.com/mcp/aisix-ai-gateway
