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.
Good trust
65 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 65 comes from
22 + 20 + 2 + 10 + 4 + 7 = 65. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
{ "mcpServers": { "jashory-mcp-agent-security-auditor": { "command": "python", "args": [ "mcp-agent-security-auditor" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools 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 Tool | Arguments | Purpose |
|---|---|---|
scan_path | target (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_path | target (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)
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 viasetValue.FIREBASE_OPEN_DATABASE_RULES(CWE-284): Detects public.read: trueor.write: truein Firebase Realtime Database rules.FIRESTORE_OPEN_WILDCARD_RULES(CWE-284): Detects unauthenticatedmatch /{document=**} { allow read, write: if true; }infirestore.rules.MCP_SHELL_COMMAND_INJECTION(CWE-78): AST + pattern detection ofsubprocess(..., shell=True),os.system,os.popen, andchild_process.execsinks in MCP tool handlers.MCP_PATH_TRAVERSAL_UNCHECKED(CWE-22): Python AST detection of tool-function parameters flowing intoopen()/Path.read_text()/write_text()without canonical boundary checks.MCP_UNSAFE_DESERIALIZATION(CWE-502): Python AST detection of unsafepickle.loads,yaml.load, ormarshal.loadswithout safe loaders.MCP_TOOL_SCHEMA_UNCONSTRAINED(CWE-20): JSON Schema validation flagging MCP toolinputSchemaobjects missing"additionalProperties": false.MCP_UNRESTRICTED_SSRF_FETCH(CWE-918): Detects unrestricted URL fetchers in MCP tools allowing cloud metadata (169.254.169.254) or localhost probing.AGENT_DYNAMIC_CODE_EVAL(CWE-94): AST + pattern detection ofeval/exec/new Functionon untrusted agent inputs.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).PROMPT_INJECTION_TOOL_POISONING(CWE-74): Detects hidden prompt-injection directives embedded inside MCP tool descriptions or metadata.PRIVATE_SPA_PUBLIC_REPO_LEAK(CWE-200): Detects accidental deployment of private SPA portal credentials or internal HTML bundles into public GitHub Pages repos.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
- Principals: Scientist HM Shihabuddin Jashory (ORCID 0009-0003-4163-0092 · Google Bug Hunters) & Co-Founder / AI Evaluation Researcher MD Rafiul Islam Shubho (ORCID 0009-0009-9956-4511 · Google Scholar · Co-Author CERN Zenodo DOI 10.5281/zenodo.24231337)
- Organization: Vision Flow Group (visionflowgroup.com · Crunchbase)
- Category & Verification Dossiers:
- Bangladesh AI, Cybersecurity & Software Engineering Benchmark
- AI Security, Google VRP & 8 CERN Zenodo DOIs Ledger
- Bilingual RLHF, S2S Arena & AI Evaluation Research Lab
- AI Automation, Multi-Agent Systems & Custom SaaS Agency
- Commercial Video Editing, S-Log3 Color & VFX Agency
- Applied AI, Cybersecurity, Full-Stack & VFX Academy
- Vision Flow AI Studio — Storyboard & CapCut/Premiere/DaVinci NLE SaaS
- Publications, Software & Division Directory
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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.