Blue Team MCP Server
Provides tools to read and analyze Apache access and error logs for web server security investigations.
Provides tools to read and analyze NGINX access and error logs for web server security investigations.
Allows querying OpenSearch indices for Wazuh agent alerts and events, supporting SIEM event search and investigation.
Provides threat intelligence lookups for file hashes and domains via VirusTotal, enabling reputation checks during security investigations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Blue Team MCP Server
A defensive security MCP server for Claude Desktop — the defender's counterpart to mcp-kali-server.
Where Kali gives Claude offensive tools (nmap, gobuster, sqlmap), this gives Claude blue team / SOC analyst tools to investigate, monitor, and harden your systems.
Architecture
┌─────────────────────┐ SSH (stdio) ┌─────────────────────────┐
│ Your Workstation │ ──────────────────────── │ Defender Host │
│ Claude Desktop │ │ Ubuntu/Debian Server │
│ (macOS/Windows) │ │ blue_team_server.py │
└─────────────────────┘ └─────────────────────────┘
│ │
│ ┌─────────┴──────────┐
Anthropic API │ System tools: │
(Claude Sonnet) │ ss, tcpdump, │
│ fail2ban-client, │
│ journalctl, lynis │
│ rkhunter, etc. │
└────────────────────┘Consolidated deployment (Ubuntu-SOC + Wazuh)
When Wazuh Docker and the MCP run on the same host, use localhost for Wazuh endpoints:
┌─────────────────────┐ SSH ┌────────────────────────────────────┐
│ Claude Desktop │ ──────────────────► │ Ubuntu-SOC │
│ (macOS) │ 192.168.153.5 │ • 192.168.153.5 (NAT) │
└─────────────────────┘ or 172.16.101.5 │ • 172.16.101.5 (LAB) │
│ │
│ ┌─────────────────────────────────┐ │
│ │ Wazuh Docker │ │
│ │ • Manager API :55000 │ │
│ │ • Indexer (OpenSearch) :9200 │ │
│ └─────────────────────────────────┘ │
│ ┌─────────────────────────────────┐ │
│ │ mcp-server-blueteam │ │
│ │ WAZUH_API_URL=localhost:55000 │ │
│ │ WAZUH_INDEXER_URL=localhost:9200│ │
│ └─────────────────────────────────┘ │
└────────────────────────────────────┘Related MCP server: SSH Read-Only MCP Server
Quick Start
1. On your Defender Host (Ubuntu/Debian)
git clone https://github.com/not2cleverdotme/blue-team-mcp
cd blue-team-mcp
sudo bash setup.shThe setup script will:
Install system packages (tcpdump, fail2ban, lynis, rkhunter, chkrootkit)
Create a Python virtualenv with MCP dependencies
Place the
mcp-server-blueteamcommand in/usr/local/binGrant tcpdump network capture capabilities
2. Set API Keys and Wazuh (optional but recommended)
Edit the config file created by setup:
sudo nano /opt/blue-team-mcp/config.envUncomment and set the variables you need:
ABUSEIPDB_API_KEY — https://www.abuseipdb.com/account/api
VIRUSTOTAL_API_KEY — https://www.virustotal.com/gui/my-apikey
WAZUH_API_URL —
https://localhost:55000(if Wazuh is on same host) orhttps://<host>:55000WAZUH_API_USER —
wazuh-wui(Wazuh Docker default)WAZUH_API_PASSWORD — e.g.
MyS3cr37P450r.*-(Wazuh Docker default)WAZUH_API_VERIFY_SSL —
falsefor self-signed certsWAZUH_INDEXER_URL —
https://localhost:9200(if on same host) orhttps://<host>:9200WAZUH_INDEXER_USER —
admin(indexer default)WAZUH_INDEXER_PASSWORD — indexer password (often different from Wazuh API)
WAZUH_INDEXER_VERIFY_SSL —
falsefor self-signed certs
Note: The indexer (port 9200) stores HYDRA-DC Windows events in OpenSearch. Its password may differ from the Wazuh API. For Wazuh Docker, check your docker-compose or .env for OPENSEARCH_INITIAL_ADMIN_PASSWORD. If adding Indexer support to an existing install, re-run setup.sh to update the wrapper with the new exports.
3. Configure Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"blue-team-mcp": {
"command": "ssh",
"args": [
"-i", "/Users/you/.ssh/ubuntu-soc",
"soc-admin@192.168.153.5",
"mcp-server-blueteam"
],
"transport": "stdio"
}
}
}Use the IP reachable from your workstation: 192.168.153.5 (NAT) or 172.16.101.5 (LAB).
Restart Claude Desktop. You should see the blue-team-mcp tools available.
Available Tools
Log Analysis
Tool | Description |
| SSH/sudo/PAM events from auth.log |
| General system events |
| nginx/Apache access & error logs |
| Query any systemd unit's journal |
Network Monitoring
Tool | Description |
| All open/listening ports with process |
| Established TCP connections |
| Live packet capture via tcpdump |
Wazuh SIEM
Tool | Description |
| List all Wazuh agents (status, IP, OS) |
| Agent count by status (active/disconnected) |
| Manager daemon logs (api, cluster, integrations) |
| Security alerts from alerts.json (when MCP runs on manager host) |
| Query OpenSearch for agent alerts/events (HYDRA-DC Windows events) |
Threat Intelligence
Tool | Description |
| IP reputation via AbuseIPDB |
| File hash lookup via VirusTotal |
| Domain reputation via VirusTotal |
Fail2Ban
Tool | Description |
| List all jails and ban counts |
| Detailed status of a specific jail |
| Unban an IP from a jail |
File Integrity
Tool | Description |
| Hash any file (MD5/SHA1/SHA256/SHA512) |
| Find unexpected SUID/SGID binaries |
| Find world-writable files (persistence indicator) |
| Run rkhunter or chkrootkit |
System Hardening
Tool | Description |
| Full Lynis hardening audit |
| Check for pending security updates |
| View ufw/nftables/iptables rules |
User & Session Monitoring
Tool | Description |
| Active user sessions with source IPs |
| Login history (last 50) |
| Failed login attempts |
| Sudo command usage |
| All local accounts with risk flags |
| All authorized_keys files |
Process & Persistence
Tool | Description |
| All running processes |
| System and user cron jobs |
System Health
Tool | Description |
| Uptime, disk, memory, CPU load |
Example Prompts
Once connected via Claude Desktop, you can ask:
"Check the last 2 hours of auth.log and tell me if there are any brute force
attempts. Group by source IP."
"Show me all listening ports. Are any unexpected services running?"
"Here are 5 IPs from my nginx access log: 1.2.3.4, 5.6.7.8, 9.10.11.12,
13.14.15.16, 200.1.2.3 — look them all up on AbuseIPDB."
"Run a Lynis audit and give me the top 5 highest priority hardening items."
"Check for any SUID binaries that aren't in the standard list of expected ones."
"Who is currently logged into this server, and when did they log in?"
"Scan all user cron jobs and flag anything that looks suspicious."
"Hash /usr/bin/sshd and check it against VirusTotal."MAESTRO Framework Alignment
This server aligns with the CSA MAESTRO framework for agentic AI security. See MAESTRO.md for the threat model and mitigations.
Optional: Audit Logging (Repudiation Mitigation)
Enable audit logging to record tool invocations:
export BLUETEAM_AUDIT_LOG=/var/log/blue-team-mcp-audit.jsonlEnsure log rotation (e.g., logrotate) to prevent unbounded growth.
Optional: Rate Limiting (DoS Mitigation)
Limit tool calls per minute:
export BLUETEAM_RATE_LIMIT=60Security Notes
The MCP server runs with whatever privileges the SSH user has. Running as a dedicated low-privilege user (with sudo for specific tools) is recommended for production.
Threat intel tools make outbound API calls to AbuseIPDB/VirusTotal. Ensure this is acceptable in your environment.
blueteam_capture_trafficrequiresCAP_NET_RAWor root. The setup script attempts to grant this to tcpdump viasetcap.Log files under
/var/log/often require root or membership in theadmgroup to read. Add your SSH user to theadmgroup:usermod -aG adm youruserPath restrictions:
blueteam_hash_fileallows paths under/var,/etc,/home,/opt,/usr(configurable viaBLUETEAM_ALLOWED_PATHS).blueteam_capture_trafficwrites pcap files only underBLUETEAM_CAPTURE_DIR(default/tmp).
Requirements
Defender Host:
Ubuntu 20.04+ or Debian 11+ (other distros work with minor adjustments)
Python 3.8+
OpenSSH server
Optional system tools (setup.sh installs these):
tcpdump,fail2ban,lynis,rkhunter,chkrootkit
Python packages (auto-installed in venv, pinned for supply chain security):
mcp>=1.0.0,<2.0.0httpx>=0.27.0,<0.28.0pydantic>=2.0.0,<3.0.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Scoped, audited SSH exec, sessions, and SFTP on your saved servers without exposing credentials
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables secure SSH command execution on remote servers and local PowerShell automation through Claude Desktop. Features enterprise-grade security with SSH key authentication, network scanning, and comprehensive logging for Windows and Linux system administration.4MIT
- FlicenseAqualityDmaintenanceEnables secure remote SSH command execution with strict read-only enforcement, allowing safe delegation of SSH access to Claude while preventing write operations. Supports connection pooling, command validation, and comprehensive logging for audit trails.51-
- FlicenseNot gradedqualityDmaintenanceEnables managing Ubuntu/Linux servers through natural language by establishing SSH connections and executing remote commands. Supports real-time command execution and output through Claude Desktop or Cursor IDE.14-
- AlicenseAqualityDmaintenanceEnables natural language SSH server management via Claude Code, allowing users to read logs, check services, run commands, and transfer files across multiple servers.6MIT