The Model Context Protocol (MCP) is an open standard that lets AI clients call external tools over a structured JSON-RPC interface. RunningDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Armur-Ai/Pentest-Swarm-AI/llms.txt
Use this file to discover all available pages before exploring further.
pentestswarm mcp serve exposes the full pentestswarm tool set — scans, recon, campaign status, finding explanation — to any MCP-compatible client over stdio. This means you can drive an autonomous penetration test directly from a conversation in Claude Desktop or Cursor, with the AI deciding which tools to invoke and in what order.
Start the MCP server
stdin / stdout. The server implements the MCP 2024-11-05 protocol version and exposes tools and resources capabilities. It stays alive until the client disconnects or the process receives a signal.
The server reads your API key from the same sources as the CLI — config.yaml first, then PENTESTSWARM_ORCHESTRATOR_API_KEY, then ANTHROPIC_API_KEY:
Claude Desktop configuration
Addpentestswarm to your Claude Desktop MCP server list. Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent path on your OS:
Cursor integration
Cursor uses the same MCP configuration format. Open Cursor Settings → Features → MCP and add a new server:Available MCP tools
The following tools are registered byRegisterDefaultTools in internal/mcp/tools.go:
| Tool name | Description | Required inputs |
|---|---|---|
scan_target | Start a full autonomous penetration test against a target. Returns findings summary when complete. | target (string), scope (string) |
quick_recon | Run reconnaissance only against a target, returning the discovered attack surface (subdomains, ports, services, technologies). | target (string) |
explain_finding | Explain a security vulnerability in plain English, tailored to the specified audience. | description (string) |
campaign_status | Get the current status of a running penetration test campaign. | campaign_id (string) |
list_tools | List all available security scanning tools and their status. | (none) |
Tool schemas
scan_target
scan_target
[EventType] AgentName: detail.quick_recon
quick_recon
DryRun: true (no exploitation). Returns only EventToolResult and EventFindingDiscovered events — the discovered attack surface without any active exploitation output.explain_finding
explain_finding
developer if audience is omitted.campaign_status
campaign_status
list_tools
list_tools
subfinder— passive subdomain discoveryhttpx— HTTP probing with technology detectionnuclei— template-based vulnerability scanningnaabu— fast port scanningkatana— web crawling and endpoint discoverydnsx— DNS resolution and reverse lookupsgau— fetch known URLs from Wayback Machine, Common Crawl
MCP server internals
The server speaks JSON-RPC 2.0 overstdin/stdout with newline-delimited messages. It handles four MCP methods:
| Method | What it does |
|---|---|
initialize | Returns protocol version 2024-11-05 and capability declarations |
tools/list | Returns all registered tool names, descriptions, and input schemas |
tools/call | Dispatches to the named tool’s handler function |
resources/list | Returns registered MCP resources |
resources/read | Returns the content of a resource by URI |
-32601 (Method not found) error. Parse errors return -32700. Tool errors are returned as isError: true content rather than JSON-RPC errors, following MCP convention.
The MCP server requires a valid API key to run scans — it reads from
config.yaml, then PENTESTSWARM_ORCHESTRATOR_API_KEY, then ANTHROPIC_API_KEY. Make sure at least one of these is set before starting the server. The list_tools and explain_finding tools work without a key; scan_target, quick_recon, and campaign_status require one.Bug Bounty
Use MCP to drive bug bounty scope imports and scan launches interactively.
Playbooks
Ask Claude to pick and run the right playbook for a given target via MCP.
GitHub Actions
Automate the same scans in CI without interactive oversight.
CTF Mode
Drive CTF solves conversationally with live event streaming via MCP.