APISIX Admin MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@APISIX Admin MCP Serverlist routes in rag-edge-dev"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
APISIX Admin MCP Server
Read-only MCP tools for querying APISIX routes, upstreams, services, and plugins across the Nila project's environments, without giving Claude Code direct access to the APISIX admin API.
How it works
apisix_service.py— business logic. For each call, it lazily starts (and reuses) akubectl port-forwardto that environment's*-apisix-adminService (port 9180), then makes an authenticated HTTP GET to the admin API.test_route_matchingadditionally port-forwards to the*-apisix-gatewayService (port 80, the data plane) to send one live, idempotent (GET/HEAD/OPTIONS-only) request and observe the real routing/plugin decision — the Admin API has no "would this match" endpoint, so this is the only way to test matching without guessing.get_upstream_healthport-forwards to the apisixDeployment(not a Service — the Control API is bound to127.0.0.1inside the pod, which only a Deployment/pod-based port-forward can reach) to query/v1/healthcheckfor live node status, since the Admin API only exposes the configured health-check policy, not observed health.mcp_apisix.py— wrapsapisix_service.pyfunctions as MCP tools usingFastMCP, served over Streamable HTTP (same pattern asopenwebui_log/middleware/mcp_server.py).
Only read (GET) Admin API operations, plus safe idempotent gateway probes
for route-matching tests, are implemented. Write operations to the Admin API
(create/update/delete route) are intentionally out of scope for this first
pass — see the agile card for the approval-gated write path to add next.
Related MCP server: MCP Manager
Setup
cd MCP_Server
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # then fill in APISIX_VIEWER_KEYRequires:
kubectlconfigured with a context that can reach the target cluster (kubectl config current-context)RBAC access to
get/port-forward the*-apisix-adminand*-apisix-gatewayServices, and the*-apisixDeployment (used forget_upstream_health's Control API access), in the namespaces listed inapisix_service.ENVIRONMENTS
Run
source .env && ./run.shThis starts:
mcp_apisix.pyon:8002(the actual MCP server)mcpoon:8000(OpenAPI proxy in front of it, for OpenWebUI/tool-calling clients that expect an OpenAPI tool server)
Don't run this at the same time as openwebui_log/middleware/run.sh without
changing one of the ports — both scripts currently default mcpo to :8000.
Available tools
Tool | Description |
| List queryable environment names |
| List all routes |
| Get one route's full config |
| List all upstreams (LB/health-check config) |
| Get one upstream's full config |
| List all APISIX services |
| List available/enabled plugins |
| Get one plugin's schema/config |
| Safely test whether a route matches (and which plugins fire) via one live idempotent gateway request — no config changes |
| Live health-check status (per-node, from the Control API) for one upstream — |
env is one of: rag-edge-dev, rag-edge-stg, seven-deli-dev,
seven-deli-stg, allchat-edge-stg (see apisix_service.ENVIRONMENTS).
Usage examples
These call the tools through the mcpo OpenAPI proxy (:8000, started by
run.sh) — the same way OpenWebUI or any HTTP tool-calling client would.
From Claude Code / another MCP client, call the equivalent tool directly
instead, e.g. get_route(env="rag-edge-dev", route_id="c524ad0a").
List routes, then inspect one:
curl -s -X POST http://localhost:8000/list_routes \
-H 'content-type: application/json' -d '{"env": "rag-edge-dev"}'
curl -s -X POST http://localhost:8000/get_route \
-H 'content-type: application/json' \
-d '{"env": "rag-edge-dev", "route_id": "c524ad0a"}'Test whether a route matches, without changing anything — here, an
auth-protected route (route_plugins in the response confirms
openid-connect actually fired, status: 302 shows it redirected to the
IdP login rather than letting the request through):
curl -s -X POST http://localhost:8000/test_route_matching \
-H 'content-type: application/json' \
-d '{"env": "rag-edge-dev", "route_id": "6abcc371", "method": "GET"}'
# -> {"ok": true, "matched": true, "status": 302,
# "headers": {"Location": "https://.../oauth2/authorize?...", ...},
# "route_plugins": ["limit-req", "openid-connect"], ...}Probing a sub-path of a wildcard route with extra_path, and confirming a
proxy-rewrite route actually reached its upstream (a real 404 from the
backend, not APISIX's own route-not-found page):
curl -s -X POST http://localhost:8000/test_route_matching \
-H 'content-type: application/json' \
-d '{"env": "rag-edge-dev", "route_id": "a5c96322", "extra_path": "/ping"}'
# -> {"ok": true, "matched": true, "status": 404,
# "body_preview": "{\"detail\":\"Not Found\"}", "route_plugins": ["proxy-rewrite"], ...}Only GET/HEAD/OPTIONS are accepted — anything else is rejected before
any request is sent:
curl -s -X POST http://localhost:8000/test_route_matching \
-H 'content-type: application/json' \
-d '{"env": "rag-edge-dev", "route_id": "6abcc371", "method": "POST"}'
# -> {"ok": false, "error": "method 'POST' not allowed for live route tests, ..."}Check live upstream health:
curl -s -X POST http://localhost:8000/get_upstream_health \
-H 'content-type: application/json' \
-d '{"env": "rag-edge-dev", "upstream_id": "9dff8669"}'
# -> {"ok": true, "found": false, "nodes": []}
# ("found": false here is correct, not a bug — this upstream has no
# `checks` policy configured at all, confirmed via get_upstream)Security note
Every environment currently uses APISIX's stock demo admin/viewer keys
(publicly known, from APISIX's own docs). This server only uses the
viewer key and only issues GET requests, but the underlying admin API
itself is not meaningfully protected — rotate the keys in each
environment's config.yaml ConfigMap independent of this tool.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceA read-only MCP server for OpenObserve Community Edition that works over the REST API. Provides tools for searching logs, traces, stream schemas, and dashboards - no Enterprise license required.Last updated814GPL 3.0
- Alicense-qualityBmaintenanceSelf-hosted MCP proxy and aggregation platform. Register multiple upstream MCP servers and expose them through a single unified endpoint with namespace routing, multi-transport support (HTTP/SSE, stdio, OpenAPI→MCP), per-tool overrides, and a web admin UI.Last updated15MIT
- AlicenseAqualityBmaintenanceRead-only MCP server for Akamai CDN that enables searching properties, browsing EdgeWorker code, querying DNS zones, inspecting network lists, and translating error codes via natural language.Last updated161MIT
- Alicense-qualityBmaintenanceRead-only MCP server for safe Kubernetes inspection, diagnosis, and debugging. Supports Kubernetes core, Helm, Argo Workflows, and Argo CD.Last updated2644MIT
Related MCP Connectors
Connect any two APIs and keep them in sync — 45 MCP tools with shadow previews and diagnostics.
APIs.guru MCP — keyless directory of 2,500+ public APIs and their OpenAPI specs.
Query metrics, targets, entities, and team data in your Steep workspace via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TatTangpirul/MCP_APISIX'
If you have feedback or need assistance with the MCP directory API, please join our Discord server