
brizzai/auto-mcp 是从 https://github.com/brizzai/auto-mcp. 导入的 MCP 服务器候选。
概览
brizzai/auto-mcp 是从 https://github.com/brizzai/auto-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
访问汽车MCP主页
将任何 OpenAPI/Swagger 定义转换为功能齐全的 **模型上下文协议(MCP)**服务器——可本地、Claude Desktop 内部或云端运行。
该服务读取 Swagger(OpenAPI v2)或 OpenAPI v3 文档,实时生成路由,向你配置的上游端点代理请求,并通过 MCP 通过 MCP 使用 MCP 定义的 STDIO、HTTP 或 SSE 传输方式进行暴露。
✨ 为什么是自动MCP?
- 零锅炉板 – 带上你的
swagger.json开始上菜。 - 灵活部署——可作为CLI、长寿命守护进程,或在Docker/Kubernetes中运行。
- 所有交通方式 –
stdio(默认)。http- StreamableHttp,最新的MCPprototcol。sse– 自托管的长期活动源。- 可插拔认证 – 承载令牌、基本认证、API密钥、OAuth2或无认证。
- 运行时配置 – YAML 文件、CLI 标志或环境变量(前缀
AUTO_MCP_)。
🛠️ 使用 Auto MCP
轻松定制你的 Swagger/OpenAPI 文件,实现最佳的 MCP 集成。MCP 配置构建器让你:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Auto MCP
Transform any OpenAPI/Swagger definition into a fully-featured Model Context Protocol (MCP) server – ready to run locally, inside Claude Desktop, or in the cloud.
The service reads a Swagger (OpenAPI v2) or OpenAPI v3 document, generates routes on-the-fly, proxies requests to the upstream endpoint you configure, and exposes them through MCP using either the STDIO or HTTP or SSE transport defined in the MCP specification.
✨ Why Auto MCP?
- Zero boiler-plate – bring your
swagger.jsonand start serving. - Flexible deployment – run as a CLI, long-lived daemon, or within Docker/Kubernetes.
- All transport modes –
stdio(default).http- StreamableHttp, newest MCP prototcol.sse– self-hosted long-running event source.
- Pluggable auth – bearer token, basic auth, API keys, OAuth2 or no auth.
- Runtime configuration – YAML file, CLI flags, or environment variables (prefixed
AUTO_MCP_).
🛠️ Using Auto MCP
Easily tailor your Swagger/OpenAPI file for optimal MCP integration. The MCP Config Builder lets you:
- Edit endpoint descriptions for clearer, more helpful documentation.
- Filter out unnecessary routes to streamline your API exposure.
- Preview and customize how endpoints appear to LLMs and clients.
- Generate an adjustment file (
--adjustment-file) for use with Auto MCP, applying your customizations automatically.
How it works
- Install the MCP Config Builder:
This will build and install thego install ./cmd/mcp-config-buildermcp-config-builderbinary to your$GOPATH/bin(usually~/go/bin). Make sure this directory is in yourPATH. - Launch the tool:
mcp-config-builder --swagger-file=/path/to/swagger.json - Interactively review and edit endpoints in a user-friendly TUI (Terminal User Interface).
- Save your adjustments to a file for future use or sharing.
安装
docker run -i --rm -v /Users/you/path/to/swagger.json:/server/swagger.json ghcr.io/brizzai/auto-mcp:latest"
"--swagger-file=/server/swagger.json配置
{
"mcpServers": {
"YourMCP": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/Users/you/path/to/swagger.json:/server/swagger.json",
"ghcr.io/brizzai/auto-mcp:latest"
"--swagger-file=/server/swagger.json"
]
}
},
"globalShortcut": ""
}