Nessus MCP Server
This server lets AI assistants interact with Tenable Nessus to manage vulnerability scans and analyze findings via MCP.
List scan templates to see available Nessus scan types
Start vulnerability scans against IPs or hostnames using basic network, web app, or compliance scan types
Check scan status for running scans
Get scan results from completed scans
List all scans and their statuses
Get detailed vulnerability information by CVE (mock mode) or Nessus plugin ID (real mode)
Search vulnerabilities by keyword, optionally scoped to a specific scan in real mode
Runs in mock mode without credentials or real mode using Nessus API keys
Supports self-signed Nessus certificates with an explicit opt-in flag
Required runtime environment to execute the MCP server, supporting the server's execution for vulnerability scanning functionality.
Development language used for building the MCP server, providing type safety for the Nessus vulnerability scanning integration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nessus MCP Server start a vulnerability scan on 192.168.1.0/24"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nessus MCP Server
A Model Context Protocol (MCP) server for interacting with the Tenable Nessus vulnerability scanner. This server allows AI assistants to perform vulnerability scanning and analysis through the MCP protocol.
It talks to a real Nessus instance over its REST API using API-key authentication. If no NESSUS_URL/NESSUS_ACCESS_KEY/NESSUS_SECRET_KEY are set, it falls back to a self-contained mock mode for local development and testing.
Features
Vulnerability Scanning: Start and monitor vulnerability scans against specified targets
Scan Management: List, track, and retrieve results from vulnerability scans
Vulnerability Analysis: Search for and get detailed information about specific vulnerabilities
Mock Mode: Fully functional mock mode for testing without a Nessus API key
Related MCP server: mcp-nutanix
Tools
The server provides the following tools:
Tool Name | Description |
| List available Nessus scan templates |
| Start a new vulnerability scan against a target |
| Check the status of a running scan |
| Get the results of a completed scan |
| List all scans and their status |
| Get detailed information about a specific vulnerability |
| Search for vulnerabilities by keyword |
Installation
Prerequisites
Node.js 20 or higher
TypeScript (for development)
Building from Source
Clone the repository:
git clone https://github.com/Cyreslab-AI/nessus-mcp-server.git cd nessus-mcp-serverInstall dependencies:
npm installBuild the server:
npm run build
Usage
Running in Mock Mode
By default, the server runs in mock mode, which doesn't require a Nessus API key:
node build/index.jsRunning with a real Nessus instance
To connect to a real Nessus instance, set the following environment variables:
NESSUS_URL=https://your-nessus-instance:8834
NESSUS_ACCESS_KEY=your-access-key
NESSUS_SECRET_KEY=your-secret-keyThe server is switched into real mode as soon as all three of these are set; otherwise it runs in mock mode.
Then run the server:
node build/index.jsGenerating an API key pair
In the Nessus web UI: Settings > My Account > API Keys > Generate. Nessus shows the access key and secret key only once at generation time, so store them somewhere safe (e.g. a secrets manager or your MCP client's env config) - Nessus itself cannot show them to you again.
Requests authenticate with the X-ApiKeys: accessKey=<key>; secretKey=<key> HTTP header on every call. There is no separate login/session step, and no cookie or token to refresh.
Self-signed certificates
Nessus is very commonly deployed with a self-signed TLS certificate. By default this server verifies certificates strictly and will fail closed against a self-signed instance. To explicitly opt in to skipping certificate verification (e.g. for an internal instance you trust), set:
NESSUS_ALLOW_SELF_SIGNED=trueLeave this unset (or false) whenever the instance has a certificate issued by a trusted CA. The server logs a warning to stderr on startup whenever this is enabled.
Design notes on the real-mode mapping
A few of this server's tools have no exact 1:1 equivalent in the Nessus REST API, so the following judgment calls were made:
start_scan:scan_type(basic-network-scan/web-app-scan/compliance-scan) is a logical name, not a Nessus template UUID (those are instance-specific and returned byGET /editor/scan/templates). This server resolves the logical name to a template by matching known templatenamevalues first, falling back to a fuzzy match against the template name/title.start_scanthen creates the scan (POST /scans) and immediately launches it (POST /scans/{id}/launch), since the tool is named "start", not "create".get_scan_results: real scan results are aggregated per-plugin across the whole scan (fromGET /scans/{id}'svulnerabilitiessummary), not the fully-enriched, per-vulnerability records the mock data returns. Fetching full CVSS/description/remediation text for every plugin would mean one extra Nessus API call per finding, which does not scale for scans with many findings. Useget_vulnerability_detailswith a specificplugin_idfrom the results to drill into full detail for one finding.get_vulnerability_details: in mock mode this takes a CVE id. Against a real Nessus instance it must be a numeric Nessus plugin ID instead (e.g.156327), because the on-prem Nessus REST API has no endpoint that resolves an arbitrary CVE or keyword to a plugin - onlyGET /plugins/plugin/{id}(lookup by numeric plugin ID) exists. A CVE-shaped input in real mode returns a clear, documented error rather than silently failing.search_vulnerabilities: Nessus has no single "search all vulnerabilities" endpoint - findings only exist in the context of a scan's results. In real mode this tool accepts an optionalscan_idto scope the search to one scan; without it, the search covers the most recently updated completed scans (capped at 10, to bound the number of API calls on instances with many scans). This is a deliberate scoping decision, documented on the tool description itself.
Using with Claude for Desktop
To use this server with Claude for Desktop:
Edit your Claude for Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"nessus": {
"command": "node",
"args": ["/path/to/nessus-mcp-server/build/index.js"],
"env": {
"NESSUS_URL": "https://your-nessus-instance:8834",
"NESSUS_ACCESS_KEY": "your-access-key",
"NESSUS_SECRET_KEY": "your-secret-key",
"NESSUS_ALLOW_SELF_SIGNED": "false"
}
}
}
}For mock mode, you can omit the env section.
Example Interactions
Starting a Scan
start_scan:
target: 192.168.1.1
scan_type: basic-network-scanGetting Scan Results
get_scan_results:
scan_id: scan-1234567890Searching for Vulnerabilities
search_vulnerabilities:
keyword: log4jAgainst a real Nessus instance, optionally scope the search to one scan:
search_vulnerabilities:
keyword: log4j
scan_id: 42Development
Project Structure
src/index.ts: Main server entry pointsrc/nessus-api.ts: Nessus API client with mock fallbacksrc/mock-data.ts: Mock vulnerability data for testingsrc/tools/: Tool implementationssrc/utils/: Utility functions
Adding New Tools
Define the tool schema and handler in the appropriate file in
src/tools/Import and register the tool in
src/index.ts
Verification status
Real-mode requests are implemented directly against the documented Tenable Nessus REST API contract (endpoints, request bodies, and response shapes). They have been verified by:
A clean TypeScript build (
npm run build).Exercising every tool over stdio in real mode against an unreachable
NESSUS_URL(e.g.https://localhost:1), confirming the server starts, accepts requests, and returns a cleanisErrorresponse with a descriptive message (connection refused, TLS, timeout, etc.) instead of crashing or silently falling back to mock data.
They have not been verified against a live Nessus instance, since none was available in the environment this was built in. If you connect this to a real instance and something doesn't match (e.g. a template name your instance doesn't have, or a response field that differs by Nessus version), please open an issue.
License
MIT
Disclaimer
This server is not affiliated with or endorsed by Tenable. Nessus is a trademark of Tenable, Inc.
Available Tools
7 toolsget_scan_resultsC
Get the results of a completed scan
Inputs: scan_id (required).
get_scan_statusC
Check the status of a running scan
Inputs: scan_id (required).
get_vulnerability_detailsC
Get detailed information about a specific vulnerability
Inputs: vulnerability_id (required).
list_scansB
List all scans and their status
Inputs: no named parameters.
list_scan_templatesB
List available Nessus scan templates
Inputs: no named parameters.
search_vulnerabilitiesC
Search for vulnerabilities by keyword
Inputs: keyword (required).
start_scanC
Start a new vulnerability scan against a target
Inputs: scan_type (required), target (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Every tool has a clearly distinct purpose with no ambiguity. For example, get_scan_results retrieves completed scan data, while get_scan_status checks ongoing scan progress, and list_scans provides an overview of all scans. The separation between vulnerability-focused tools (get_vulnerability_details, search_vulnerabilities) and scan-focused tools is also well-defined.
All tools follow a consistent verb_noun pattern using snake_case throughout. The naming convention is perfectly uniform with clear action-object pairs like get_scan_results, list_scans, start_scan, and search_vulnerabilities. There are no deviations in style or structure across the tool set.
With 7 tools, the count is well-scoped for a Nessus vulnerability scanning server. Each tool earns its place by covering essential operations such as scan management (start, list, check status), result retrieval, and vulnerability lookup, without being overly sparse or bloated.
The tool surface provides strong coverage for core vulnerability scanning workflows, including scan initiation, monitoring, result access, and vulnerability details. A minor gap exists in the lack of tools for modifying or deleting scans, which might limit full lifecycle management, but agents can still perform key operations effectively.
Maintenance
Related MCP Connectors
MCP server for Support & Service Management
Related MCP Servers
- Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP Server for Nutanix Prism Central13MIT
- MIT
- MIT