NightVision MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with the NightVision security platform, providing comprehensive capabilities for security testing, scanning, template management, and vulnerability analysis.
Features
- List NightVision targets with filtering options
- Get detailed information about specific targets
- Create new targets with customizable options
- Delete targets when they are no longer needed
- Find targets and manage their additional scan paths
- Start security scans against targets, optionally limited to specific checks
- Run a guided app security scan harness for local, private, staging, and internal apps
- Keep local/private scan CLI processes managed while returning scan IDs to the agent
- Track scan status and view results
- Export scan findings to SARIF or CSV, with safeguards against empty or misleading exports
- Generate a shareable PDF security report (executive summary plus developer findings) for one scan, a scan compared with the previous one, or a whole project
- View and filter vulnerabilities found in security scans
- Inspect individual findings with full HTTP request/response detail (secrets redacted)
- Diagnose setup and authentication readiness with
doctor and auth-status
- Manage target app authentication credentials with Playwright script, stable header, and stable cookie auth
- Discover API endpoints from source code (multiple languages)
- Manage projects and view project details
- Record, list, and download browser traffic for targets
- Upload and assign custom nuclei templates for targeted vulnerability scanning
- Integration with Claude and other MCP-compatible assistants
Prerequisites
- Node.js 22 or later
- NightVision CLI 0.26.0 or later, installed and on your
PATH
- Valid NightVision account and authentication
The server runs the nightvision CLI it finds on your PATH and depends on its
command and flag surface (for example openapi extract --file-format). It checks
for the CLI at startup and logs a warning if the version is older than the
supported minimum (0.26.0, which supports nightviz.ai API hosts and links).
CLI workflows are blocked on older releases, and doctor reports the upgrade
as a setup blocker; direct API tools remain available. Development builds whose
version cannot be determined are allowed, with a warning in doctor.
Upgrade the CLI the way you installed it.
Installation
-
Clone this repository:
git clone https://github.com/nvsecurity/nightvision-mcp.git
cd nightvision-mcp
-
Install dependencies:
npm install
-
Build the TypeScript code:
npm run build
Using with Claude for Desktop
-
Edit your Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
-
Add this MCP server configuration:
{
"mcpServers": {
"nightvision": {
"command": "node",
"args": ["/absolute/path/to/build/index.js"],
"env": {
"NIGHTVISION_CLI_PATH": "/absolute/path/to/nightvision"
}
}
}
}
NIGHTVISION_CLI_PATH is optional when the MCP client can already find nightvision on PATH. It is recommended for desktop clients launched outside a login shell, such as Claude for Desktop on macOS.
-
Restart Claude for Desktop.
Using as a plugin (Codex or Claude Code)
plugins/nightvision/ installs into either agent. It is one plugin directory
carrying two manifests, because Codex reads .codex-plugin/plugin.json and
Claude Code reads .claude-plugin/plugin.json; each ignores the other's. Both
get the same server, the same tools, and the same NightVision skills.
The two manifests declare the MCP server differently, and that is deliberate.
Codex resolves a relative cwd against the plugin's install directory, so
.mcp.json can say ./build/core/server.mjs with "cwd": ".". Claude Code
does not; a relative path there resolves against whatever project the user is
in, so the server fails to start. The Claude manifest therefore locates the
bundle with ${CLAUDE_PLUGIN_ROOT}, which Codex in turn does not interpolate.
npm run plugin:validate pins both forms, because this breaks only in a real
install and not in any unit test.
For Claude Code:
claude plugin marketplace add /path/to/nightvision-mcp
claude plugin install nightvision@nightvision
For Codex, see below.
Using with Codex
Codex installs this server as a plugin, which bundles the NightVision skills
alongside it. The plugin is packaged from this repository, so it is the
same server described above rather than a separate build.
- Add this repository as a plugin marketplace and install:
codex plugin marketplace add /path/to/nightvision-mcp
codex plugin install nightvision@nightvision