Skip to main content
Glama
Security Audit MCP Ver
by Hanzet22

Security-Audit-MCP-Ver

Language: English (EU) · English (US) · Bahasa Indonesia · Malay (Singapore)

Setup guide: SETUP.md

Read-only, evidence-led source-code security audit tools exposed through the Model Context Protocol (MCP).

Independent implementation inspired by the workflow in Cloudflare Security Audit Skill. This project is not affiliated with or endorsed by Cloudflare. Cloudflare's upstream material remains under its original MIT licence; this project's own code is licensed under AGPL-3.0-or-later. See ATTRIBUTIONS.md.

Status

Version 0.3.1 — RELEASED. See CHANGELOG.md for release notes and SETUP.md for installation and MCP client configuration.

The server exposes 18 MCP tools covering repository reconnaissance, coverage planning, source review, findings validation, independent verification, orchestration contracts and report generation. It provides workflow primitives, not an autonomous audit agent.

Related MCP server: Shield IA

Requirements

  • Node.js 22 or newer (use a supported LTS release).

  • An MCP-compatible client.

  • Optional fine-grained GitHub token for private repositories or higher API limits. Grant only Contents: read-only and Metadata: read-only.

Install from source

git clone https://github.com/Hanzet22/Security-Audit-MCP-Ver.git
cd Security-Audit-MCP-Ver
npm ci
npm run build

To run the complete local validation suite:

npm run typecheck
npm test
npm run build

The production STDIO entry point is dist/stdio.js. The server currently supports local STDIO only; it does not provide an HTTP endpoint, remote MCP URL, OAuth flow or hosted service.

Configure an MCP client

Replace /absolute/path/to/Security-Audit-MCP-Ver with the actual path to the cloned repository. Build the project before connecting a client.

Claude Code

Add a user-level server:

claude mcp add --transport stdio --scope user security-audit-mcp-ver -- node /absolute/path/to/Security-Audit-MCP-Ver/dist/stdio.js
claude mcp list

Run /mcp inside Claude Code to inspect the connection. For project-only configuration, use --scope project instead of --scope user.

OpenAI Codex CLI

codex mcp add security-audit-mcp-ver -- node /absolute/path/to/Security-Audit-MCP-Ver/dist/stdio.js
codex mcp list

Codex stores the entry in ~/.codex/config.toml. You can also configure it there:

[mcp_servers.security-audit-mcp-ver]
command = "node"
args = ["/absolute/path/to/Security-Audit-MCP-Ver/dist/stdio.js"]

Cursor

Create .cursor/mcp.json in your project, or use the global Cursor MCP configuration:

{
  "mcpServers": {
    "security-audit-mcp-ver": {
      "command": "node",
      "args": ["/absolute/path/to/Security-Audit-MCP-Ver/dist/stdio.js"]
    }
  }
}

Visual Studio Code

For clients that use the VS Code MCP configuration format, create .vscode/mcp.json:

{
  "servers": {
    "security-audit-mcp-ver": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/Security-Audit-MCP-Ver/dist/stdio.js"]
    }
  }
}

Client configuration formats can differ. Consult the client's current MCP documentation if its schema changes.

Optional GitHub token

Public repositories can be read without a token, subject to GitHub's unauthenticated API rate limits. If required, set GITHUB_TOKEN in the MCP client's server environment. Use a fine-grained token limited to the repositories needed, with Contents: read-only and Metadata: read-only permissions. Never commit tokens or paste them into tool arguments.

Example for a client configuration that supports environment variables:

{
  "mcpServers": {
    "security-audit-mcp-ver": {
      "command": "node",
      "args": ["/absolute/path/to/Security-Audit-MCP-Ver/dist/stdio.js"],
      "env": {
        "GITHUB_TOKEN": "YOUR_READ_ONLY_TOKEN"
      }
    }
  }
}

Prefer your operating system's secret manager or the client's secure environment-variable mechanism over storing a token in a shared project file.

What the server does

  • Reads GitHub repository metadata, bounded trees and text files.

  • Prepares reconnaissance reports and canonical coverage ledgers.

  • Plans bounded hunting waves and validates caller-supplied results.

  • Validates findings, evidence structure and unique fingerprints.

  • Checks separately supplied reviewer records.

  • Generates JSON and Markdown audit reports.

Safety model and limitations

  • GitHub access is read-only.

  • The server does not clone or execute target repository code.

  • It does not probe deployed endpoints or third-party infrastructure.

  • Heuristic matches are candidate leads, not proof of vulnerabilities.

  • Caller-supplied refs, line ranges, worker results and orchestration state are not cryptographically attested.

  • Workflow gates check record consistency; they do not prove that independent work occurred.

  • The server does not spawn agents, run background jobs, persist queues or independently authenticate evidence.

  • Reports remain incomplete unless the required coverage and verification gates pass.

