MCP-CyberAgent πŸ›‘οΈ

April 9, 2025 Β· View on GitHub

license

mcp_cyberagent_banner

MCP-CyberAgent πŸ›‘οΈ

MCP-CyberAgent is an MCP-compliant AI security assistant that connects Claude Desktop (or any MCP client) with real-world cybersecurity tools like VirusTotal, Nmap, Shodan, and PowerShell.

πŸ”¬ In this project, I’ve integrated automated hash extraction from running startup applications β€” enabling Claude to act like a personalized
AI-powered Malware Scanner.

It supports natural language interaction to:

  • Scan for malware using VirusTotal
  • Discover active network services
  • Gather threat intelligence from Shodan
  • Test network health and connectivity

All this runs locally in your environment β€” no cloud integration required. And it's completely free.


πŸŽ₯ Demo

https://github.com/user-attachments/assets/469d2800-8c06-461f-8336-6a1751b851cc


βš™οΈ Tools & Prompts

πŸ”¬ VirusTotal Integration

Using PowerShell, MCP-CyberAgent extracts SHA256 hashes from startup applications and checks them against VirusTotal’s threat database.

🧠 Try asking Claude:
"Scan running processes with VirusTotal"
"Check for malware in startup applications"

virustotal_demo


🌐 Nmap Port Scanner

Scan open ports, services, and protocols on any IP using Claude.

🧠 Try:
"Check what ports are open on 127.0.0.1"

nmap_demo


🌍 Shodan IP Intelligence

Get real-time internet-facing service information for any public IP address using Shodan.

🧠 Try:
"What does Shodan know about 1.1.1.1?"

shodan_demo


🌐 Get Public IP

Query your external/public IP address.

🧠 Try:
"What is my IP?"

MyIp_demo


πŸ“ Ping Checker

Test latency and host reachability via ICMP.

🧠 Try:
"Ping 8.8.8.8"
"Check if google.com is online"

ping_demo


βœ… Requirements

  • Python 3.10+
  • Windows PowerShell (for startup hash scanning)
  • Claude Desktop or 5ire
  • API Keys:

Install dependencies:

pip install -r requirements.txt



## πŸ”§ Setup Guide

### πŸ“ Project Layout

MCP-CyberAgent/ β”œβ”€β”€ bridge_mcp_cyberagent.py β”œβ”€β”€ modules/ β”‚ β”œβ”€β”€ virustotal_module.py β”‚ β”œβ”€β”€ nmap_module.py β”‚ β”œβ”€β”€ shodan_module.py β”‚ └── sysinfo.ps1 β”œβ”€β”€ configs/ β”‚ └── api_keys.env β”œβ”€β”€ README.md └── requirements.txt


### βœ… Installation

1. **Clone the repository:**
   ```bash
   git clone https://github.com/JithukrishnanV/MCP-CyberAgent
   cd MCP-CyberAgent
  1. Create a virtual environment (optional but recommended):

    python -m venv .venv
    .venv\Scripts\activate
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Add your API keys in configs/api_keys.env:

    VT_API_KEY=your_virustotal_api_key
    SHODAN_API_KEY=your_shodan_api_key
    
  4. Edit Claude Desktop config: Claude Desktop To set up Claude Desktop as a Ghidra MCP client, go to Claude -> Settings -> Developer -> Edit Config -> claude_desktop_config.json and add the following:

    {
      "mcpServers": {
        "cyberagent": {
          "command": "C:/Path/To/python.exe",
          "args": [
            ""/ABSOLUTE_PATH_TO/bridge_mcp_cyberagent.py"
          ]
        }
      }
    }
    
  5. Launch Claude and select the MCP-CyberAgent from the MCP tab.


πŸ”— Resources