
Mcp Pymetasploit3
io.github.daedalusPublished by GitHub account daedalusv0.1.1Updated Oct 24, 2026
MCP server for Metasploit Framework via pymetasploit3
Overview
A local MCP server that exposes Metasploit Framework over msfrpc, letting an assistant list, configure, run and manage modules, payloads, sessions and framework
- What you can do
- Connect to and disconnect from a Metasploit RPC server and check connection status and framework version, core state and global variables, jobs and plugins. Search, list, load and inspect modules, set options and targets, check missing required options and execute modules. Generate payloads and list compatible targets and payloads. List, inspect, interact with, run commands in and stop sessions. Create, write to, read and destroy consoles and run modules with output. Query the database for workspaces, hosts, services, notes, credentials and vulnerabilities.
- When to use it
- For authorized security testing, lab or CTF work where an assistant should drive an existing Metasploit Framework instance through its RPC interface instead of typing msfconsole commands by hand. Not for general development or non-security tasks.
- Requirements
- Runs locally as a Python package installed with pip, on desktop only. Needs a running Metasploit Framework RPC server (msfrpcd or msgrpc in msfconsole) reachable at a host and port, plus the RPC password supplied to the connect tool. No environment variables or headers are declared.
Installation
In SourceWeft
- Open Mcp Pymetasploit3 in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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
MCP Server Configuration
Usage
Starting Metasploit RPC Server
Before using the MCP server, you need to start the Metasploit RPC server:
Using msfrpcd:
Using msfconsole:
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
Development
mcp-name: io.github.daedalus/mcp-pymetasploit3
Source: README.md at commit 295f8aa
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts