Cybersecurity-MCP-Server

Cybersecurity-MCP-Server

CyberSecurity MCP Server extends Claude with real-time cybersecurity reconnaissance capabilities that Claude doesn't have by default. Instead of manually running 5 different tools across different terminals, just tell Claude "analyze google.com" and get a complete security breakdown instantly. Tools included: * WHOIS Lookup โ€” registrar, ownership, creation/expiry dates * DNS Enumeration โ€” A,

Category
Visit Server

README

๐Ÿ” 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!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured