mcp-server-security-scanner

v1.1.4
io.github.vpatser1/mcp-server-security-scanner Checked 22 hours ago Published 4 months ago

Scan MCP configs for 30+ CVEs, prompt injection, tool poisoning; validate OAuth configs

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_config Scan MCP Configuration

Scans an MCP configuration file (claude_desktop_config.json, .mcp.json, etc.) for security vulnerabilities including hardcoded secrets, excessive permissions, insecure transports, missing authentication, and known vulnerable server versions.

ParameterTypeDescription
configPath *stringAbsolute or relative path to the MCP configuration file to scan (e.g. ~/.claude/claude_desktop_config.json)

scan_tool_definitions Scan Tool Definitions

Analyzes MCP tool definitions for security vulnerabilities including prompt injection vectors, tool poisoning patterns, overly broad filesystem access, command injection risks, and data exfiltration patterns.

ParameterTypeDescription
tools *arrayArray of tool definition objects to scan

check_cves Check Known CVEs

Checks a list of MCP server names and optional versions against a database of known CVEs in the MCP ecosystem (covering path traversal, SSRF, auth bypass, prompt injection, data exfiltration, command injection, and SQL injection). Returns matching CVEs with severity, CVSS scores, and remediation steps.

ParameterTypeDescription
servers *arrayList of MCP servers to check for known CVEs
listAllbooleanIf true, returns the full CVE database instead of checking specific servers

validate_auth Validate Authentication Configuration

Validates OAuth 2.1, API key, or bearer token authentication configuration for an MCP server. Checks for proper PKCE usage, token storage security, redirect URI validation, token expiration settings, and overall auth best practices.

ParameterTypeDescription
authConfig *objectAuthentication configuration object to validate. OAuth fields can be nested under 'oauth' or provided at the top level in camelCase or snake_case.

generate_report Generate Security Report

Generates a comprehensive security report from scan results. Includes an executive summary with overall risk score (0-100), detailed findings with remediation steps, and a SOC 2 compliance checklist. Output is Markdown-formatted.

ParameterTypeDescription
authValidationobjectResults from validate_auth
configScanobjectResults from scan_config
cveCheckobjectResults from check_cves
findingsarrayDirect array of findings to report on. Use this as a simple alternative to passing structured scan results. If provided alongside structured results, these findings are merged in.
toolScanobjectResults from scan_tool_definitions