mcpscan MCP server
Commit Oct 23, 2026Performs security scans and production-readiness audits for Model Context Protocol servers to identify vulnerabilities and compliance issues.
Also known as Davidleeops/mcpscan
- Stars
- 0
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- —
- Last commit
- Oct 23, 2026
- License
- MIT
What is mcpscan MCP?
mcpscan performs security scans and production-readiness audits for Model Context Protocol servers to identify vulnerabilities and compliance issues.
Summary generated from the project's README
About mcpscan MCP server
Securing Model Context Protocol servers against vulnerabilities is the primary function of mcpscan. This CLI security scanner helps developers identify authentication weaknesses, injection risks, and sensitive data exposure within their MCP implementations. It provides an A-F grade alongside actionable remediation notes to help prepare servers for production environments.
Users can run scans against a Claude Desktop style configuration file, a local server command, or a remote HTTPS/SSE endpoint. The tool checks for specific issues such as command injection, SQL injection, path traversal, and SSRF risks. It also evaluates tool descriptions for prompt-injection language and checks for excessive permissions or shadow-tool impersonation.
Developers can integrate these checks into CI/CD pipelines using GitHub Actions to enforce a minimum grade, such as a B, before deployment. The scanner supports multiple output formats including JSON, HTML, Markdown, and SARIF for easy reporting and integration with existing security workflows.
What you can do with it
- 1Audit local MCP configurationsScan a Claude Desktop configuration file to check for security flaws.
- 2Verify remote server securityPerform a security probe on a remote SSE endpoint to validate its readiness.
- 3Automate security in CI/CDSet a minimum grade requirement in a GitHub Action to prevent insecure code from being merged.
- 4Generate compliance reportsCreate an HTML report containing scan findings and remediation steps for stakeholders.
Written from the project's README. Every use case is checked against a quote from it.
README
View on GitHubMCPScan
Scan your MCP servers in 30 seconds and collect production-readiness evidence.
MCPScan is a free CLI security scanner and audit-readiness toolkit for Model Context Protocol servers. Point it at a Claude Desktop style MCP config, a local server command, or a remote HTTPS/SSE endpoint and get an A-F grade with actionable findings, remediation notes, and CI-friendly evidence.
Launch / First Revenue
The first-revenue motion is a fixed-scope MCP readiness audit, supported by the CLI, public sample report, intake pages, and local launch consoles.
Start here from the repo:
npm run launch:next
That command opens the current founder action stack, GitHub billing, GitHub Actions, Spaceship domain search, and Stripe Payment Links. It prints live launch status and shows the next action ladder. It does not buy, publish, send, apply links, or create customer files.
Key surfaces:
- Founder approval packet
- Launch cockpit
- Final founder click path
- GitHub issue action board
- Public landing page
- Sample report
- Secure intake guidance
Current launch verification:
npm run launch:next
npm run launch:verify
Expected pre-approval warnings are GitHub Actions billing or account lock, checkout links, custom domain, and custom security email until the founder-only clicks are complete.
npx mcpscan scan ./claude_desktop_config.json
npx mcpscan scan --server "npx -y @modelcontextprotocol/server-filesystem /tmp"
npx mcpscan scan --url https://mcp.example.com/sse
npx mcpscan report ./scan-results.json --format html --output report.html
npx mcpscan scan ./mcp-config.json --format sarif --output mcpscan.sarif
What It Checks Today
This MVP ships the CLI first:
AUTH-001: no authentication hints detectedAUTH-002: bearer/API token validation cannot be confirmedAUTH-003: API key exposure in URL, command, or static configAUTH-004: static session or token reuse indicatorsINPUT-001: command-injection prone tool argumentsINPUT-002: SQL-injection prone tool argumentsINPUT-003: path-traversal prone file argumentsINPUT-004: URL-fetching tool SSRF riskINPUT-005: weak argument-shape constraintsOUTPUT-001: secret and sensitive data patternsOUTPUT-002: excessive data exposureOUTPUT-003: error disclosure and stack-trace indicatorsTRANSPORT-001: TLS probe for remote HTTPS targetsTRANSPORT-002: stdio process-isolation heuristicsTRANSPORT-003: SSE/WebSocket origin validation heuristicsTOOL-001: tool description prompt-injection languageTOOL-002: excessive permission languageTOOL-003: shadow-tool impersonation languageTOOL-004: tool-name collision detectionCONFIG-001: overly permissive CORS for URL targetsCONFIG-002: debug-mode indicatorsCONFIG-003: default or example credentials
Each finding includes evidence, remediation, and MCP security references.
CLI
mcpscan scan <config-or-server>
--checks auth,input,output
--severity critical,high
--format json|table|html|markdown|sarif
--output ./report.json
--ci
--min-grade B
--timeout 30
--verbose
--no-color
CI
name: MCP Security Scan
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Davidleeops/mcpscan@main
with:
target: ./mcp-config.json
min-grade: B
See docs/GITHUB_ACTION.md for SARIF/code-scanning upload examples.
Landing Page
A minimal static commercial landing page is available in landing/. See
landing/README.md for local preview and deployment options, and
docs/LANDING_PAGE.md for the pre-publish checklist.
Why Now
MCP adoption is accelerating, but many servers expose powerful tools through weak auth, broad filesystem/network access, and unsafe prompt-facing tool metadata. MCPScan is built to become the independent, developer-friendly path from local MCP scans to production-readiness audits, OWASP MCP Top 10 coverage, NSA advisory alignment, and buyer-facing governance evidence.
Comparison
| Tool | A-F grade | Free local CLI | Dashboard-ready reports | CI threshold |
|---|---|---|---|---|
| MCPScan | Yes | Yes | JSON/HTML/Markdown/SARIF now, SaaS later | Yes |
| Snyk Agent Scan | Enterprise-focused | Limited | Yes | Yes |
| Cisco mcp-scanner | No | Yes | No | Basic |
| Promptfoo | Eval-focused | Yes | Eval reports | Partial |
Development
npm install
npm run build
npm test
node packages/cli/dist/index.js scan packages/cli/test/fixtures/vulnerable-config.json
The CLI does not send scan results anywhere. The future dashboard should only receive reports through an explicit upload/API action.
Use MCPScan only on systems, configurations, repositories, and MCP endpoints you own or are authorized to review.
mcpscan MCP questions
What can MCPScan scan?
It can scan Claude Desktop style MCP configurations, local server commands, or remote HTTPS/SSE endpoints.
Does the CLI send my scan results to a remote server?
No, the CLI operates locally and does not transmit scan results externally.
Can I use MCPScan in my CI/CD pipeline?
Yes, it supports CI-friendly evidence and can be integrated into GitHub Actions using SARIF format.