WPScan MCP is a bridge that connects WPScan, a powerful WordPress vulnerability scanner, with the Model Context Protocol (MCP) ecosystem.
WPScan MCP enables seamless integration of WPScan’s advanced WordPress vulnerability scanning features into MCP-compatible applications and AI-powered security workflows. This allows for automated, standardized reconnaissance and enumeration of WordPress websites, ideal for penetration testing pipelines and AI security assistants.
- Node.js (v16+)
- MCP SDK
- WPScan installed and executable from the command line
-
Clone this repository:
git clone https://github.com/cyproxio/mcp-for-security cd wpscan-mcp -
Install dependencies:
npm install -
Build the project:
npm install && npm run build
To configure the Smuggler MCP server in your MCP client setup:
{
"wpscan": {
"command": "node",
"args": [
"/path/to/wpscan-mcp/build/index.js",
"/usr/bin/wpscan"
]
}
}const result = await mcp.tools.invoke("do-wpscan", {
url: "https://example.com",
enumerate: ["vp", "vt", "tt", "cb", "dbe"]
});const result = await mcp.tools.invoke("do-wpscan", {
url: "https://example.com",
detection_mode: "passive",
proxy: "http://127.0.0.1:8080",
random_user_agent: true
});url(required): The target WordPress site to scandetection_mode: "mixed" (default), "passive", or "aggressive"random_user_agent: Whether to rotate user agents to avoid detectionmax_threads: Number of threads to speed up scanning (default: 5)disable_tls_checks: Disable TLS certificate validationproxy: Proxy to route traffic through (e.g., http://127.0.0.1:8080)cookies: Cookie string to use (e.g., PHPSESSID=1234; logged_in=true)force: Force scanning even if WP is not detectedenumerate: Array of enumeration types:vp: Vulnerable pluginsap: All pluginsp: Popular pluginsvt: Vulnerable themesat: All themest: Popular themestt: Timthumb vulnerabilitiescb: Configuration backupsdbe: Database exports
WPScan MCP works seamlessly with AI assistants that support the Model Context Protocol. This allows natural language commands to trigger WPScan in real-time.
User: Scan https://example.com for WordPress vulnerabilities.
AI: Running WPScan against https://example.com using passive detection...
[WPScan MCP runs and returns findings]
Results: 3 vulnerable plugins found, 1 outdated theme, timthumb vulnerability detected.
- Only scan sites you own or have explicit permission to test
- Aggressive scanning can trigger security alerts on target websites
- Passive mode is recommended for stealthy enumeration
- Always review output manually before making security decisions
- Ensure WPScan is installed and executable from CLI
- Validate proxy and TLS settings are correct
- Make sure the URL is accessible and valid
- Use verbose output or server logs for error tracking