A Model Context Protocol (MCP) server that gives Claude real-time cybersecurity reconnaissance capabilities β€” WHOIS, DNS enumeration, port scanning, SSL inspection, and tech stack detection.

πŸ” CyberSecurity MCP Server

A Model Context Protocol (MCP) server that gives Claude real-time cybersecurity reconnaissance capabilities. Instead of manually running tools across different terminals, just tell Claude "analyze google.com" and get a complete security breakdown instantly.

Built with FastMCP and Python.

🎯 What is this?

Claude by default has zero native cybersecurity tooling. No WHOIS. No DNS enumeration. No port scanning. No SSL inspection.

This MCP server fixes that β€” extending Claude with real-world security tools that run live against any domain or IP. Reconnaissance that normally requires multiple specialized tools and 20+ minutes of manual work becomes a single prompt.

This is a local MCP server β€” it runs entirely on your machine. Your data never leaves your computer.

πŸ› οΈ Tools Available

Tool Description
whois_lookup Domain registration data β€” owner, registrar, creation date, expiry, name servers
dns_enumeration A, AAAA, MX, NS, TXT, CNAME, SOA records + common subdomain brute-forcing
port_scan Nmap-powered scanner with service/version detection and security warnings
ssl_inspect SSL/TLS certificate β€” issuer, expiry, cipher strength, SANs, TLS version
tech_stack_detect Web server, CMS, JS frameworks, CDN, analytics, and security header scoring
cve_lookup Search NVD for known CVEs by software name and version (no API key required)
ip_reputation Check if an IP is flagged as malicious via AbuseIPDB (api key requied)
full_recon Runs all 5 core tools in parallel and returns combined results for Claude to analyze

πŸ“Έ Demo

Single tool β€” CVE lookup

You: Look up CVEs for apache 2.4.49

Claude: Found 2 critical CVEs for Apache 2.4.49:
        CVE-2021-41773 (Score: 9.8 CRITICAL) β€” Path traversal vulnerability
        allowing remote code execution if CGI is enabled. Actively exploited
        in the wild...

Full recon

You: Do a complete security recon on reddit.com

Claude: [calls full_recon β†’ runs 5 tools in parallel β†’ delivers full analysis]

πŸ“‹ Prerequisites

βš™οΈ Installation

Step 1 β€” Clone the repository

git clone https://github.com/gaoharimran29-glitch/Cybersecurity-MCP-Server.git
cd Cybersecurity-MCP-Server

Step 2 β€” Create a virtual environment

Windows:

python -m venv .venv
.venv\Scripts\activate

Mac/Linux:

python3 -m venv .venv
source .venv/bin/activate

Step 3 β€” Install Python dependencies

pip install -r requirements.txt

Step 4 β€” Install Nmap

Windows:

  1. Download from nmap.org/download.html and run the installer
  2. Manually add Nmap to PATH:
    • Press Win + S β†’ search "Environment Variables"
    • Under System Variables β†’ find Path β†’ click Edit
    • Click New β†’ add C:\Program Files (x86)\Nmap
    • Click OK on all windows
  3. Restart your terminal and verify:
nmap --version

Mac:

brew install nmap

Linux:

sudo apt install nmap

Step 5 β€” Connect to Claude Desktop

Open your Claude Desktop config file:

OS Path
Windows %APPDATA%\Claude\claude_desktop_config.json
Mac ~/Library/Application Support/Claude/claude_desktop_config.json
Linux ~/.config/Claude/claude_desktop_config.json

Add this configuration:

Windows:

{
  "mcpServers": {
    "cybersecurity": {
      "command": "C:\\full\\path\\to\\Cybersecurity-MCP-Server\\.venv\\Scripts\\python.exe",
      "args": ["C:\\full\\path\\to\\Cybersecurity-MCP-Server\\main.py"],
      "env": {
        "ABUSEIPDB_API_KEY": "your-api-key-here"
      }
    }
  }
}

