MCP Red Team Server
A Model Context Protocol server for orchestrating red team security assessments, enabling LLMs to manage agents, targets, operations, and findings aligned with MITRE ATT&CK framework.
README
MCP Red Team Server
A Model Context Protocol (MCP) server for orchestrating red team security assessments. This server enables LLMs to manage security operations, agents, targets, and findings through structured tool calls aligned with the MITRE ATT&CK framework.
Features
- 45 MCP Tools organized by MITRE ATT&CK workflow stages
- Multi-LLM Support - Works with Claude, GPT-4, Gemini, and any MCP-compatible model
- Security Integrations - VirusTotal, AlienVault OTX, and HackerOne APIs
- Operation Management - Track assessments from planning through reporting
- Finding Documentation - Record vulnerabilities with severity, evidence, and CVSS scores
Quick Start
Prerequisites
- Node.js 18+
- npm or yarn
Installation
# Clone the repository
git clone https://github.com/yourusername/mcp-redteam-server.git
cd mcp-redteam-server
# Install dependencies
npm install
# Start the server
npm run dev
MCP Client Configuration
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"redteam": {
"command": "npm",
"args": ["run", "start"],
"cwd": "/path/to/mcp-redteam-server"
}
}
}
Tools by Workflow Stage
Planning (7 tools)
Setup agents, operations, and targets before engagement.
| Tool | Description |
|---|---|
create_agent |
Create a new agent with type and capabilities |
list_agents |
List all agents, optionally filtered by status |
get_agent |
Get detailed info about a specific agent |
update_agent |
Update agent properties |
create_operation |
Create a new operation targeting a system |
create_target |
Define a target (web app, network, host, API, database, cloud) |
hackerone_create_asset |
Create asset in HackerOne organization |
Reconnaissance (16 tools)
Gather intelligence on targets using built-in tools and external APIs.
| Tool | Description |
|---|---|
list_operations |
List operations with status/phase filters |
get_operation |
Get operation details including findings |
list_targets |
List all targets with optional type filter |
get_target |
Get target details including vulnerabilities |
update_target |
Update target information |
virustotal_scan_hash |
Look up file hash on VirusTotal |
virustotal_scan_url |
Scan URL for malicious content |
virustotal_scan_ip |
Get VirusTotal IP address report |
virustotal_scan_domain |
Get VirusTotal domain report |
otx_get_indicator |
Get AlienVault OTX threat intelligence |
otx_get_pulses |
Get OTX threat feeds/pulses |
hackerone_get_program |
Get HackerOne program details and scope |
hackerone_get_programs |
List all accessible HackerOne programs |
hackerone_list_assets |
List assets in a HackerOne organization |
hackerone_get_activities |
Get activity feed for a program |
Exploitation (4 tools)
Execute attacks, activate agents, and record vulnerabilities.
| Tool | Description |
|---|---|
activate_agent |
Set agent status to active for deployment |
start_operation |
Begin execution of an operation |
update_operation |
Update operation phase or details |
add_vulnerability |
Record a vulnerability on a target |
Post-Exploitation (3 tools)
Document findings during active exploitation.
| Tool | Description |
|---|---|
add_finding |
Record a security finding with severity, evidence, and mitigation |
hackerone_create_report |
Create/import vulnerability report to HackerOne |
hackerone_update_severity |
Update severity of a HackerOne report |
Reporting (15 tools)
Generate reports, review findings, manage resources, and interact with HackerOne.
| Tool | Description |
|---|---|
list_findings |
List findings filtered by operation, agent, or severity |
get_finding |
Get detailed finding information |
generate_report |
Generate comprehensive operation report |
get_statistics |
Get overall metrics across all operations |
complete_operation |
Mark operation as completed |
delete_operation |
Remove an operation |
delete_target |
Remove a target |
delete_agent |
Remove an agent |
hackerone_list_reports |
List HackerOne vulnerability reports with filters |
hackerone_get_report |
Get HackerOne report details |
hackerone_update_report_state |
Change report state (triage, resolve, close) |
hackerone_add_comment |
Add comment to a report |
hackerone_award_bounty |
Award bounty on a report |
hackerone_get_balance |
Get program bounty balance |
hackerone_get_analytics |
Get program analytics data |
Security Integrations
VirusTotal
Scan files, URLs, IPs, and domains for malware and reputation data.
# Set your API key
export VIRUSTOTAL_API_KEY="your-api-key"
Get your key: VirusTotal API
AlienVault OTX
Access Open Threat Exchange for threat intelligence and IOC lookups.
# Set your API key
export OTX_API_KEY="your-api-key"
Get your key: AlienVault OTX
HackerOne
Manage bug bounty reports and vulnerability disclosures.
# Set your API key (format: username:token)
export HACKERONE_API_KEY="your-username:your-token"
Get your credentials: HackerOne Settings → API Tokens
Enums and Types
Agent Types
reconnaissance | exploitation | post_exploitation |
persistence | lateral_movement | command_control
Operation Phases (MITRE ATT&CK)
planning | reconnaissance | initial_access | execution |
persistence | privilege_escalation | defense_evasion |
credential_access | discovery | lateral_movement |
collection | exfiltration | impact
Target Types
web_application | network | host | api | database | cloud_infrastructure
Finding Types
vulnerability | misconfiguration | weak_credential |
exposed_data | privilege_escalation | lateral_movement
Severity Levels
critical | high | medium | low | info
Project Structure
src/
├── index.ts # Server entry point
├── config/
│ └── index.ts # Configuration
├── store/
│ └── index.ts # In-memory data store
├── tools/
│ ├── index.ts # Tool registration with workflow stages
│ ├── agent-tools.ts # Agent CRUD tools
│ ├── operation-tools.ts # Operation lifecycle tools
│ ├── target-tools.ts # Target management tools
│ ├── analysis-tools.ts # Findings and reporting tools
│ └── integration-tools.ts # External API integrations
├── resources/
│ └── index.ts # MCP resource registration
├── types/
│ └── index.ts # TypeScript interfaces
└── utils/
└── logger.ts # Winston logging
Environment Variables
| Variable | Default | Description |
|---|---|---|
PORT |
3000 | Server port |
NODE_ENV |
development | Environment |
MCP_SERVER_NAME |
redteam-mcp-server | Server name |
MCP_VERSION |
1.0.0 | Server version |
LOG_LEVEL |
info | Logging level |
VIRUSTOTAL_API_KEY |
- | VirusTotal API key |
OTX_API_KEY |
- | AlienVault OTX API key |
HACKERONE_API_KEY |
- | HackerOne API key (username:token) |
Development
# Run in development mode with hot reload
npm run dev
# Build for production
npm run build
# Run production build
npm run start
# Lint code
npm run lint
LLM Compatibility
This server implements the Model Context Protocol standard and works with:
- Claude (Anthropic) - Native MCP support
- GPT-4/GPT-4o (OpenAI) - Via MCP adapters
- Gemini (Google) - Via MCP adapters
- Open-source models - Any model with MCP/function calling support
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT License - see LICENSE for details.
Acknowledgments
- Model Context Protocol by Anthropic
- MITRE ATT&CK Framework
- Security research community
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。