vuln-scan-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
vuln-scan-mcp
Engine-neutral, multi-agent source vulnerability scanning over the Model Context Protocol (MCP).
中文说明 · API reference · Architecture · Security · License
vuln-scan-mcp lets an MCP-compatible agent submit a trusted local Git repository for asynchronous static analysis. The service coordinates multiple analysis roles, validates reported source locations, and returns structured findings with evidence, dataflow, coverage limitations, and remediation guidance.
Status: alpha / local MVP. The server is intended for trusted repositories and protocol integration testing. It is not a sandboxed, multi-tenant, or remotely exposed security service.
Highlights
Standard MCP interface: six asynchronous tools plus artifact resources.
Multi-agent workflow: two parallel scouting roles and one trace-linking role, with an optional repair role for invalid source locations.
Replaceable execution engines: Kimi CLI and Aster headless adapters behind one request/result contract.
Structured results: stable finding IDs, fingerprints, severity, confidence, CWE, source/sink evidence, dataflow, and coverage limitations.
Deterministic checks: repository revision, relative paths, line numbers, code snippets, and Git worktree state.
Operable scans: idempotent creation, incremental events, long-wait status, cancellation, concurrency limits, and persistent artifacts.
Harness roadmap: engine-neutral Offer/Need collaboration and a documented DeepSeek Harness compatibility design.
Related MCP server: pyresec
How it works
MCP host / agent / CI
│
▼
vuln_scan_start → scan_id
│
▼
ScanOrchestrator
├─ Entry-point scout ────────┐
├─ Critical-operation scout ─┼─ Evidence board → Trace linker
└─ Task state and events ────┘ │
▼
Deterministic source checks
│
Optional location repair
▼
Structured findings + artifactsThe two scouts run independently. The linker reads their evidence and actual source code to construct candidate dataflows. Source validation checks that reported locations exist and match the fixed revision; it does not prove exploitability.
Requirements
Linux
Python 3.10 or later
Git
At least one configured execution engine:
Kimi CLI, using its existing authentication and model configuration; or
Aster CLI, with
KIMI_API_KEYsupplied through the server environment and the appropriate Aster configuration.
Installation
From source with uv
git clone https://github.com/RezinChow/vuln-scan-mcp.git
cd vuln-scan-mcp
uv syncFrom source with pip
python -m venv .venv
. .venv/bin/activate
python -m pip install .Both installation methods provide the vuln-scan-mcp console command.
Start the server
Register each allowed repository explicitly. The workspace must be a clean Git worktree.
vuln-scan-mcp \
--workspace my-repo=/absolute/path/to/my-repo \
--state-root /absolute/path/to/vuln-scan-runs \
--max-concurrent-scans 2During development, use uv run vuln-scan-mcp with the same arguments.
The server uses local stdio. Logs go to stderr; stdout is reserved for MCP protocol messages.
Configure an MCP host
A Kimi CLI configuration template is provided at examples/mcp.kimi.json:
{
"mcpServers": {
"vuln-scan": {
"command": "vuln-scan-mcp",
"args": [
"--workspace", "my-repo=/absolute/path/to/my-repo",
"--state-root", "/absolute/path/to/vuln-scan-runs"
]
}
}
}Replace both absolute paths and merge this server entry into your host's MCP configuration. For a project-scoped Kimi CLI setup, copy the template to .kimi-code/mcp.json; that local configuration is intentionally excluded from Git.
For Aster, examples/aster-config.acl shows how to reference an API key through an environment variable. Never put credentials in the MCP request, JSON configuration, or repository files.
MCP tools
Tool | Purpose |
| Inspect available engines and server limits |
| Create an asynchronous scan and return |
| Read phase, progress, budget, and errors; supports up to 60 seconds of long waiting |
| Read persistent events incrementally with a sequence cursor |
| Retrieve structured findings and artifact references after a terminal state |
| Stop creating roles and terminate the current scan's engine processes |
Artifact resources use:
artifact://{scan_id}/{artifact_name}Supported artifacts are request.json, status.json, events.jsonl, evidence-board.json, and result.json.
See MCP_API.md for complete schemas, examples, error codes, and a Python client.
Example agent prompt
Use the vuln-scan MCP server to scan the my-repo workspace with the kimi_cli
engine and quick profile. Poll status with wait_seconds=60 until the scan
reaches a terminal state, then read its events and final result. Report the
findings, source evidence, coverage limitations, and artifact locations.Result semantics
succeededmeans the workflow completed; it does not mean the repository is secure.An empty
findingsarray does not prove the absence of vulnerabilities.Static findings are currently reported as
likely, even when their source locations pass validation.confidenceis an evidence-strength estimate, not a calibrated probability.files_analyzedisnullwhen a headless engine cannot provide reliable coverage data.Failed and cancelled scans retain their events and structured error information.
Results remain candidates for human review. No exploit is executed by this MVP.
Security boundary
The current version:
accepts only pre-registered local workspaces;
does not expose arbitrary shell execution through MCP;
uses fixed argument arrays rather than shell command strings;
checks that the target Git worktree remains unchanged;
keeps API keys out of scan request schemas.
However, engine agents still run with the current user's permissions. Read-only prompts and Git diff verification are not an OS security boundary. Do not scan untrusted repositories or expose this MVP as a remote multi-user service without adding isolation, authentication, authorization, and resource controls. See SECURITY.md.
DeepSeek Harness compatibility
The public MCP contract is designed to remain independent of the agent harness. DeepSeek Harness can be evaluated first as an external MCP caller, and later as an internal collaboration runtime.
The design maps Offer/Need collaboration to Team Tasks, explicit message wakeup, dependency DAGs, compare-and-swap updates, claim leases, and read-before-retry persistence handling. The DeepSeek Harness adapter is not implemented yet. See DS_HARNESS_COMPATIBILITY.md.
Documentation
Raw vulnerability corpora, local experiment logs, model output, credentials, and scan state are intentionally excluded from the public repository.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
IaC, CI and dependency security review for coding agents: local scan CLI plus hosted OAuth MCP.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Scan a GitHub repository for vulnerabilities, with proof for every finding, from your coding agent.
Live GitHub repo AST X-Ray, 42 coding-agent DoD gates, Git worktree guards & brownfield baselines.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables scanning of AI agent code for security vulnerabilities such as prompt injection, tool abuse, and data exfiltration, directly from MCP-compatible clients like Claude Code.92 PyPI3LGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible agents to submit source code for automated SAST/SCA security audits paid via x402 USDC micropayments on Base, returning structured vulnerability findings, CWE IDs, and optional remediated code patches.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to submit code files for analysis and receive rule-based findings with severities, line numbers, and SARIF fingerprints, covering security, complexity, and dependency/configuration drift.136 PyPI7MIT

tendboat-mcpofficial
AlicenseAqualityBmaintenanceEnables a host agent to index repositories, submit structured IR and security judgments, run deterministic cross-language taint analysis, record triage decisions, and produce SARIF findings over MCP.12Apache 2.0