Auto MCP
brizzai/auto-mcp · 194 stars · Go · Apache-2.0
MCP server Transform any OpenAPI/Swagger definition into a fully-featured Model Context Protocol (MCP) server
Install
The repo has no one-line install. Follow its README.
Files
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:
go install ./cmd/mcp-config-builder
This will build and install themcp-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.
- Run Auto MCP with your adjustment file to apply your customizations:
auto-mcp --swagger-file=/path/to/swagger.json --adjustment-file=/path/to/adjustments.json
📚 Use Cases
-
Rapid Prototyping: Wrap any REST API as an MCP server in seconds—ideal for testing ideas or building AI tools fast.
-
Bridge Legacy Services: Expose legacy or internal systems as MCP endpoints without rewriting them.
-
Access Any 3rd-Party API from Chat Applications: Turn any third-party API into an MCP tool, making it accessible to AI assistants like Claude.
-
Minimal Proxy Tools: Use auto-mcp to proxy APIs that already handle validation and logic—no wrappers needed.
🖥️ Running inside Claude Desktop
Add the following snippet to your Claude Desktop configuration (⟂ Settings → MCP Servers):
{
"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": ""
}
Claude will start the container on-demand and connect over STDIO. Replace the host path to swagger.json and image tag to suit your setup.
CLI flags
--mode– overrideserver.mode(stdioorsse).--swagger-file– path to the OpenAPI document (default:swagger.json).--adjustment-file- mcp-config-builder output filter/change route descriptions
For detailed configureation guidelines, please see CONFIGURATION.md.
🔐 OAuth Support
Auto MCP supports OAuth 2.1 authentication, including PKCE, dynamic client registration, and multiple providers (internal, GitHub, Google). This allows you to secure your MCP server with industry-standard authentication flows.
See the OAuth Usage Guide for detailed setup instructions, endpoint descriptions, and testing tips.
🐳 Running with Docker
-
Run in local
stdiomode:docker run --rm -i \ -v $(pwd)/swagger.json:/server/swagger.json \ ghcr.io/brizzai/auto-mcp:latest \ --swagger-file=/server/swagger.json \ --mode=stdio -
Run in remote
sse/httpmode :docker run \ -v $(pwd)/swagger.json:/server/swagger.json \ ghcr.io/brizzai/auto-mcp:latest \ --swagger-file=/server/swagger.json \ --mode=http
The bundled docker-compose.yml maps port 8080 and persists logs to ./logs.
Running the Petshop Example
You can try out the included Petshop demo using Docker. This demo uses a sample configuration and API specs to show how auto-mcp works.
Steps:
- Make sure you are in the root directory of this repository.
- Run the following command:
docker run --rm -i \ -v $(pwd)/examples/petshop/config:/config \ ghcr.io/brizzai/auto-mcp:latest
- This command mounts the
examples/petshop/configdirectory from your local machine into the Docker container at/config. - The
/configdirectory inside the container should contain:config.yaml: Main configuration file for the demoswagger.json: API specification for the Petshop serviceadjustment.yaml: Optional adjustments or overrides for the API
Note: Any files you place in
examples/petshop/configwill overwrite the defaultconfig.yaml,swagger.json, andadjustment.yamlinside the container.
This setup allows you to easily test and modify the Petshop demo configuration.
See [docs/CONFIGURATION.md](docs/ CONFIGURATION.md) for all config options and environment variable overrides.
🤝 Contributing
For detailed contribution guidelines, please see CONTRIBUTING.md.
📄 License
Distributed under the Apache License 2.0 License. See LICENSE for details.
Facts
- Kind
- MCP server
- Repo
- brizzai/auto-mcp
- Group
- Uncategorized
- Stars
- 194
- License
- Apache-2.0
- Language
- Go
- Last push
- 2025-12-03
- Forks
- 23
- Homepage
- automcp.brizz.ai
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