Important resource limits include a 15-second GitHub API timeout, a 5 MB response-body cap, up to 500 returned tree entries, a 300 KB individual-file limit and 100,000 characters of source text per review operation. Truncated or rejected inputs must not be treated as fully reviewed.

Development and contribution

npm ci
npm run typecheck
npm test
npm run build

See CONTRIBUTING.md, SECURITY.md, CHANGELOG.md and RELEASE_CHECKLIST.md.

Licence

Project code: GNU Affero General Public License v3.0 or later. See LICENSE.

Third-party upstream material: see ATTRIBUTIONS.md and the preserved notices in vendor/cloudflare-security-audit-skill/.

Available Tools

14 tools
audit_coverage_validateC

Phase 2: validate that every in-scope path has exactly one coverage-ledger entry.

Inputs: ledger (required), scope_paths (required).

audit_findings_validateB

Phase 4: validate finding structure, evidence fields and unique fingerprints. Needs-validation records cannot carry severity.

Inputs: findings (required).

audit_independent_verifyB

Phase 5: compare findings against separately supplied reviewer checks. This tool does not spawn reviewers or claim independence by itself.

Inputs: checks (required), findings (required).

audit_reconnaissanceC

Phase 1: map repository metadata and paths, classify files, and create an initial not-yet-reviewed inventory.

Inputs: repository (required), ref.

audit_report_generateC

Phase 6: validate coverage and separate reviewer checks, then generate target-neutral Markdown reports.

Inputs: scope (required), findings (required), repository (required), scope_paths (required), +4 more.

cloudflare_coverage_ledger_validateC

Validate a canonical coverage-ledger.json document with Cloudflare Security Audit Skill's upstream validator.

Inputs: ledger (required).

cloudflare_findings_validateC

Validate findings.json against Cloudflare Security Audit Skill's upstream report-schema.json and semantic checks.

Inputs: findings (required).

cloudflare_hunter_results_consolidateB

Cloudflare Skill Phase 2 parent-side consolidator: validate structured hunter unit results, ownership, source/local checks and parent-promoted artifact paths, then update only assigned ledger units. Does not execute targets or promote artifacts.

Inputs: ledger (required), results (required), assigned_coverage_ids (required), promoted_artifacts.

cloudflare_hunting_wave_prepareA

Cloudflare Skill Phase 2 parent-side planner: validate a canonical ledger, rank planned units deterministically, assign a bounded wave, and explicitly defer untouched units. Does not spawn hunters.

Inputs: ledger (required), max_hunters (required), changed_paths, prior_gap_ids.

cloudflare_reconnaissance_prepareB

Cloudflare Skill Phase 1 adapter: synthesize four caller-supplied read-only scout reports into run-metadata.json, architecture.md, and a canonical coverage-ledger.json validated by the upstream validator. Does not spawn agents or execute target code.

Inputs: run_id (required), target (required), repository (required), source_ref (required), +7 more.

repository_inspectB

Read GitHub repository metadata. Read-only; no code is executed.

Inputs: repository (required).

repository_read_fileB

Read one bounded text file from a GitHub repository. No code is executed.

Inputs: path (required), repository (required), ref.

repository_treeC

List bounded repository paths from GitHub's Git tree API.

Inputs: repository (required), ref.

source_security_reviewB

Phase 2/3: generate heuristic source-review candidates. Results are leads only and never confirmed automatically.

Inputs: source (required), filename.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 14 tools

    Disambiguation2/5

    Several tools have overlapping or near-duplicate purposes: cloudflare_coverage_ledger_validate vs. audit_coverage_validate, and cloudflare_findings_validate vs. audit_findings_validate. An agent could easily pick the wrong validator or confuse the Cloudflare-specific adapter with the generic audit phase tool, even though descriptions provide some distinction.

    Naming Consistency3/5

    Most names follow a verb_noun or resource_action pattern, but the set mixes four prefix families: cloudflare_, audit_, repository_, and a standalone source_security_review. The naming is readable but not predictable across the whole server.

    Tool Count4/5

    Fourteen tools is reasonable for a multi-phase security audit workflow spanning reconnaissance, validation, review, verification, and reporting. The count is slightly inflated by parallel Cloudflare-specific and generic audit validators.

    Completeness4/5

    The surface covers the audit lifecycle from repository reconnaissance through findings validation, independent verification, and report generation. Minor gaps exist around remediation or code-diff inspection, but core workflows are covered.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Automated security audit assistant for GitHub repositories that detects static vulnerabilities (leaked credentials, vulnerable dependencies, bad Docker practices, excessive GitHub Actions permissions), calculates a security score, and provides risk explanations and mitigation recommendations via Cohere.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that produces scored, evidence-cited audits of public GitHub repos via tools for fetching metadata, reading files, scanning git history, and checking hygiene.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables auditing public GitHub repositories over MCP Streamable HTTP, including classifying URLs, cloning repositories, scanning manifests, CI workflows, and credential signals, and producing findings, file trees, summaries, and PDF reports.
      MIT