APISIX MCP Server

APISIX Model Context Protocol (MCP) server is used to bridge large language models (LLMs) with the APISIX Admin API, supporting querying and managing

Local serverstdioPython

What is the APISIX MCP server?

Most developer tooling work still happens through a UI a human drives. APISIX MCP server moves it into the conversation instead. APISIX Model Context Protocol (MCP) server is used to bridge large language models (LLMs) with the APISIX Admin API, supporting querying and managing all resources in Apache APISIX.

Getting it running

Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

The tools it exposes

The server publishes 3 tools. What each one is for:

  • create_or_update_proto — Manage protobuf definitions
  • create_or_update_stream_route — Manage stream routes
  • Prerequisite — Follow the APISIX Getting Started guide to set up and run APISIX

What it needs from you

Configuration is passed through the environment: APISIX_SERVER_HOST, APISIX_SERVER_PORT, APISIX_ADMIN_API_PORT, APISIX_ADMIN_API_PREFIX, APISIX_ADMIN_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. APISIX's toolset — create_or_update_proto, create_or_update_stream_route, Prerequisite — is a fair guide to whether it matches your workflow.

This entry was verified against APISIX's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
create_or_update_protoManage protobuf definitions
create_or_update_stream_routeManage stream routes
PrerequisiteFollow the APISIX [Getting Started](https://docs.api7.ai/apisix/getting-started/) guide to set up and run APISIX.

How to install the APISIX MCP server

{
  "mcpServers": {
    "apisix": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "APISIX_SERVER_HOST": "your-value",
        "APISIX_SERVER_PORT": "your-value",
        "APISIX_ADMIN_API_PORT": "your-value",
        "APISIX_ADMIN_API_PREFIX": "your-value",
        "APISIX_ADMIN_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
APISIX_SERVER_HOSTEndpoint or connection string the server talks to.Optional
APISIX_SERVER_PORTConfiguration value read at startup.Optional
APISIX_ADMIN_API_PORTConfiguration value read at startup.Optional
APISIX_ADMIN_API_PREFIXConfiguration value read at startup.Optional
APISIX_ADMIN_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use APISIX to create or update proto.
  • Use APISIX to create or update stream route.
  • Use APISIX to Prerequisite.

Frequently asked questions

It connects APISIX to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (create_or_update_proto, create_or_update_stream_route, Prerequisite) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with APISIX directly.