mcp-gateway-scan is a read-only static scanner designed to evaluate MCP gateway production-readiness. By scanning code and configuration, it identifies potential failure modes and provides a quick red/yellow/green score. The tool ensures security by only reading files without executing code or making network calls, making it safe to use in any environment.
The mcp-gateway-scan is a powerful, read-only static scanner designed to identify potential production-readiness anti-patterns in MCP (Model-driven Control Plane) agent gateways. With its rapid analysis capabilities, this tool offers a comprehensive score across seven critical dimensions, allowing developers to pinpoint areas of concern in their code and configuration within seconds.
This scanner stands out because it does not execute or interact with your code or network; it solely analyzes files to flag potential failure modes that could turn a properly functioning MCP gateway into an incident. The scanner highlights issues including:
The scanning process can be initiated using the command:
npx mcp-gateway-scan ./path/to/your/gateway
The tool produces detailed reports indicating the status of each dimension, which can include red (critical issues), yellow (warnings), and green (good practices). For a more automated approach, it can be integrated into continuous integration (CI) pipelines by utilizing the --ci option for compact, machine-readable output, enabling immediate feedback on the presence of critical issues during build processes.
Run the scanner against code fixtures to see practical assessments:
mcp-gateway-scan fixtures/secure # Mostly green score
mcp-gateway-scan fixtures/vulnerable # Mostly red score
This feature allows users to evaluate sample repositories safe from actual vulnerabilities.
The mcp-gateway-scan is an invaluable tool for developers seeking to ensure the readiness of their MCP gateways for production environments by identifying and managing potential vulnerabilities effectively. For more thorough assessments, consider exploring the full Provenwright MCP Gateway Readiness Audit, which provides an in-depth analysis along with a remediation roadmap.
No comments yet.
Sign in to be the first to comment.