MCP Gateway Scan logo

MCP Gateway Scan

by willianpinho

Read-only MCP gateway scanner that scores seven production-readiness dimensions and redacts detected secret values.

Install MCP Gateway Scan

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "willianpinho-mcp-gateway-scan": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gateway-scan"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

willianpinho/mcp-gateway-scan MCP server exposes a read-only repository scanner through MCP, letting an agent inspect a supplied path with the `scan_gateway` tool. It checks seven dimensions, including RBAC, fail-closed behavior, supply-chain pinning, observability, cost controls, secrets, and production-readiness controls. The package runs over the standard command-based MCP configuration with `npx`, and it never executes scanned code or makes network calls. Reach for it when reviewing an MCP gateway or third-party server before deployment or connection, while treating a green result as a static signal rather than proof of runtime safety.

Use cases

  • Scan an MCP gateway repository before production deployment
  • Review a third-party MCP server before connecting it to credentialed agents
  • Run a readiness gate in CI when security findings appear
  • Inspect an MCP client configuration or package manifest before use

Key features

  • Seven-dimension static readiness scoring
  • Read-only scanning with secret-value redaction
  • MCP tool interface through scan_gateway
  • CONNECT, REVIEW, and DO-NOT-CONNECT verdicts
  • JSON and CI-friendly output modes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

20/21 checks healthy over the last 91d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · mcp-gateway-scan (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads152Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Gateway Scan works

What willianpinho/mcp-gateway-scan MCP server does

willianpinho/mcp-gateway-scan MCP server scans source code and configuration for production-readiness anti-patterns in MCP servers and agent gateways. Its MCP interface exposes the scan_gateway tool, which accepts a filesystem path and an optional CI setting. The result includes a status for each dimension, severity information, matched evidence, and a structured scan result.

The checks cover seven areas: tool-access governance and RBAC, fail-closed behavior, onboarding and supply-chain pinning, observability, routing and cost controls, secrets and identity, and operational readiness. Findings include examples such as authorization expressed in prompts, error paths that allow requests, unpinned images or packages, missing tracing, absent token or quota limits, inline credentials, and missing kill-switch or evaluation controls.

How it works

The server reads only the path provided to scan_gateway. It does not run the target code, contact external services, or print secret values. When it detects an inline secret, the output identifies the file and line while redacting the value. It also suppresses comments and documentation examples in several checks, helping distinguish executable configuration or prompt content from prose.

Each dimension receives a green, yellow, or red result with a severity tag. The optional ci input adds a CI-oriented verdict. The same scanning engine is available outside MCP through the command-line interface, including a connect mode that evaluates a repository, MCP client configuration, or package manifest as CONNECT, REVIEW, or DO-NOT-CONNECT.

Setup and configuration

Install requirements are limited to Node.js 18 or newer. For an MCP client, configure a command equivalent to:

config.json
{
  "mcpServers": {
    "gateway-scan": {
      "command": "npx",
      "args": ["-y", "mcp-gateway-scan", "mcp"]
    }
  }
}

The package can be added to Claude Code with claude mcp add gateway-scan -- npx -y mcp-gateway-scan mcp, or placed in a compatible client's MCP configuration. After setup, ask the agent to scan a repository and have it call scan_gateway with a path such as { "path": "<repo or dir>", "ci": false }.

Tools and capabilities

The primary MCP capability is scan_gateway. It can:

  • Produce per-dimension green, yellow, and red results.
  • Return structured findings with file-and-line evidence.
  • Check authorization, error handling, dependency or image pinning, telemetry, budgets, secrets, identity wiring, and operational controls.
  • Add a CI gate verdict when ci is enabled.
  • Preserve read-only behavior and redact secret values.

The command-line mode also supports JSON output, compact CI output, color suppression, and exit codes that distinguish clean scans, red findings, and usage or I/O errors.

Limitations and notes

willianpinho/mcp-gateway-scan performs static heuristic checks. A green CONNECT verdict means the configured static checks found no red dimensions; it does not verify the publisher or guarantee runtime behavior. The scanner is therefore suited to an initial review and regression gate, not a replacement for a cited security audit or runtime testing.

The scanner only examines the path supplied to it. It cannot assess behavior that is absent from the inspected files, and its conclusions depend on the patterns represented in the repository and configuration. The bundled vulnerable fixtures use fake placeholder secrets for safe testing; those values are not functional credentials.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Gateway Scan

willianpinho/mcp-gateway-scan is an MCP server that connects an agent to a local repository or configuration path for read-only gateway analysis. Its main tool, scan_gateway, scores seven security and production-readiness dimensions, returns file-and-line findings, and redacts detected secret values without executing code or making network calls.

Install it through an MCP client using `npx -y mcp-gateway-scan mcp`. Claude Code can use `claude mcp add gateway-scan -- npx -y mcp-gateway-scan mcp`; other clients can add the equivalent command and arguments to their MCP server configuration. Node.js 18 or newer is required.

Call the `scan_gateway` tool with a local path, for example `{ "path": "<repo or dir>", "ci": false }`. The tool returns per-dimension statuses and structured findings. Set `ci` to true when you also want the CI gate verdict.

Yes, it works with Cursor through an MCP configuration entry. Add a server using the `npx` command, the `-y`, `mcp-gateway-scan`, and `mcp` arguments, then ask Cursor to run `scan_gateway` against the desired path.

No, it only reads files in the supplied path. It does not execute the scanned code or make network calls, and inline-secret findings report the location while keeping the secret value redacted.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Gateway Scan AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/willianpinho-mcp-gateway-scan?style=directory)](https://allmcps.com/mcp/willianpinho-mcp-gateway-scan)
HTML Embed
<a href="https://allmcps.com/mcp/willianpinho-mcp-gateway-scan"><img src="https://allmcps.com/api/badge/willianpinho-mcp-gateway-scan?style=directory" alt="MCP Gateway Scan on AllMCPs" /></a>