swagger2mcp
Verified Safeby tomer1983
Overview
Transform OpenAPI/Swagger specifications into Model Context Protocol (MCP) servers, enabling secure and accurate LLM interaction with APIs.
Installation
docker-compose up --buildEnvironment Variables
- PORT
- REDIS_HOST
- REDIS_PORT
- DATABASE_URL
- JWT_SECRET
- JWT_EXPIRES_IN
- ALLOW_ANONYMOUS
- ALLOWED_ORIGINS
- FRONTEND_URL
- VITE_API_URL
- MICROSOFT_CLIENT_ID
- MICROSOFT_CLIENT_SECRET
- MICROSOFT_CALLBACK_URL
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- NODE_ENV
Security Notes
The project demonstrates strong security awareness and implements several best practices, including robust authentication (JWT, OAuth2, RBAC), input validation (file size, crawl depth, file type), application-level rate limiting, and HTTP-only cookies for session management. Critical security concerns identified during development (e.g., global CORS, localStorage for sessions) have been documented as fixed. Production Dockerfiles use non-root users. Hardcoded secrets in `docker-compose.yml` are clearly marked for development use and are replaced by environment variables in `docker-compose.production.yml`. Detailed error messages are sanitized for client responses. Webhook payloads can be HMAC signed. Potential risks like excessive web crawling are mitigated with rate limiting and depth control.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-context-forge
Retrieving web content (HTML, PDF, DOCX, etc.) and local files, then converting them to high-quality Markdown format. Supports multiple conversion engines, content types, and processing options like image handling and content optimization.
Unla
A lightweight and highly available gateway service that converts existing MCP Servers and APIs into services compliant with the MCP Protocol through configuration.
mcp-openapi-server
Exposes OpenAPI endpoints as Model Context Protocol (MCP) tools, enabling Large Language Models (LLMs) to discover and interact with REST APIs through a standardized protocol.