MCP.so
登录

Metasploit MCP Server

@GH05TCREW

基本信息

分类

其他

许可证

Apache-2.0

传输方式

stdio

作者

GH05TCREW

关于 Metasploit MCP Server

MCP Server for Metasploit

Metasploit MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "MetasploitMCP": {
      "command": "python",
      "args": [
        "MetasploitMCP.py",
        "--transport",
        "http"
      ]
    }
  }
}

Metasploit MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Metasploit MCP Server?

A Model Context Protocol (MCP) server that bridges large language models like Claude with the Metasploit Framework penetration testing platform. It provides standardized tools for dynamically accessing and controlling Metasploit functionality through natural language, enabling automated security testing workflows.

How to use Metasploit MCP Server?

Install dependencies with pip install -r requirements.txt, start the Metasploit RPC service (msfrpcd), then run MetasploitMCP.py. The server supports two transports: HTTP/SSE (default) for most MCP clients, or STDIO for Claude Desktop integration. Configure environment variables for MSF_PASSWORD and optionally MSF_SERVER, MSF_PORT, MSF_SSL, and PAYLOAD_SAVE_DIR.

Key features of Metasploit MCP Server

  • Search and list exploit, payload, and auxiliary modules
  • Execute exploits, auxiliary, and post-exploitation modules
  • Generate payload files and save them locally
  • List, manage, and terminate active sessions
  • Start, list, and stop listeners and background jobs

Use cases of Metasploit MCP Server

  • Conduct automated penetration testing with AI-driven exploit selection and execution
  • Quickly search for relevant Metasploit modules during security assessments
  • Perform post-exploitation enumeration (e.g., logged-on users, system info)
  • Generate and deliver custom payloads for reverse connections
  • Manage reverse handlers and active sessions through a conversational interface

常见问题

1

What are the prerequisites to run Metasploit MCP Server?

You need Metasploit Framework installed with `msfrpcd` running, Python 3.10 or higher, and the required Python packages from `requirements.txt`.

2

How do I configure authentication?

Set the `MSF_PASSWORD` environment variable to match the password used when starting `msfrpcd` with the `-P` flag.

3

What transport options are available?

The server supports HTTP/SSE (Server-Sent Events) for most MCP clients and STDIO for Claude Desktop integration. Use the `--transport` flag to select.

4

Where are generated payloads saved?

By default, payloads are saved to a `payloads` directory in the user's home folder (`~/payloads`). This can be overridden with the `PAYLOAD_SAVE_DIR` environment variable.

5

Is Metasploit MCP Server safe for production networks?

The README includes a strong security warning: this tool provides direct access to exploitation features and should only be used in environments where explicit permission for security testing has been granted.

评论

其他 分类下的更多 MCP 服务器