How cybersecurityup/offensive-mcp-ai works
Project type and purpose
• This is an open‐source toolkit (MCP-based microservices) that exposes multiple “tool servers” to an LLM (Claude) via the Model Context Protocol.
• It consists of independent Python MCP servers (payload, recon, shellcode, Wazuh connectors) that Claude can invoke to perform red-team and SOC tasks.
File structure
• Top-level files are all MCP server entry points:
• mcp_recon_server.py
• mcp_payload_server.py
• mcp_shellcode_builder_server.py
• mcp_wazuh_server.py
• There is no monolithic “backend” or “frontend” directory—instead each script is a microservice exposing one or more @mcp.tool endpoints.
• README.md contains instructions on CLI/SDK installation, Claude Desktop integration, and local testing via the Inspector UI.
Key insights from the README
• MCP CLI/SDK (Python) is the client library that binds Claude Desktop or any LLM to your Python servers over JSON-RPC.
• The Inspector UI (npx @modelcontextprotocol/inspector) can sit between the LLM and servers for local debugging.
Main components
a. LLM Client Layer
– Claude Desktop (or any LLM)
– Inspector UI (optional, for local test harness)
b. MCP Client/SDK
– The Python MCP CLI library that issues JSON-RPC or stdio calls
c. Tool Servers (microservices)
– Recon Server (mcp_recon_server.py)
– Payload Server (mcp_payload_server.py)
– Shellcode Builder Server (mcp_shellcode_builder_server.py)
– Wazuh Server (mcp_wazuh_server.py)
d. External Resources & Services
– Wazuh, Suricata, Zeek logs
– Capstone, Donut, Sliver (for shellcode/malware)
– Threat Intel feeds, GitHub, CI/CD pipelines
– Any data stores (log database, artifact storage)
Relationships & interactions
• Claude Desktop → MCP CLI/SDK: invoke @mcp.tool() or @mcp.prompt()
• MCP CLI → Individual Python Servers via JSON-RPC (over stdio or HTTP)
• Each Python server → External tools/APIs (e.g., Wazuh API, Capstone disassembler, Zeek logs)
• Inspector UI (if used) sits between Claude and MCP CLI, visualizing calls.
Architectural patterns & design principles
• Microservices: each script is an independent tool-server
• Plugin/Connector architecture: new MCP servers can be added without changing core
• RPC-based communication: standard JSON-RPC tool invocation
• Separation of concerns: Recon, Payload gen, Shellcode, SOC analysis each isolated