Cybersecurity-MCP-Server
🔐 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 |
| Domain registration data — owner, registrar, creation date, expiry, name servers |
| A, AAAA, MX, NS, TXT, CNAME, SOA records + common subdomain brute-forcing |
| Nmap-powered scanner with service/version detection and security warnings |
| SSL/TLS certificate — issuer, expiry, cipher strength, SANs, TLS version |
| Web server, CMS, JS frameworks, CDN, analytics, and security header scoring |
| Search NVD for known CVEs by software name and version (no API key required) |
| Check if an IP is flagged as malicious via AbuseIPDB (api key requied) |
| 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
Python 3.10+ — download
Claude Desktop — download
Nmap — required for port scanning (download)
Git — download
⚙️ Installation
Step 1 — Clone the repository
git clone https://github.com/gaoharimran29-glitch/Cybersecurity-MCP-Server.git
cd Cybersecurity-MCP-ServerStep 2 — Create a virtual environment
Windows:
python -m venv .venv
.venv\Scripts\activateMac/Linux:
python3 -m venv .venv
source .venv/bin/activateStep 3 — Install Python dependencies
pip install -r requirements.txtStep 4 — Install Nmap
Windows:
Download from nmap.org/download.html and run the installer
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)\NmapClick OK on all windows
Restart your terminal and verify:
nmap --versionMac:
brew install nmapLinux:
sudo apt install nmapStep 5 — Connect to Claude Desktop
Open your Claude Desktop config file:
OS | Path |
Windows |
|
Mac |
|
Linux |
|
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
.venvPython executable — not justpythonorpython3. Claude Desktop may use a different Python installation otherwise.
Note:
ABUSEIPDB_API_KEYis only required for theip_reputationtool. 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.4Port scan types
Type | Description | Speed |
| Top 100 ports | Fast (~5s) |
| Service & version detection | Medium (~15s) |
| OS detection (requires admin) | Medium |
| All 65535 ports | Slow (~5min) |
| Vulnerability scripts | Slow (~30s) |
Scan scanme.nmap.org with service detectionFull recon
Do a complete security recon on reddit.comClaude 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.pyExpected output:
...
----------------------------------------------------------------------
Ran tests in 0.001s
OKTests 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.orgUnauthorized 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
GitHub: @gaoharimran29-glitch
LinkedIn: Gaohar Imran
⭐ If this project helped you, consider giving it a star on GitHub!
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/gaoharimran29-glitch/Cybersecurity-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server