Skip to content
MCP server
Registry

MCP & Agent Security Auditor MCP Server

Static AST and config security scanner for MCP servers, Claude Code hooks, and Firebase rules.

MCP & Agent Security Auditor scores 65 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Version control. GitHub shows 3 stars. Package registries report about 270 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by jashoryMITPython3 stars
Trust score
65Good
Trust score 65 of 100, Good

Good trust

65 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 65 comes from

22 + 20 + 2 + 10 + 4 + 7 = 65. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "jashory-mcp-agent-security-auditor": {      "command": "python",      "args": [        "mcp-agent-security-auditor"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

🔒 MCP & Agent Security Auditor — Stdio MCP Server, Python AST Scanner & GitHub Action (v2.4.1)

Zero-dependency Model Context Protocol (MCP) Server, Python AST security scanner, Pre-Push Auto-Healer, and GitHub Action for catching 13 CWE-mapped vulnerabilities in MCP servers, AI agent hooks, HTML/SPA bundles, and Firebase rules before shipping.

Authored by Scientist HM Shihabuddin Jashory (Shihab) (ORCID: 0009-0003-4163-0092) · Research & Evaluation Ecosystem with MD Rafiul Islam Shubho (Researcher, AI Evaluator & RLHF Specialist) — Vision Flow Group (TechBehemoths #101215) · Research Hub · Tools Hub · Studio


🔌 Model Context Protocol (MCP) Server

mcp-agent-security-auditor runs natively as a JSON-RPC 2.0 stdio MCP server (python3 -u mcp_security_auditor.py --mcp or via Dockerfile) with zero external runtime dependencies (100% Python 3.9+ standard library).

Exposed MCP Tools

MCP ToolArgumentsPurpose
scan_pathtarget (required string), format (json | markdown | sarif)Runs Python AST + JSON schema + heuristic security audit on any local directory or file with automatic secret redaction enabled by default.
list_security_rules{}Returns all 13 CWE-mapped static security rules, severities, descriptions, and remediation playbooks.
remediate_pathtarget (required string), apply (optional boolean, default false), backup (optional boolean, default true)Previews (apply=false) or applies (apply=true, writing <file>.bak backups) workspace-contained in-place redaction of matched secret tokens (HARDCODED_SECRET_TOKEN).

MCP Client Configuration (claude_desktop_config.json, Cursor, Kiro, Windsurf)

{
  "mcpServers": {
    "mcp-agent-security-auditor": {
      "command": "python3",
      "args": ["-u", "/path/to/mcp_security_auditor.py", "--mcp"]
    }
  }
}

Run the MCP Server via Docker (Stdio)

docker build -t mcp-agent-security-auditor .
docker run -i --rm -v "$(pwd):/workspace:ro" mcp-agent-security-auditor

⚡ 1. Install via AI Agent (Claude Code, Antigravity, Cursor, Codex)

Paste this single prompt into your AI coding agent:

Prompt: Clone https://github.com/jashory/mcp-agent-security-auditor and run "python install.py" to install the MCP server, security scanner CLI, and Agent Skill.

💻 2. Install via CLI (Terminal / Skills CLI / pip)

# Option A: Agent Skills CLI
npx skills add jashory/mcp-agent-security-auditor

# Option B: Direct Git Clone + 1-Command Installer
git clone https://github.com/jashory/mcp-agent-security-auditor.git
cd mcp-agent-security-auditor && python install.py

# Option C: Global CLI Tool & MCP Server via pip / uv
pip install mcp-agent-security-auditor
# Or directly from GitHub:
pip install git+https://github.com/jashory/mcp-agent-security-auditor.git

# Run CLI scanner with SARIF output and CI exit gate:
mcp-security-auditor --target /path/to/repo --format sarif --ci

# Start the stdio JSON-RPC 2.0 MCP server:
mcp-security-auditor --mcp

🔍 13 High-Signal CWE Security Rules Detected (Python AST + JSON Schema + Heuristics)

  1. AGENT_ENV_SECRET_PERSISTENCE (CWE-312): Detects when an agent CLI or config migrator resolves ${ENV_VAR} secrets in memory and writes them back to disk via setValue.
  2. FIREBASE_OPEN_DATABASE_RULES (CWE-284): Detects public .read: true or .write: true in Firebase Realtime Database rules.
  3. FIRESTORE_OPEN_WILDCARD_RULES (CWE-284): Detects unauthenticated match /{document=**} { allow read, write: if true; } in firestore.rules.
  4. MCP_SHELL_COMMAND_INJECTION (CWE-78): AST + pattern detection of subprocess(..., shell=True), os.system, os.popen, and child_process.exec sinks in MCP tool handlers.
  5. MCP_PATH_TRAVERSAL_UNCHECKED (CWE-22): Python AST detection of tool-function parameters flowing into open() / Path.read_text() / write_text() without canonical boundary checks.
  6. MCP_UNSAFE_DESERIALIZATION (CWE-502): Python AST detection of unsafe pickle.loads, yaml.load, or marshal.loads without safe loaders.
  7. MCP_TOOL_SCHEMA_UNCONSTRAINED (CWE-20): JSON Schema validation flagging MCP tool inputSchema objects missing "additionalProperties": false.
  8. MCP_UNRESTRICTED_SSRF_FETCH (CWE-918): Detects unrestricted URL fetchers in MCP tools allowing cloud metadata (169.254.169.254) or localhost probing.
  9. AGENT_DYNAMIC_CODE_EVAL (CWE-94): AST + pattern detection of eval / exec / new Function on untrusted agent inputs.
  10. HARDCODED_SECRET_TOKEN (CWE-798): Detects hardcoded GitHub PATs, OpenAI/Anthropic/HuggingFace/Google/AWS/Atlassian/Slack keys and private keys (values automatically redacted in output by default).
  11. PROMPT_INJECTION_TOOL_POISONING (CWE-74): Detects hidden prompt-injection directives embedded inside MCP tool descriptions or metadata.
  12. PRIVATE_SPA_PUBLIC_REPO_LEAK (CWE-200): Detects accidental deployment of private SPA portal credentials or internal HTML bundles into public GitHub Pages repos.
  13. OVERPERMISSIVE_CORS_WILDCARD (CWE-942): Detects wildcard CORS (Access-Control-Allow-Origin: *) combined with credentials.

GitHub Actions Integration (action.yml)

Use mcp-agent-security-auditor directly inside any CI/CD workflow:

- name: Run mcp-agent-security-auditor
  uses: jashory/mcp-agent-security-auditor@v2.4.1
  with:
    target: '.'
    format: 'sarif'
    ci: 'true'

Live Interactive Browser Playground

Test payloads directly in your browser (100% client-side, zero installation required): https://jashory.github.io/mcp-agent-security-auditor/


Ecosystem Authority, Category Benchmarks & Primary-Source Verification

Frequently asked questions

What is MCP & Agent Security Auditor MCP Server?

Static AST and config security scanner for MCP servers, Claude Code hooks, and Firebase rules.

How do I install MCP & Agent Security Auditor MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. MCP & Agent Security Auditor MCP Server is published as the PyPI package mcp-agent-security-auditor.

Is MCP & Agent Security Auditor MCP Server free and open source?

Yes. MCP & Agent Security Auditor MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does MCP & Agent Security Auditor MCP Server support remote (HTTP) connections?

No remote endpoint is listed for MCP & Agent Security Auditor MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is MCP & Agent Security Auditor MCP Server's trust score calculated?

MCP & Agent Security Auditor MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server