Token导航 LogoToken导航TokenDH.com
Apisix MCP logo
AI代理stdio官方来源来源级核验

Apisix MCP

MCP Server

apisix-mcp

The APISIX official MCP server bridges LLMs with the APISIX Admin API. It aims to enable natural language-based interaction for viewing and managing resources in APISIX through MCP-compatible AI clients.

工具数

32

提示词数

0

GitHub Stars

37

资源数

0
API集成TypeScriptClaude自然语言处理Claude DesktopClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

api7

提供方

api7

最后核验

2026/5/18 04:55

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

APISIX_SERVER_HOST={APISIX_SERVER_HOST} APISIX_ADMIN_API_PORT={APISIX_ADMIN_API_PORT} APISIX_ADMIN_API_PREFIX={APISIX_AD...

详细介绍

](https://mseep.ai/app/api7-apisix-mcp)

APISIX模型上下文协议(MCP)服务器

](https://smithery.ai/server/@api7/apisix-mcp)

APISIX模型上下文协议(MCP)服务器用于桥接大型语言模型(LLM)和APISIX管理API。它旨在通过MCP兼容的AI客户端实现基于自然语言的交互,以查看和管理APISIX中的资源。

https://github.com/user-attachments/assets/081e878c-225e-4ff8-a9c5-5813f4784cfe

支持运营

常见操作

  • get_resource:按类型检索资源(路线、服务、上游等)
  • delete_resource:按ID删除资源
  • send_request_to_gateway:向APISIX网关发送一个或多个请求

API资源运营

  • create_route/update_route/delete_route:管理路线
  • create_service/update_service/delete_service:管理服务
  • create_upstream/update_upstream/delete_upstream:上游管理
  • create_ssl/update_ssl/delete_ssl:管理SSL证书
  • create_or_update_proto:管理protobuf定义
  • create_or_update_stream_route:管理溪流路线

插件操作

  • get_all_plugin_names:获取所有可用的插件名称
  • get_plugin_info/get_plugins_by_type/get_plugin_schema:检索插件配置
  • create_plugin_config/update_plugin_config:管理插件配置
  • create_global_rule/update_global_rule:管理插件全局规则
  • get_plugin_metadata/create_or_update_plugin_metadata/delete_plugin_metadata:管理插件元数据

安全配置

  • get_secret_by_id/create_secret/update_secret:管理机密
  • create_or_update_consumer/delete_consumer:管理消费者
  • get_credential/create_or_update_credential/delete_credential/:管理消费者凭据
  • create_consumer_group/delete_consumer_group:管理消费者群体

AI客户端中的配置

先决条件

遵循APISIX 入门指南 设置和运行APISIX的指南。

通过Smithery安装

通过以下方式自动安装Claude Desktop的APISIX模型上下文协议服务器 史密瑟里:

npx -y @smithery/cli install @api7/apisix-mcp --client claude

使用npm

使用以下设置配置您的AI客户端(Cursor、Claude、Copilot等):

{
  "mcpServers": {
    "apisix-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "apisix-mcp"
      ],
      "env": {
        "APISIX_SERVER_HOST": "your-apisix-server-host",
        "APISIX_SERVER_PORT": "your-apisix-server-port",
        "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存储库:

git clone https://github.com/api7/apisix-mcp.git
cd apisix-mcp

安装依赖项并构建项目:

pnpm install
pnpm build

使用以下设置配置您的AI客户端(Cursor、Claude、Copilot等):

{
  "mcpServers": {
    "apisix-mcp": {
      "command": "node",
      "args": [
        "your-apisix-mcp-path/dist/index.js"
      ],
      "env": {
        "APISIX_SERVER_HOST": "your-apisix-server-host",
        "APISIX_SERVER_PORT": "your-apisix-server-port",
        "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_SERVER_HOST有权访问您的APISIX服务器的主机http://127.0.0.1
APISIX_SERVER_PORTAPISIX服务器端口9080
APISIX_ADMIN_API_PORT管理员API端口9180
APISIX_ADMIN_API_PREFIX管理员API前缀/apisix/admin
APISIX_ADMIN_KEY管理员API身份验证密钥edd1c9f034335f136f87ad84b625c8f1

要查看或修改APISIX中的管理API配置,请参阅 管理员API 文档。

资源

开放式MCP市场API支持

||文件|MCP市场

  • 允许AI App/Agent/LLM通过常见的python/typescript API找到此MCP服务器,搜索并探索相关的服务器和工具

*示例:搜索服务器和工具*

    import anthropic
    import mcp_marketplace as mcpm

    result_q = mcpm.search(query="apisix mcp", mode="list", page_id=0, count_per_page=100, config_name="deepnlp") # search server by category choose various endpoint
    result_id = mcpm.search(id="api7/apisix-mcp", mode="list", page_id=0, count_per_page=100, config_name="deepnlp")      # search server by id choose various endpoint 
    tools = mcpm.list_tools(id="api7/apisix-mcp", config_name="deepnlp_tool")

    # Call Claude to Choose Tools Function Calls 
    client = anthropic.Anthropic()
    response = client.messages.create(model="claude-3-7-sonnet-20250219", max_tokens=1024, tools=tools, messages=[])

目录标签

目录标签

API集成TypeScriptClaude自然语言处理API管理本地部署LLM集成网关管理AI工具

支持客户端

Claude DesktopClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

apisix-mcp

工具数量(toolCount,工具数)

32

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP