mcp-security-auditor
MCP Security & Vulnerability Auditor
A zero-execution static AST security scanner and vulnerability auditor for Model Context Protocol (MCP) servers.
Detect critical remote code execution (RCE), arbitrary file access, leaked API keys, unauthenticated transports, and tool poisoning before connecting any untrusted MCP server to your AI agents, Claude Desktop, or Cursor environments.
🌟 Tools Exposed to AI Agents
This server exposes two specialized security tools to connected MCP clients:
audit_mcp_repositoryArguments:
repository_url(string, required): Public Git URL of the MCP repository to audit.sub_directory(string, optional): Subdirectory path if auditing a specific tool inside a monorepo.
Action: Clones the repository shallowly without executing hooks, performs AST syntax analysis, and returns a Trust Score (0–100), letter grade (A+ to F), and formatted markdown report.
audit_local_directoryArguments:
directory_path(string, required): Absolute path to a local directory containing MCP server code.
Action: Audits local source code without executing it.
Related MCP server: mcp-security-audit
🛡️ Vulnerability Rule Set
Rule ID | Severity | CWE | Threat Category |
MCP-SEC-001 | CRITICAL | CWE-78 | Command Injection: Detects |
MCP-SEC-002 | HIGH | CWE-22 | Path Traversal & ZipSlip: Detects filesystem tools lacking root boundary checks ( |
MCP-SEC-003 | CRITICAL | CWE-798 | Credential & Secret Exposure: Detects hardcoded OpenAI, Anthropic, GitHub, AWS, and Slack tokens, and blocks returning raw |
MCP-SEC-004 | HIGH | CWE-306 | Unauthenticated Remote Transport: Flags SSE / HTTP endpoints bound to |
MCP-SEC-005 | HIGH | CWE-1384 | Tool Poisoning: Detects prompt injection directives and zero-width homoglyph obfuscation in tool docstrings. |
🚀 Quick Start & Installation
With Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-security-auditor": {
"command": "python3",
"args": ["/path/to/mcp-security-auditor/server.py"]
}
}
}With Docker
docker build -t mcp-security-auditor .
docker run -i --rm mcp-security-auditor📊 Empirical Benchmark (23 Public Servers)
We audited 23 prominent reference and community MCP servers:
Category | Repositories Tested | Average Trust Score | Grade | Notes |
Anthropic Reference Servers |
| 100/100 | A+ | Clean path containment, zero dynamic shell invocations. |
Reference SSE Server |
| 85/100 | A | Caught unauthenticated SSE transport in test handler. |
Community Servers |
| 25/100 | F | Caught ZipSlip in telemetry extraction and unconstrained |
📄 License
MIT License. Maintained by Neon Innovation Lab.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSecurity scanner for MCP servers and AI-generated code. Detects leaked API keys, PII, prompt injection, and MCP misconfigs with A-F security grades.MIT
- AlicenseNot gradedqualityCmaintenanceSecurity auditor for MCP servers that enumerates tools, resources, and prompts, scans for injection patterns, classifies risk levels, and produces a scored report (0-100, grades A-F).2MIT
- AlicenseAqualityAmaintenanceSecurity scanning for MCP servers from the inside out. Provides runtime inspection, AST-based static analysis, config audit, dependency analysis, and OWASP MCP Top 10 compliance in a single MCP server.551505MIT
- AlicenseNot gradedqualityCmaintenanceAudits MCP server configurations and packages for security risks such as typosquats, credential exposure, and malicious code, with zero dependencies and no execution.2MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/neoninnovationlab/mcp-security-auditor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server