Legacy app can't "just add AI." The OWASP Incubator Project legacy2mcp released a tool that analyzes Python, JavaScript/TypeScript or Java codebases and generates a guardrailed MCP server exposing only the business flows a user approves, running entirely offline with no API key. The tool labels each flow read-only, low-risk write or high-risk, links every label to a file and line in an HTML report, and generates a schema-validated, audit-logged server that is read-only by default unless --allow-writes is passed. It requires Python 3.10+ and installs via pip install "legacy2mcp[analyze]", parsing code without importing or executing it or uploading anything. Understand any codebase, then turn the flows you approve into a safe MCP server. Python, JavaScript/TypeScript and Java. Offline, no API key, nothing executed or uploaded. Make your existing app AI-ready in seconds. No rewrite, no risk. legacy2mcp is an OWASP Incubator Project that gives AI agents safe access to the applications you already have. Point it at a Python, JavaScript/TypeScript or Java codebase and it generates an MCP server, with guardrails built in, for just the parts you approve. php flowchart LR A "Your codebase