mcp-mysql-apifox
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., "@mcp-mysql-apifoxShow me the first 10 users from the database."
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.
主要功能
不同项目连接不同
在 Mysql 数据库执行 SQL
添加接口文档到 Apifox
从 Apifox 下载所有API到本地文件
解析并执行 curl 命令
Related MCP server: Apifox MCP
安装与使用
配置MCP服务
{ "mcpServers": { "mysql-apifox": { "command": "npx", "args": [ "-y", "mcp-mysql-apifox" ] } } }建议在项目规则中定义
- **必须在完成后调用`help`工具询问是否完成,未完成继续,直到`help`返回完成后再总结** - 如果要使用mysql相关功能,使用该DSN: `mysql://user:password@host:port/database` - 接口文档管理规范(注意必须在明确"创建/更新接口文档"时才操作): - 使用 import_openapi 工具导入,项目信息: - 项目ID: <apiFox项目id> - API密钥: <apiFox密钥> - 保存接口根路径: `.apiDoc`目录 - 接口文件规范: - 文件位置在保存接口根路径下 - 目录结构:按 tags 属性数组顺序创建子目录 - 文件命名:使用 summary 属性值,格式为 JSON - 每次仅允许导入单个接口文件。
可用命令
execute_mysql
执行MySQL语句,需要提供DSN连接字符串。
参数:
dsn: MySQL数据库连接字符串,格式:mysql://user:password@host:port/databasesql: 要执行的SQL语句params: SQL查询参数(可选)
import_openapi
导入OpenAPI数据到Apifox。
参数:
input: JSON、YAML或X-YAML格式的OpenAPI数据字符串,或文件路径projectId: Apifox项目IDapiKey: Apifox API密钥
download_apis
从Apifox下载所有API到本地文件。
参数:
rootDir: 下载文件的根目录路径projectId: Apifox项目IDapiKey: Apifox API密钥
功能说明:
下载完整的OpenAPI 3.1规范文档
run_curl
解析并执行curl命令,返回HTTP请求结果。
参数:
curl: curl命令字符串
功能说明:
自动解析curl命令中的URL、HTTP方法、请求头、请求体等信息
返回完整的响应信息,包括状态码、响应头和响应数据
支持所有标准的curl参数和选项
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/327100395/mcp-mysql-apifox'
If you have feedback or need assistance with the MCP directory API, please join our Discord server