Transform OpenAPI/Swagger specifications into Model Context Protocol (MCP) servers instantly.
π Swagger2MCP is a powerful tool ensuring LLMs can securely and accurately interact with your APIs. Upload a schema or crawl a documentation site, and get a fully functional, type-safe MCP server.
- π€ Drag & Drop Upload: Support for OpenAPI v2/v3 JSON/YAML files.
- π Intelligent Web Crawling: Point to any documentation URL and let our crawler discover schemas.
- π§ Automatic Code Generation: Production-ready TypeScript MCP servers.
- π¦ One-Click Export: Push directly to GitHub / GitLab or download as ZIP.
- π Secure Management: Store API tokens and configurations securely with audit logging.
- π³ Dockerized: Deploy anywhere with a single
docker-compose up. - π Job Tracking: Real-time progress monitoring for long-running crawling jobs.
- Docker & Docker Compose installed.
- Node.js 18+ (only if running locally without Docker).
# Clone the repository
git clone https://github.com/tomer1983/swagger2mcp.git
cd swagger2mcp
# Start the application
docker-compose upVisit the application at http://localhost:5173.
Before deploying to production, ensure you complete the following critical security steps:
- β Change JWT_SECRET - Generate a strong, unique secret key for JWT token signing
- β Set strong passwords - Use complex passwords for all database and service accounts
- β Configure CORS - Restrict CORS to only trusted domains in production
- β Enable HTTPS - Always use SSL/TLS certificates for encrypted communication
- β
Review environment variables - Ensure all
.envvalues are production-ready - β Update default credentials - Change all default usernames and passwords
- β Enable security headers - Configure appropriate HTTP security headers
- β Set up monitoring - Implement logging and monitoring solutions
See docs/PRODUCTION_DEPLOYMENT_CHECKLIST.md for detailed deployment instructions.
| Dashboard | Settings & configuration |
|---|---|
![]() |
![]() |
- Development Guide - Setup for contributors.
- API Documentation - REST API reference.
- Kubernetes Deployment - Deploy to Kubernetes or use Helm charts.
- Authentication - Security details.
- Testing Guide - QA procedures.
Deploy swagger2mcp to any Kubernetes cluster:
kubectl apply -f k8s/namespace.yaml
kubectl apply -f k8s/helm install swagger2mcp ./charts/swagger2mcp --namespace swagger2mcp --create-namespaceSee the full Kubernetes guide for detailed instructions.
Swagger2MCP is built with a modern tech stack designed for reliability and scalability:
graph LR
A[Frontend React] -->|REST API| B[Backend Express]
B -->|Jobs| C[Redis Queue]
C -->|Process| D[Worker Service]
B -->|Data| E[PostgreSQL]
D -->|Updates| E
- Frontend: React, Vite, TailwindCSS, Shadcn UI
- Backend: Node.js, Express, Prisma ORM
- Infrastructure: Docker, Nginx (optional), BullMQ (Redis)
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For security concerns, please refer to our Security Policy.
Distributed under the MIT License. See LICENSE for more information.
Built with β€οΈ by the Swagger2MCP Team

