Basic information
About APISIX Mcp Server
APISIX Model Context Protocol (MCP) server is used to bridge large language models (LLMs) with the APISIX Admin API.
APISIX Mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by api7. It exposes 32 tools, including get_resource, delete_resource, send_request_to_gateway, create_route and more. Supported transport: stdio. Runtime: node. License: Apache-2.0. The repository has 38 GitHub stars. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"apisix-mcp": {
"command": "npx",
"args": [
"-y",
"apisix-mcp"
],
"env": {
"APISIX_SERVER_HOST": "your-apisix-server-host",
"APISIX_ADMIN_API_PORT": "your-apisix-admin-api-port",
"APISIX_ADMIN_API_PREFIX": "your-apisix-admin-api-prefix",
"APISIX_ADMIN_KEY": "your-apisix-api-key"
}
}
}
}
{
"mcpServers": {
"apisix-mcp": {
"command": "npx",
"args": [
"-y",
"apisix-mcp"
],
"env": {
"APISIX_SERVER_HOST": "your-apisix-server-host",
"APISIX_ADMIN_API_PORT": "your-apisix-admin-api-port",
"APISIX_ADMIN_API_PREFIX": "your-apisix-admin-api-prefix",
"APISIX_ADMIN_KEY": "your-apisix-api-key"
}
}
}
}
{
"servers": {
"apisix-mcp": {
"command": "npx",
"args": [
"-y",
"apisix-mcp"
],
"env": {
"APISIX_SERVER_HOST": "your-apisix-server-host",
"APISIX_ADMIN_API_PORT": "your-apisix-admin-api-port",
"APISIX_ADMIN_API_PREFIX": "your-apisix-admin-api-prefix",
"APISIX_ADMIN_KEY": "your-apisix-api-key"
}
}
}
}
APISIX Mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"apisix-mcp": {
"command": "npx",
"args": [
"-y",
"apisix-mcp"
],
"env": {
"APISIX_SERVER_HOST": "your-apisix-server-host",
"APISIX_ADMIN_API_PORT": "your-apisix-admin-api-port",
"APISIX_ADMIN_API_PREFIX": "your-apisix-admin-api-prefix",
"APISIX_ADMIN_KEY": "your-apisix-api-key"
}
}
}
}
APISIX Mcp tools
-
get_resource
— Get resource details by ID or list all resources
id:string, type:string*, page:number, page_size:number, name:string, labels:object, uri:string -
delete_resource
— Delete a resource by ID
id:string*, type:string* -
send_request_to_gateway
— Send a request or multiple requests to the APISIX gateway
requests:array* -
create_route
— Create a route
id:string, route:object* -
update_route
— Update specific attributes of an existing route
id:string|null, route -
create_service
— Create a service
id:string, service:object* -
update_service
— Update specific attributes of an existing service
id:string|null, service -
create_upstream
— Create an upstream service with load balancing settings
id:string, upstream:object* -
update_upstream
— Update specific attributes of an existing upstream
id:string|null, upstream -
create_or_update_consumer
— Create a consumer, if the consumer already exists, it will be updated
username:string*, desc:string, labels:object, plugins:object, group_id:string -
get_credential
— Get all credentials or a specific credential for a consumer
username:string*, id:string -
create_or_update_credential
— Create or update a credential for a consumer
username:string*, id:string*, credential:object* -
delete_credential
— Delete a credential for a consumer
username:string*, id:string* -
create_ssl
— Create an SSL certificate
id:string, ssl:object* -
update_ssl
— Update specific attributes of an existing SSL certificate
id:string|null, ssl -
create_global_rule
— Create a global rule
id:string*, plugins:object* -
update_global_rule
— Update specific attributes of an existing global rule
id:string|null, plugins -
create_consumer_group
— Create a consumer group
id:string, consumerGroup:object* -
update_consumer_group
— Update specific attributes of an existing consumer group
id:string|null, consumerGroup -
get_all_plugin_names
— Get all plugin names
(no parameters) -
get_plugin_schema
— Get all plugins schema or a specific plugin schema by name
name:string*, type:string -
get_plugin_metadata
— Get metadata for a specific plugin
name:string* -
create_plugin_config
— Create a new plugin config
id:string*, plugins:object* -
update_plugin_config
— Update a plugin config
id:string|null, plugins -
create_or_update_plugin_metadata
— Create or update plugin metadata
name:string*, metadata:object* -
delete_plugin_metadata
— Delete plugin metadata
name:string* -
create_or_update_stream_route
— Create a stream route, if the stream route already exists, it will be updated
id:string, route:object* -
get_secret_by_id
— Get a secret by ID
id:string, manager:string*, page:number, page_size:number -
create_secret
— Create a secret
id:string, manager:string*, secret* -
update_secret
— Update specific attributes of an existing secret
id:string|null, manager, secret -
delete_secret
— Delete a secret by ID
id:string*, manager:string* -
create_or_update_proto
— Create a proto, if the proto already exists, it will be updated
id:string, proto:object*
Overview
What is APISIX Mcp?
APISIX Mcp is a Model Context Protocol (MCP) server that bridges large language models (LLMs) with the APISIX Admin API. It enables natural language–based interaction for viewing and managing APISIX resources through MCP‑compatible AI clients.
How to use APISIX Mcp?
Install via Smithery (npx -y @smithery/cli install @api7/apisix-mcp), npm (npx -y apisix-mcp), or from source (clone repo, pnpm install && pnpm build, then run node dist/index.js). Configure your AI client (Cursor, Claude, Copilot, etc.) with the required environment variables (APISIX_SERVER_HOST, APISIX_SERVER_PORT, APISIX_ADMIN_API_PORT, APISIX_ADMIN_API_PREFIX, APISIX_ADMIN_KEY). A running APISIX instance is a prerequisite.
Key features of APISIX Mcp
- Manage routes, services, upstreams, and SSL certificates.
- Create and update plugin configurations and global rules.
- Handle secrets, consumers, and consumer credentials.
- Retrieve plugin names, schemas, and metadata.
- Send test requests to the APISIX gateway.
- Install via Smithery, npm, or source code.
Use cases of APISIX Mcp
- Configure APISIX routes using natural language from an AI assistant.
- Automate plugin settings without manual API calls.
- Query and update upstream definitions through conversational commands.
- Manage consumer credentials and secret stores interactively.
Frequently asked questions
1 What environment variables are required?
APISIX_SERVER_HOST, APISIX_SERVER_PORT, APISIX_ADMIN_API_PORT, APISIX_ADMIN_API_PREFIX, and APISIX_ADMIN_KEY must be set. Defaults: host http://127.0.0.1, port 9080, admin port 9180, prefix /apisix/admin, admin key edd1c9f034335f136f87ad84b625c8f1.
2 Does APISIX Mcp require a running APISIX instance?
Yes. You must follow the APISIX Getting Started guide to set up and run APISIX before using this server.
3 How do I install APISIX Mcp?
Use Smithery (npx -y @smithery/cli install @api7/apisix-mcp), npm (npx -y apisix-mcp), or clone the repository and build from source.
4 What APISIX resources can be managed?
Routes, services, upstreams, SSL certificates, protobuf definitions, stream routes, plugin configurations, global rules, plugin metadata, secrets, consumers, consumer credentials, and consumer groups.
5 What transport does APISIX Mcp use?
The server communicates via the MCP protocol over standard input/output (stdio) when launched as a subprocess of the AI client.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In