Mac/Linux:

{
  "mcpServers": {
    "cybersecurity": {
      "command": "/full/path/to/Cybersecurity-MCP-Server/.venv/bin/python3",
      "args": ["/full/path/to/Cybersecurity-MCP-Server/main.py"],
      "env": {
        "ABUSEIPDB_API_KEY": "your-api-key-here"
      }
    }
  }
}

⚠️ Always use the full absolute path to your .venv Python executable β€” not just python or python3. Claude Desktop may use a different Python installation otherwise.

Note: ABUSEIPDB_API_KEY is only required for the ip_reputation tool. All other 7 tools work without it. Get a free key at abuseipdb.com (free tier: 1,000 requests/day).

Step 6 β€” Restart Claude Desktop

Fully quit and reopen Claude Desktop β€” closing the window is not enough. Check the system tray and quit from there.

Verify tools are connected by asking Claude:

What cybersecurity tools do you have available?

Claude should list all 8 tools.

πŸš€ Usage

Basic tool usage

Do a WHOIS lookup on example.com
Run DNS enumeration on github.com
Scan ports on scanme.nmap.org
Inspect the SSL certificate of stripe.com
Detect the tech stack of wordpress.org
Look up CVEs for apache 2.4.49
Look up CVEs for log4j 2.14.1
Check the reputation of IP 1.2.3.4

Port scan types

Type Description Speed
basic Top 100 ports Fast (~5s)
service Service & version detection Medium (~15s)
os OS detection (requires admin) Medium
full All 65535 ports Slow (~5min)
vuln Vulnerability scripts Slow (~30s)
Scan scanme.nmap.org with service detection

Full recon

Do a complete security recon on reddit.com

Claude will run all 5 core tools in parallel and deliver a full security analysis.

Follow-up analysis

Based on the recon, what are the top security risks?
What do the open ports mean from an attacker's perspective?
Is this SSL configuration strong enough for a financial services company?
Cross-reference the open ports with known CVEs for the detected services.

πŸ§ͺ Running Tests

python -m unittest test_security_tools.py

Expected output:

...
----------------------------------------------------------------------
Ran tests in 0.001s

OK

Tests mock external APIs so no internet connection or API keys are required.

⚠️ Legal & Ethical Usage

Only scan domains and IPs you own or have explicit written permission to scan.

  • WHOIS, DNS, SSL, CVE, and tech stack lookups use public data β€” safe on any domain
  • Port scanning should only target your own infrastructure or authorized systems
  • The only public host officially permitted for Nmap testing is scanme.nmap.org
  • Unauthorized port scanning may be illegal in your jurisdiction

Intended for:

  • Security researchers
  • Penetration testers (on authorized targets)
  • Developers auditing their own infrastructure
  • Students learning cybersecurity concepts

πŸ—‚οΈ Project Structure

Cybersecurity-MCP-Server/
β”œβ”€β”€ main.py                  # MCP server β€” all 8 tools
β”œβ”€β”€.env.example              # For API testing
β”œβ”€β”€ test_security_tools.py   # Unit tests with mocked APIs
β”œβ”€β”€ requirements.txt         # Python dependencies
β”œβ”€β”€ Dockerfile               # For deployment
β”œβ”€β”€ contributing.md          # Contribution guide
└── README.md                # This file

πŸ”­ Roadmap

  • Shodan integration β€” internet-wide device and service search
  • Certificate transparency search β€” find subdomains via cert logs
  • HTTP security headers deep analyzer
  • Phishing domain detector
  • Multi-domain batch scanning
  • PDF report generation

🀝 Contributing

Pull requests are welcome! Check contributing.md for guidelines and a list of open issues ready to pick up.

πŸ“œ License

MIT License β€” free to use, modify, and distribute.

πŸ‘€ Author

Built by Gaohar Imran

⭐ If this project helped you, consider giving it a star on GitHub!

MCP Server Β· Populars

MCP Server Β· New