Compatible with every major AI agent and IDE
What is the Apache APISIX MCP Server?
Connect your Apache APISIX instance to any AI agent to orchestrate high-performance traffic management through natural language.
What you can do
- Route Orchestration — List, inspect, create, or delete routes to match client requests and forward them to target upstreams.
- Service Abstraction — Manage service entities that group common plugins and upstream configurations for easier API maintenance.
- Upstream Management — Configure virtual host abstractions for load balancing, including node management and health checks.
- Consumer Control — List and manage API consumers to handle authentication and per-user rate limiting.
- Configuration as Conversation — Update complex JSON configurations for any gateway resource without manually using CURL or the Dashboard.
How it works
- Subscribe to this server
- Provide your APISIX Admin URL and Admin Key (X-API-KEY)
- Start managing your microservices infrastructure from Claude, Cursor, or any MCP client
Who is this for?
- DevOps Engineers — quickly audit routing rules and upstream health directly from the terminal or chat.
- Backend Developers — create and test new API routes and service abstractions without leaving the IDE.
- SRE Teams — troubleshoot traffic flow and consumer access issues using natural language queries.
Built-in capabilities (50)
Delete an APISIX Consumer
Delete an APISIX Consumer Group
Delete an APISIX Global Rule
Delete an APISIX Plugin Config
Delete an APISIX Proto
Delete an APISIX Route
Delete an APISIX Service
Delete an APISIX SSL certificate
Delete an APISIX Stream Route
Delete an APISIX Upstream
Memory dump of discovered service endpoints
Dump all plugin metadata from the Control API
Dump all configured Routes from the Control API
Dump all configured Services from the Control API
Dump all configured Upstreams from the Control API
Get a specific APISIX Consumer by username
Get a specific APISIX Consumer Group by ID
Get health status of all upstream nodes
Get health status for a specific resource
Get JSON schemas for all resources and enabled plugins
Get a specific APISIX Global Rule by ID
Get a specific APISIX Plugin Config by ID
Get a specific APISIX Proto by ID
Get a specific APISIX Route by ID
Get a specific APISIX Service by ID
Get a specific APISIX SSL certificate by ID
Get a specific APISIX Stream Route by ID
Get a specific APISIX Upstream by ID
List APISIX Consumer Groups
List APISIX Consumers
List APISIX Global Rules
List APISIX Plugin Configs
List APISIX Protos (Protocol Buffers)
List APISIX Routes
List APISIX Services
List APISIX SSL certificates
List APISIX Stream Routes (L4 routing)
List APISIX Upstreams
Create or update an APISIX Consumer
Create or update an APISIX Consumer Group
Create or update an APISIX Global Rule
Create or update an APISIX Plugin Config
Create or update an APISIX Proto
Create or update an APISIX Route
Create or update an APISIX Service
Create or update an APISIX SSL certificate
Create or update an APISIX Stream Route
Create or update an APISIX Upstream
Trigger a hot reload of plugins
Trigger full garbage collection in the HTTP Lua VM
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Apache APISIX tool infrastructure. Connect 50 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Apache APISIX without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Apache APISIX tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Apache APISIX in Mastra AI
Apache APISIX and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect Apache APISIX to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Apache APISIX in Mastra AI
The Apache APISIX MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 50 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Apache APISIX for Mastra AI
Every tool call from Mastra AI to the Apache APISIX MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I update a route's configuration directly through the AI?
Yes. Use the put_route tool by providing the Route ID and the new configuration JSON. The agent will interface with the APISIX Admin API to apply the changes immediately.
How do I list all the backend upstreams configured in my gateway?
Simply ask the agent to 'list upstreams'. It will trigger the list_upstreams tool and return a detailed list of all virtual hosts and load balancer nodes.
Is it possible to delete a service that is no longer needed?
Yes, you can use the delete_service tool. Provide the specific Service ID, and the agent will remove the resource from your APISIX configuration.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Tolstoy
6 toolsEmbed interactive video experiences on your website that let visitors choose their own path through shoppable video funnels.

Bandwidth
10 toolsAutomate telecom workflows via Bandwidth — send SMS/MMS, manage media, campaigns, and toll-free verification directly from any AI agent.

Greenhouse
12 toolsHire the right people with structured interviewing, customizable pipelines, and data-driven recruiting that scales with your team.

Automate Reddit interactions via AI — search subreddits, list hot posts, and retrieve comment threads directly.
