trackmcp
Back to directory
allsmog

mcp-pentest

View on GitHub

An MCP server for pentesting. Contributors wanted!

24 stars PythonServers & Infrastructure Updated Oct 21, 2025

Documentation

mcp-pentest

Authorized penetration-testing MCP server for AI-assisted security operators.

It orchestrates common assessment tools, normalizes engagement context, and

keeps the human pentester in control of scope, methodology, and reporting.

mcp-pentest social preview
MseeP.ai Security Assessment Badge

At a glance

AreaWhat mcp-pentest provides
MCP surfaceLocal stdio server that exposes pentest tools to compatible AI clients
ToolingNmap, Gobuster, and extensible integrations for authorized assessments
WorkflowReconnaissance, scanning, exploitation support, post-exploitation notes, and reporting
OutputNormalized scan events, engagement context, findings, and report-ready notes
SafetyBuilt for legal testing with explicit authorization and human operator control

Status

mcp-pentest is in alpha and under active development. Contributors are welcome

for new tool integrations, UI/UX, documentation, testing, and reporting

workflows. See CONTRIBUTING.md for how to get started.

๐Ÿ” Overview

The Model Context Provider (MCP) is an open-source framework that bridges AI with penetration testing tools. MCP interfaces with a wide array of pentesting tools, parses and enriches their output in real-time, and strictly follows the standard penetration testing process. It guides human pentesters through each phase โ€“ from reconnaissance and scanning to exploitation, post-exploitation, and reporting โ€“ aligning with established methodologies.

> โš ๏ธ Disclaimer: This tool is intended for legal security testing with proper authorization. Misuse of this software for unauthorized access to systems is illegal and unethical.

โœจ Key Features

  • Methodology Enforcement: Ensures each engagement progresses through proper phases (reconnaissance โ†’ scanning โ†’ exploitation โ†’ post-exploitation โ†’ reporting) in order.
  • Real-time Context Aggregation: Captures tool outputs, normalizes the data into a unified engagement context, and stores it for analysis.
  • LLM-Powered Insights: Leverages a large language model to interpret findings and provide guidance during the engagement.
  • Seamless Tool Integration: Acts as a middleware layer that hooks into major pentest tools, converting their results into a common event format.
  • Secure Data Handling: Enforces strict security on processed data, including sanitization when interacting with the LLM.
  • Reporting and Knowledge Retention: Logs all findings and actions in a structured format for report generation.

๐Ÿ—๏ธ Architecture

MCP is built on a microservices-based, event-driven system deployed in a containerized environment:

  • Core Context Processing Engine: Central brain that aggregates and normalizes data from all tools
  • AI-Powered Attack Path Analyzer: Identifies potential attack paths and prioritizes targets
  • Plugin-Based Integration Framework: Extensible system for interfacing with external tools
  • Secure Logging & Reporting Module: Maintains engagement logs and produces reports
  • Real-Time LLM Query Interface: Provides natural language interface for querying findings
  • Role-Based Access Control: Enforces security across all operations

๐Ÿงฐ Integrated Tools

MCP currently integrates with the following tools:

Network Scanning & Enumeration

  • Nmap: Network discovery and security auditing
  • Masscan: High-speed port scanner

Web Enumeration

  • Gobuster: Directory and file brute forcing
  • Nikto: Web server scanner for vulnerabilities

Exploitation & Post-Exploitation

Password Attacks

Privilege Escalation

  • LinPEAS: Linux Privilege Escalation enumeration script

๐Ÿš€ Getting Started

Prerequisites

  • Python 3.8+
  • Nmap (for network scanning)
  • Gobuster (for web enumeration)
  • Proper authorizations and scope definitions for penetration testing

Installation

1. Clone this repository:

bash
git clone https://github.com/allsmog/mcp-pentest.git
cd mcp-pentest

2. Install the MCP server:

bash
pip install -e .

3. Install required dependencies:

bash
pip install mcp

Testing with Claude Desktop

1. Add this MCP server to your Claude Desktop configuration. Edit your `claude_desktop_config.json`:

json
{
  "mcpServers": {
    "mcp-pentest": {
      "command": "python",
      "args": ["/path/to/mcp-pentest/server.py"],
      "env": {}
    }
  }
}

2. Restart Claude Desktop

3. You should now see the penetration testing tools available in Claude Desktop. Try commands like:

    Manual Testing

    You can also test the server directly:

    bash
    # Run the MCP server
    python server.py
    
    # The server will communicate via stdio using the MCP protocol

    See our documentation for complete API references and examples.

    ๐Ÿ“‹ Project Roadmap

    Here's what we're currently working on:

    • [ ] Completing core Context Engine implementation
    • [ ] Finishing initial tool integrations
    • [ ] Building the AI-powered attack path analyzer
    • [ ] Developing the web UI
    • [ ] Creating comprehensive test suite
    • [ ] Adding additional tool integrations
    • [ ] Implementing report generation

    We welcome contributions to any of these areas!

    ๐Ÿค Contributing

    Contributions are welcome and appreciated! Please see CONTRIBUTING.md for guidelines.

    How You Can Help

    We're particularly looking for help with:

    1. Tool Integrations: Adding support for more security tools

    2. Testing: Real-world testing and bug reporting

    3. Documentation: Improving and expanding guides

    4. UI Development: Building the web interface

    5. AI Components: Enhancing LLM integration and attack path analysis

    Adding New Tool Integrations

    We especially welcome contributions for new tool integrations. See our Tool Integration Guide for how to add support for additional tools.

    ๐Ÿ’ฌ Community

    • Issues: Use GitHub issues for bug reports and feature requests
    • Discussions: GitHub discussions for general questions and ideas

    ๐Ÿ“œ License

    This project is licensed under the MIT License - see the LICENSE file for details.

    ๐Ÿ” Security Considerations

    Given the nature of this tool, please be especially mindful of security:

    • Never commit credentials, API keys, or sensitive information
    • Always follow responsible disclosure practices
    • Ensure proper authorization before testing any systems

    ๐Ÿ“š Documentation

    ๐Ÿ™ Acknowledgments

    • Thanks to all the open-source penetration testing tools this project builds upon
    • Special recognition to the security researchers and tool developers who inspire this work

    Frequently asked questions

    What is mcp-pentest?

    mcp-pentest is An MCP server for pentesting. Contributors wanted!

    How do I install mcp-pentest?

    Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

    Is mcp-pentest open source?

    Yes โ€” it is hosted on GitHub at https://github.com/allsmog/mcp-pentest and has 24 stars.

    Related MCP tools

    Run your own MCP server? See who uses it and what to fix.

    Measure it with TrackMCP