Openapi Mcp GeneratorSAFE
A Python tool that automatically converts OpenAPI(Swagger, ETAPI) compatible specifications into fully functional Model Context Protocol (MCP) servers. Generates Docker-ready implementations with support for SSE/IO communication protocols, authentication, and comprehensive error handling. https://py
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Python tool that automatically converts OpenAPI specifications into fully functional Model Context Protocol (MCP) servers. Generates Docker-ready implementations with support for SSE/IO communication protocols, authentication, and comprehensive error handling.
Key features:
- 🔄 OpenAPI to MCP tools/resources conversion
- 🐳 Docker-ready with multi-stage builds
- 🔐 Multiple authentication methods
- ⚡ Async operations & rate limiting
- 📡 SSE/IO communication protocols
- 📦 Modular code structure with package support
Modular Code Structure
The generator has been refactored into a proper Python package while maintaining backward compatibility:
- Original Entry Point: The
generator.pyscript still works exactly as before - Modular Organization: Code is now split into focused modules
- Package Installation: Can be installed as a proper Python package
- Same Templates: Uses the exact same templates in the
/templatesdirectory - Docker Support: Preserves all Docker functionality
You can use the tool in whatever way you prefer:
- Run
generator.pydirectly (original approach) - Install as a package and use
mcp-generatorcommand - Use the module programmatically in your own Python code
For more details on the modular code structure, see MODULAR_REFACTORING.md.
Features
- Convert OpenAPI specifications to MCP servers
- Docker-ready implementation with multi-stage builds
- Support for multiple authentication methods
- Choice of SSE or IO communication protocols
- Comprehensive error handling and logging
- Built-in rate limiting and security features
- Async operations for optimal performance
- Extensive test suite with coverage reporting
Prerequisites
- Python 3.10+
- Docker (for running the generated server)
- pip or uv (Python package manager)
Installation
From Source
# Clone the repository git clone https://github.com/abutbul/openapi-mcp-ge
946b9f7283d0OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add {{ project_name }} --env API_AUTH_TYPE=${API_AUTH_TYPE} --env API_PASSWORD=${API_PASSWORD} --env API_TOKEN=${API_TOKEN} -- uvx {{ project_name }}{
"mcpServers": {
"{{ project_name }}": {
"command": "uvx",
"args": [
"{{ project_name }}"
],
"env": {
"API_AUTH_TYPE": "${API_AUTH_TYPE}",
"API_PASSWORD": "${API_PASSWORD}",
"API_TOKEN": "${API_TOKEN}"
}
}
}
}Exposed tools (29)
29 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
createBackup | read | |
createNote | read | |
createRevision | read | |
deleteAttachmentById | read | |
deleteAttributeById | read | |
deleteNoteById | read | |
exportNoteSubtree | read | |
getAppInfo | read | |
getAttachmentById | read | |
getAttachmentContent | read | |
getAttributeById | read | |
getBranchById | read | |
getDayNote | read | |
getMonthNote | read | |
getNoteById | read | |
getNoteContent | read | |
getWeekFirstDayNote | read | |
getYearNote | read | |
importZip | read | |
login | read | |
patchAttachmentById | read | |
patchAttributeById | read | |
patchBranchById | read | |
patchNoteById | read | |
postAttachment | read | |
postAttribute | read | |
putAttachmentContentById | read | |
putNoteContentById | read | |
searchNotes | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (5)
.env.sh
.env.sh
pyyaml, jinja2, httpx
mcp, httpx, pyyaml
mcp, httpx, pyyaml
Gates applied: no_behavioural_pass.
946b9f7283d0full audit observations/trust-audit/mcp-server/abutbul__openapi-mcp-generator.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 946b9f7283d0 | SAFE | B | 89 | first audit |
Questions
What is the Openapi Mcp Generator MCP server?
A Python tool that automatically converts OpenAPI(Swagger, ETAPI) compatible specifications into fully functional Model Context Protocol (MCP) servers. Generates Docker-ready implementations with support for SSE/IO communication protocols, authentication, and comprehensive error handling. https://py
What tools does Openapi Mcp Generator expose?
29 in total: 29 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Openapi Mcp Generator safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Openapi Mcp Generator need?
It reads API_AUTH_TYPE, API_PASSWORD and API_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Openapi Mcp Generator run?
It speaks sse and stdio, so it runs as a local process your client starts. It is published on PyPI as {{ project_name }}.
How current is this page?
The grade is for one exact copy of the source (946b9f7283d0), read on 2026-10-08. The repository is watched and re-audited when it changes.