Unofficial Metasploit MCP Server (not affiliated with or endorsed by Rapid7) - provides Metasploit Framework functionality via the Model Context
If you already use Metasploit, the metasploit mcp server is the piece that lets your assistant work with it directly. Unofficial Metasploit MCP Server (not affiliated with or endorsed by Rapid7) - provides Metasploit Framework functionality via the Model Context Protocol. A fork of GH05TCREW/MetasploitMCP.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
list_exploits — Search exploit modulesrun_exploit — Execute exploitsgenerate_payload — Create payloadsstart_listener — Start handlerslist_active_sessions — Show sessionssend_session_command — Execute commandsmetasploit-mcp on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Configuration is passed through the environment: MSF_PASSWORD, MSF_SERVER, MSF_PORT, PAYLOAD_SAVE_DIR, MSF_RPC_PROTOCOL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Metasploit's toolset — list_exploits, run_exploit, generate_payload and 3 more — is a fair guide to whether it matches your workflow. It is maintained by GH05TCREW; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| list_exploits | Search exploit modules |
| run_exploit | Execute exploits |
| generate_payload | Create payloads |
| start_listener | Start handlers |
| list_active_sessions | Show sessions |
| send_session_command | Execute commands |
{
"mcpServers": {
"metasploit": {
"command": "uvx",
"args": ["metasploit-mcp"],
"env": {
"MSF_PASSWORD": "your-value",
"MSF_SERVER": "your-value",
"MSF_PORT": "your-value",
"PAYLOAD_SAVE_DIR": "your-value",
"MSF_RPC_PROTOCOL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MSF_PASSWORD | Configuration value read at startup. | Optional |
| MSF_SERVER | Configuration value read at startup. | Optional |
| MSF_PORT | Configuration value read at startup. | Optional |
| PAYLOAD_SAVE_DIR | Filesystem location the server is allowed to use. | Optional |
| MSF_RPC_PROTOCOL | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.