Skip to main content
Glama
sahan411

repo-security-scan-mcp

by sahan411

repo-security-scan-mcp

An MCP server that lets Claude (or any MCP client) triage a local project for the classic security problems in AI-built web apps (Next.js, Vite, Express, Supabase, Firebase and similar).

It reads a folder you point it at. It never opens network connections and never probes live sites. Secrets in results are redacted to their first 4 characters.

What it checks (20+ rule types)

Leaked secrets (AWS, Stripe, GitHub, OpenAI/Anthropic-style, Slack, SendGrid, private keys, database URLs with passwords, JWTs including Supabase service_role), secrets exposed to the browser through NEXT_PUBLIC_/VITE_ variables, Supabase tables without row-level security, open Firebase rules, wildcard CORS, dangerous code patterns (eval, dangerouslySetInnerHTML, string-built SQL, shell injection), API routes that change data without a visible auth check, weak JWT secrets, weak password hashing, debug mode left on, TLS verification turned off, committed .env files, unpinned dependencies, missing lockfile and missing tests.

Related MCP server: opzyai

Tools

Tool

What it does

scan_repo

Scans a folder; returns counts and findings ordered by severity (path, min_severity, limit, max_mb).

triage_summary

Same scan, returned as a short plain-English go/no-go with what to fix first.

Install and use

Requires Node 18+ and Python 3.

git clone <this repo> && cd repo-security-scan-mcp
npm install
npm test

Add to Claude Desktop (claude_desktop_config.json) or Claude Code (claude mcp add):

{ "mcpServers": { "repo-security-scan": { "command": "node", "args": ["/absolute/path/to/server.mjs"] } } }

Set PYTHON if your Python executable is not python (Windows) or python3 (macOS/Linux).

Then ask: "Scan ./my-app and tell me what to fix before launch."

Honest limits

This is a heuristic static scan, not a penetration test. It produces false positives and misses issues. Review each finding before acting, and rotate any exposed secret immediately. npm test runs a real MCP client against generated fixture apps (fake secrets are assembled at runtime so this repo never contains token-shaped strings): 7 checks, including "clean app has 0 HIGH findings".

Need this on your project, or a custom MCP server for your tools?

Open an issue or message the author.

License: MIT

Available Tools

2 tools
scan_repoScan a local repo for AI-built-app security problemsA
Read-onlyIdempotent

Scans a local project folder (Next.js, Vite, Express, Supabase, Firebase style) for leaked secrets, secrets exposed to the browser, missing Supabase row-level security, wildcard CORS, open Firebase rules, dangerous code patterns and API routes without a visible auth check. Returns counts plus findings ordered by severity. Secrets are redacted.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute or relative path to the project folder
limitNoMaximum findings to return
max_mbNoSkip files larger than this many MB
min_severityNoHide findings below this severityLOW

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint/idempotentHint/openWorldHint=false, so the safety profile is covered; the description goes beyond them by disclosing the detection categories, the shape of the result (counts + severity-ordered findings), and that secrets are redacted — an operationally important trait. It stops short of noting scan cost, file-count limits, or that nothing is written to disk.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and scope, then a dense but useful enumeration of checks; the second sentence delivers the return contract and the redaction guarantee. The category list is long but each item is a distinct, decision-relevant signal, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description takes on the burden and does it well by summarizing return shape and ordering. What remains unsaid — error behavior on a missing/invalid path, whether large repos are truncated — is modest for a read-only scan tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so path, limit, max_mb, and min_severity are already documented in structured form. The description adds no format or semantics for these (e.g., how min_severity interacts with the ordering, or what max_mb skips), which is the expected baseline when the schema carries the load.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb (scans) plus a precisely scoped resource (a local project folder, with example frameworks) and an explicit enumeration of what it hunts for. The output contract ('returns counts plus findings ordered by severity') makes it unmistakable against the sibling triage_summary, which cannot be a scanner.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the name and the path requirement, but the description never states when to reach for this versus triage_summary, nor any prerequisite (e.g., that the path must be locally accessible, or that it is a point-in-time static scan rather than a live check). Adequate context, no explicit routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

triage_summaryOne-paragraph triage of a repo scanA
Read-onlyIdempotent

Runs the same scan and returns a short plain-English triage: what to fix first and why. Good for a quick go/no-go before deploying.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the project folder

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, closed-world), so the bar is lower. The description adds real value beyond them by characterizing the return: short, plain-English, prioritized as "what to fix first and why." It does not mention latency, size limits, or determinism of the text, but the output shape disclosure is substantive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with no filler; the purpose and the deploy-time use case are front-loaded in that order.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description must carry the return-value burden, and it does reasonably well by describing the triage as a prioritized plain-English summary. The only gap is the unspecified relationship to scan_repo, which an agent would need to reason out.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter and schema description coverage is 100%, so the schema fully documents "path." The description adds no format or constraint detail beyond that, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and output ("returns a short plain-English triage: what to fix first and why") and implies a relationship to the sibling by saying it "runs the same scan." It stops short of naming scan_repo as the alternative, so the distinction from that sibling is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Good for a quick go/no-go before deploying" gives a concrete usage context, which is more than nothing. But it never states when to prefer this over scan_repo, nor any exclusions (e.g., use the raw scan when you need details, not a summary).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv0.1.0
    • First observedscan_repo
    • First observedtriage_summary

TDQS

A3.7/5.0

Scored across 2 tools

Disambiguation3/5

scan_repo and triage_summary both run 'the same scan', so their boundaries are blurry; the distinction is purely output format (raw findings by severity vs. plain-English prioritization). An agent wanting a prioritized answer versus full findings has some guidance, but the overlap invites misselection.

Naming Consistency4/5

Both names use snake_case and are readable, but scan_repo is a clear verb_noun while triage_summary is a noun phrase (verb/domain mix). Minor deviation within an otherwise consistent style.

Tool Count3/5

Two tools for a full security scanner is on the thin side. The scan/summarize pair covers the headline workflow, but there is no room for narrower operations like scanning a single file or listing rule metadata.

Completeness3/5

Core scan-and-report is present, but notable gaps exist: no way to fetch details for a single finding, filter/ignore rules, manage a baseline, or run in a CI-oriented mode. Agents can work around these by re-running scans, but the lifecycle is partial.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Agent-native "safe to ship?" security gate for AI-generated code. Uses real parsers and inter-rocedural taint analysis (JS/TS, Python, Go) to flag the classes AI coding agents get wrong — secrets, SQL injection, SS, SSRF, path traversal, command injection, weak JWT/CORS — and ranks findings by confidence. Exposes a scan tool over MCP.
    1
    2 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Local-first security check for AI coding agents — finds hardcoded secrets, exposed .env files, git-history leaks and vulnerable dependencies (OSV), entirely on your machine. Ask your agent "is this safe to ship?" and get a Launch Readiness score with a fix for every finding.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables agents to run static heuristic scans over a repository path via stdio, surfacing review candidates with file:line evidence for web3 auth and payment vulnerability patterns. Results can be used as CI-style gates or triage input without any dataflow analysis or external dependencies.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Static security scanner for AI-generated (vibe-coded) Supabase and Next.js apps. Runs as an MCP server so an LLM can scan, explain findings, and produce fixes while it writes code, all locally and offline.
    5
    16 npm
    MIT