渗透测试用Model Context提供者(MCP) logo

渗透测试用Model Context提供者(MCP)

Community
allsmog

MCP server for authorized pentest workflows: Nmap/Gobuster orchestration, context aggregation, AI-assisted triage, and reporting.

Publisherallsmog
Repositorymcp-pentest
LanguagePython
Forks
2
Stars
23
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    渗透测试用Model Context提供者(MCP) exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    23 stars and 2 forks from the linked repository.

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

License: MIT Python 3.8+ Docker Status: Alpha

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
  1. Install the MCP server:
bash
pip install -e .
  1. 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": {}
    }
  }
}
  1. Restart Claude Desktop

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

    • "Run an nmap scan on 127.0.0.1"
    • "Perform a gobuster directory scan on https://httpbin.org"
    • "Show me the latest scan events"

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

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "allsmog-mcp-pentest": {
      "command": "",
      "args": []
    }
  }
}

Use 渗透测试用Model Context提供者(MCP) MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once 渗透测试用Model Context提供者(MCP) is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add 渗透测试用Model Context提供者(MCP) as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the 渗透测试用Model Context提供者(MCP) MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "allsmog-mcp-pentest": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-pentest"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the 渗透测试用Model Context提供者(MCP) MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the 渗透测试用Model Context提供者(MCP) MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use 渗透测试用Model Context提供者(MCP) to help me with this task?
渗透测试用Model Context提供者(MCP)
Sure. I read it.
Here is what I found using 渗透测试用Model Context提供者(MCP).

Frequently asked questions

What is the 渗透测试用Model Context提供者(MCP) MCP server used for?

渗透测试用Model Context提供者(MCP) is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use 渗透测试用Model Context提供者(MCP) MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use 渗透测试用Model Context提供者(MCP) with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use 渗透测试用Model Context提供者(MCP) MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With 渗透测试用Model Context提供者(MCP) connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect 渗透测试用Model Context提供者(MCP) MCP to TypingMind?

渗透测试用Model Context提供者(MCP) runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does 渗透测试用Model Context提供者(MCP) MCP provide in TypingMind?

渗透测试用Model Context提供者(MCP) exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use 渗透测试用Model Context提供者(MCP) MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If 渗透测试用Model Context提供者(MCP) requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