More Code tools →80 free dev tools →
Looking for MCP servers to install? MCP servers list: 289 servers by category, official and community →
- Turns legacy SOAP/WSDL services, databases, and REST APIs into safe typed MCP servers
- Generates audit‑logged MCP servers for AI agents
- Open‑source Apache‑2.0 Python toolkit
legacy2mcp generates an MCP server with built-in guardrails for existing Python or JavaScript/TypeScript codebases, enabling AI agents to safely interact with legacy apps.
- for
- Developers who want to add AI agents to existing Python or JS/TS applications without rewriting code.
- pricing
- open source
- license
- Apache-2.0
- v0.1.03 months ago
Key features
- Codebase analysis — Scans the target Python or JavaScript/TypeScript project to identify callable functions and risk levels.
- MCP server generation — Creates a micro-service control protocol (MCP) server exposing only approved endpoints.
- Built-in guardrails — Applies safety policies to restrict AI agents to approved operations.
- Zero-network discovery — Uses local configuration files so the server starts instantly without external calls.
- IDE integration — Provides .mcp.json and client configs for Cursor, VS Code, and Claude Code to auto-configure agents.
- Configurable approvals — Allows developers to manually approve which parts of the codebase are exposed to agents.
Use cases
- Add an AI assistant to a legacy Flask web app without code changes
- Enable a chatbot to query existing business-logic functions in a Node.js service
- Rapidly prototype AI-driven features on a monolithic codebase while enforcing safety policies
- Expose selected CRUD operations of an old Python service to LLM-based agents
legacy2mcp vs alternatives
Semgrep | |||
|---|---|---|---|
| Best for | AI-enabled access to legacy code | Static security analysis | MCP agent testing |
| Pricing | Open source | Subscription | Subscription |
| DevHunt upvotes | 1 | 0 | 91 |
| Launched | Dec 2026 | — | Oct 2026 |
- legacy2mcp vs Semgrep: Semgrep focuses on static code analysis for bugs and security, not on generating AI-ready MCP servers.
- legacy2mcp vs Articos MCP: Articos MCP provides a test environment for MCP agents but does not automatically generate guardrails from existing codebases.
legacy2mcp FAQ
Do I need to modify my existing code to use legacy2mcp?+
No, you point legacy2mcp at your existing Python or JavaScript/TypeScript codebase and it generates the MCP server without rewriting code.
How does legacy2mcp ensure AI agents are safe?+
It builds guardrails into the generated MCP server and only exposes the functions you explicitly approve.
What IDEs are supported for automatic configuration?+
Cursor, VS Code, and Claude Code detect the .mcp.json and related files to auto-configure project-scoped MCP servers.
Is any network access required to start the server?+
No, the tool discovery makes zero network calls; the server starts instantly from local files.
Summarized by DevHunt from github.com · Nov 26, 2026. Details may change; check the official site.
Semgrep




