redteam-mcp

redteam-mcp

A penetration testing MCP server that runs 20 hacking tools inside a Kali Linux Docker container, enabling AI assistants to execute security scans and attacks via natural language.

Category
访问服务器

README

🔴 Red Team MCP Server

A powerful penetration testing MCP server that runs 20 real hacking tools inside a Kali Linux Docker container and connects them directly to AI assistants like Cursor, Claude, or any MCP-compatible IDE.

Instead of typing commands manually, you just ask in plain English:

"Scan ports on 192.168.1.1" "Find subdomains of example.com" "Check if this site has SQL injection"

The AI calls the right tool, runs it in Kali Linux, and gives you the results.


🛠️ Tools Included (20 total)

Tool Purpose
nmap Port & service scanning
gobuster Directory brute-forcing
ffuf Web fuzzing
sqlmap SQL injection
nikto Web vulnerability scanning
nuclei Template-based vuln scanning
whatweb Technology fingerprinting
subfinder Subdomain enumeration
httpx HTTP probing
wpscan WordPress scanning
amass Attack surface mapping
hydra Password brute-forcing
curl Raw HTTP requests
dnsrecon DNS enumeration
theHarvester OSINT harvesting
wafw00f WAF detection
sslscan SSL/TLS auditing
commix Command injection
arjun Hidden parameter discovery
metasploit Auxiliary module runner

✅ Requirements

Before you start, make sure you have these installed:

  • Git — https://git-scm.com/downloads
  • Docker Desktop — https://www.docker.com/products/docker-desktop (enable Linux containers)
  • Python 3.11 — https://www.python.org/downloads/release/python-3110 (only needed locally if you want to edit the server; the container handles everything else)
  • Any MCP-compatible IDE: Cursor, VS Code + Kiro, Claude Desktop, etc.

Python version note: The project is written for Python 3.11+. The Docker container uses Kali's built-in Python 3 (3.12). Both work fine.


🚀 Installation — Step by Step

Step 1 — Clone the repo

git clone https://github.com/YOUR_USERNAME/redteam-mcp.git
cd redteam-mcp

Step 2 — Build the Docker image

This downloads Kali Linux and installs all 20 tools. Takes 10–20 minutes the first time.

docker build -t redteam-mcp:latest .

You only ever need to run this once (or when you update the project).


Step 3 — Start the container

Windows (PowerShell):

.\run.ps1

Mac / Linux:

bash run.sh

Verify it's running:

docker ps

You should see redteam-mcp with status Up.


Step 4 — Connect your IDE

Open your MCP config file in your IDE and paste this:

{
  "mcpServers": {
    "redteam-kali": {
      "command": "docker",
      "args": [
        "exec", "-i", "redteam-mcp",
        "/app/.venv/bin/python", "/app/src/server.py"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Where to paste it:

IDE Config file location
Cursor ~/.cursor/mcp.json (global) or .cursor/mcp.json (project)
VS Code + Kiro Already at .kiro/settings/mcp.json in this project
Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

After pasting, reload your IDE window (Ctrl+Shift+PReload Window).


Step 5 — Start asking questions

You're ready. Just type in natural language:

Scan ports on scanme.nmap.org
Find subdomains of tesla.com
Check if http://testphp.vulnweb.com has SQL injection
Detect the WAF on cloudflare.com
Run a nikto scan on http://testphp.vulnweb.com

📋 Daily Usage Guide

Start the project

.\run.ps1

Then reload your IDE window.

Stop when done

docker stop redteam-mcp

Restart the container

docker restart redteam-mcp

Full reset (if something breaks)

docker rm -f redteam-mcp
.\run.ps1

Rebuild the image (only after editing Dockerfile or server.py)

docker rm -f redteam-mcp
docker build -t redteam-mcp:latest .
.\run.ps1

Check container logs

docker logs redteam-mcp

Open a shell inside the container

docker exec -it redteam-mcp /bin/bash

⚠️ Legal Notice

Only use these tools against systems you own or have explicit written permission to test. Unauthorized scanning is illegal. The legal test target used in examples is scanme.nmap.org (provided by the nmap project for this purpose).


📁 Project Structure

redteam-mcp/
├── src/
│   └── server.py        # MCP server with all 20 tools
├── Dockerfile           # Kali Linux multi-stage build
├── requirements.txt     # Python deps (mcp only)
├── run.ps1              # Start container (Windows)
├── run.sh               # Start container (Mac/Linux)
└── .kiro/
    └── settings/
        └── mcp.json     # IDE MCP config

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选