Nikto MCP Server
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., "@Nikto MCP Server Run a Nikto scan on example.com and return the findings in JSON."
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.
Nikto MCP Server
An MCP (Model Context Protocol) server that enables AI agents to interact with the Nikto web server scanner via SSH to a Kali Linux host.
Features
Web Server Vulnerability Scanning: Scan targets for 6700+ potentially dangerous files/programs
Configurable Test Categories: Tuning options for specific vulnerability types
IDS Evasion: Multiple techniques to bypass intrusion detection systems
Plugin System: Modular plugin architecture for extensible scanning
Multiple Output Formats: JSON, CSV, HTML, XML, and text output
SSH Execution: Runs Nikto on a remote Kali Linux host for isolation
Security: Input validation to prevent command injection
Related MCP server: kali-mcp
Prerequisites
Node.js 20.0.0 or higher
SSH access to a Kali Linux host with Nikto installed
SSH key-based authentication configured (BatchMode)
Installation
# Clone the repository
git clone https://github.com/schwarztim/sec-nikto-mcp.git
cd sec-nikto-mcp
# Install dependencies
npm install
# Build
npm run buildConfiguration
Environment Variables
Variable | Default | Description |
|
| SSH hostname for Kali Linux |
| (empty) | SSH username (optional if using SSH config) |
|
| Default scan timeout in milliseconds (5 min) |
Claude Desktop Configuration
Add to your Claude Desktop config:
{
"mcpServers": {
"nikto": {
"command": "node",
"args": ["/path/to/sec-nikto-mcp/dist/index.js"],
"env": {
"KALI_HOST": "your-kali-host",
"SSH_USER": "kali",
"NIKTO_TIMEOUT": "600000"
}
}
}
}Tools
nikto_scan
Start a web server vulnerability scan.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | URL, IP address, or hostname |
| string | No | TCP port(s) - single, range (80-90), or comma-separated |
| boolean | No | Force SSL/HTTPS testing |
| boolean | No | Disable SSL testing |
| string | No | Test categories (0-9, a-c, x for exclude) |
| string | No | Comma-separated plugin list |
| string | No | IDS evasion techniques (1-8) |
| number | No | Per-request timeout in seconds |
| number | No | Delay between tests (rate limiting) |
| string | No | Virtual host header |
| string | No | HTTP Basic auth (id:password) |
| string | No | Prepend path to all requests |
| string | No | CGI directories to scan |
| boolean | No | Use configured proxy |
| boolean | No | Disable DNS lookups |
| boolean | No | Disable 404 checking |
| boolean | No | Port discovery only |
| string | No | Mutation techniques (1-6) |
| string | No | Output format (csv, htm, txt, xml, json) |
| number | No | Overall scan timeout in seconds |
nikto_plugins
List all available Nikto plugins.
nikto_tuning
Get detailed reference for tuning options (test categories).
nikto_evasion
Get detailed reference for IDS evasion techniques.
nikto_update
Update Nikto plugins and databases from cirt.net.
nikto_version
Get Nikto version and database information.
nikto_check_db
Check scan databases for syntax errors.
Usage Examples
Basic Scan
Scan https://example.com with NiktoSSL Scan with Tuning
Run a Nikto scan on example.com port 443 with SSL, focusing on misconfiguration and information disclosure testsStealth Scan with IDS Evasion
Scan target.com using IDS evasion techniques 1, 2, and 4 with a 2-second pause between requestsComprehensive Audit
Perform a full Nikto scan on example.com ports 80 and 443 with SSL, output in JSON formatTuning Reference
Code | Category |
0 | File Upload |
1 | Interesting File / Seen in logs |
2 | Misconfiguration / Default File |
3 | Information Disclosure |
4 | Injection (XSS/Script/HTML) |
5 | Remote File Retrieval - Inside Web Root |
6 | Denial of Service |
7 | Remote File Retrieval - Server Wide |
8 | Command Execution / Remote Shell |
9 | SQL Injection |
a | Authentication Bypass |
b | Software Identification |
c | Remote Source Inclusion |
x | Reverse (exclude specified) |
Evasion Techniques
Code | Technique |
1 | Random URI encoding (non-UTF8) |
2 | Directory self-reference (/./) |
3 | Premature URL ending |
4 | Prepend long random string |
5 | Fake parameter |
6 | TAB as request spacer |
7 | Change the case of the URL |
8 | Use Windows directory separator (\) |
Security Considerations
This tool is intended for authorized security testing only
Always obtain proper authorization before scanning any systems
Input validation prevents command injection attacks
SSH keys should be properly secured with restricted permissions
Consider network isolation for scanning infrastructure
The server uses
BatchMode=yesfor non-interactive SSH execution
Related Projects
Nikto - The Nikto web server scanner
Model Context Protocol - MCP specification
MCP SDK - Official MCP SDK
Kali Linux - Penetration testing distribution
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Disclaimer
This tool is provided for educational and authorized security testing purposes only. Users are responsible for ensuring they have proper authorization before scanning any systems. The authors are not responsible for any misuse or damage caused by this tool.
Available Tools
7 toolsnikto_check_dbB
Check Nikto scan databases for syntax errors
Inputs: no named parameters.
nikto_evasionB
Get detailed reference for Nikto IDS evasion techniques
Inputs: no named parameters.
nikto_pluginsA
List all available Nikto plugins that can be used with nikto_scan
Inputs: no named parameters.
nikto_scanC
Start a Nikto web server vulnerability scan via SSH to Kali Linux.
Nikto performs comprehensive tests against web servers for multiple items, including:
Over 6700 potentially dangerous files/programs
Server version checks
Server configuration issues
Default files and programs
Insecure CGI scripts
Inputs: target (required), id, ssl, port, +16 more.
nikto_tuningB
Get detailed reference for Nikto tuning options (test categories)
Inputs: no named parameters.
nikto_updateB
Update Nikto plugins and databases from cirt.net
Inputs: no named parameters.
nikto_versionB
Get Nikto version and database information
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: one action tool (nikto_scan), three reference tools for different Nikto concepts (plugins, tuning, evasion), and three maintenance/info tools (update, version, check_db). The boundaries between reference tools are clear from their names and descriptions, and no two tools appear to do the same thing.
All tools use a consistent nikto_ snake_case prefix, which makes them easy to identify as a set. However, the suffix patterns mix verbs (scan, update, check_db) and nouns (plugins, tuning, evasion, version), so it is not a pure verb_noun convention throughout.
Seven tools is a well-scoped set for a Nikto wrapper: one primary scanning tool plus focused helpers for configuration references and maintenance. Every tool earns its place, and the count is neither bloated nor too thin.
The surface covers the core lifecycle: starting a scan, referencing plugins/tuning/evasion options, updating databases, checking database integrity, and retrieving version info. Minor gaps exist, such as no explicit tool to stop/cancel a running scan or retrieve past scan results separately, but agents can likely work around these.
Maintenance
Related MCP Connectors
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Exposes FEDLIN's public security scanners as agent-callable tools over Streamable HTTP.
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Security scanner for AI agents and MCP servers: injection, jailbreak, tool abuse.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to execute penetration testing commands and security tools on Kali Linux remotely. Supports automated reconnaissance, vulnerability scanning, and CTF solving through integration with 25+ offensive security tools like nmap, gobuster, and nuclei.16-
- AlicenseAqualityCmaintenanceEnables AI assistants to run Kali Linux security tools in an isolated Docker container for tasks like network scanning, port checking, and service enumeration.79 npm1MIT
- FlicenseNot gradedqualityDmaintenanceProvides Claude Desktop with access to Kali Linux penetration testing tools via a privileged Docker container, enabling network scanning (nmap), web vulnerability scanning (nikto), and custom command execution.11-
- AlicenseAqualityDmaintenanceEnables AI assistants to execute security testing tools on a Kali Linux machine over SSH, including reconnaissance, web app scanning, and static/dynamic analysis.11MIT