Skip to main content
Glama

πŸ” MCP Security

CI Python 3.10+ License: MIT MCP

Security tools for AI assistants β€” vulnerability scanning, CVE lookups, network analysis, and security assessments via the Model Context Protocol.

Let Claude, ChatGPT, or any MCP-compatible AI run security audits through natural language.


✨ Features

  • πŸ” Port Scanning β€” Network reconnaissance with nmap or socket fallback

  • πŸ›‘οΈ CVE Lookup β€” Search and analyze vulnerabilities from NVD

  • 🌐 IP Reputation β€” Check IPs for malicious activity (AbuseIPDB)

  • πŸ”’ SSL/TLS Analysis β€” Certificate validity, expiry, security issues

  • πŸ“‹ Security Headers β€” HTTP header audit with grades

  • 🌍 DNS Enumeration β€” A, MX, TXT, NS records + SPF/DMARC checks

  • πŸ“œ WHOIS β€” Domain registration and ownership data

  • πŸ‘οΈ Shodan Integration β€” Deep host intelligence

  • πŸ“Š Full Reports β€” Comprehensive security assessments

Related MCP server: MCPPentestBOT

πŸš€ Quick Start

Installation

pip install mcp-security

Or install from source:

git clone https://github.com/edwiniac/mcp-security.git
cd mcp-security
pip install -e .

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "security": {
      "command": "mcp-security",
      "env": {
        "SHODAN_API_KEY": "your-shodan-key",
        "NVD_API_KEY": "your-nvd-key",
        "ABUSEIPDB_API_KEY": "your-abuseipdb-key"
      }
    }
  }
}

Example Prompts

Once configured, ask Claude:

"Scan example.com for open ports and check their SSL certificate"

"Look up CVE-2024-1234 and tell me how severe it is"

"Check the security headers on https://mysite.com"

"Generate a full security report for 192.168.1.1"

"Search for recent critical vulnerabilities in nginx"

πŸ› οΈ Available Tools

Tool

Description

port_scan

Scan for open ports and services

cve_lookup

Get detailed CVE information

cve_search

Search CVEs by keyword/severity

ip_reputation

Check IP for malicious activity

ssl_check

Analyze SSL/TLS certificates

security_headers

Audit HTTP security headers

dns_lookup

DNS enumeration with security notes

whois_lookup

Domain registration info

shodan_host

Shodan intelligence for IPs

generate_report

Comprehensive security assessment

πŸ”‘ API Keys (Optional)

For full functionality, set these environment variables:

Variable

Service

Get it from

SHODAN_API_KEY

Shodan

shodan.io

NVD_API_KEY

NVD CVE Database

nvd.nist.gov

ABUSEIPDB_API_KEY

AbuseIPDB

abuseipdb.com

The server works without API keys but with reduced functionality.

πŸ“Š Example Output

Security Headers Check

Ask: "Check security headers for github.com"

βœ… Strict-Transport-Security: Present
βœ… Content-Security-Policy: Present  
βœ… X-Frame-Options: DENY
βœ… X-Content-Type-Options: nosniff
⚠️ Permissions-Policy: Missing (optional)

Grade: A - Good
Score: 5/6 (83%)

CVE Lookup

Ask: "Tell me about CVE-2024-1234"

CVE-2024-1234
🟠 HIGH (7.5)

Description: A vulnerability in Example Software allows...
Published: 2024-01-15
CWE: CWE-79 (Cross-site Scripting)

References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-1234
- https://example.com/advisory

πŸ—οΈ Architecture

src/mcp_security/
β”œβ”€β”€ __init__.py
└── server.py      # MCP server with all security tools

tests/
β”œβ”€β”€ conftest.py    # Shared fixtures
β”œβ”€β”€ test_helpers.py
└── test_tools.py

πŸ§ͺ Testing

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# With coverage
pytest --cov=mcp_security --cov-report=term-missing

⚠️ Security Considerations

  • Only scan targets you own or have permission to scan

  • Port scanning without permission may be illegal in some jurisdictions

  • This tool is for authorized security assessments only

  • API keys are sensitive β€” don't commit them to version control

πŸ—ΊοΈ Roadmap

  • Nuclei template scanning

  • Subdomain enumeration

  • Web vulnerability scanning (XSS, SQLi detection)

  • Compliance checks (PCI-DSS, HIPAA basics)

  • Integration with more threat intel sources

  • Export reports to PDF/HTML

πŸ“„ License

MIT License β€” see LICENSE for details.

πŸ‘€ Author

Edwin Isac β€” AI Engineer
GitHub Β· Email


Part of MCP Finance family of MCP servers.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables comprehensive security testing and penetration testing through natural language conversations with 92+ tools for reconnaissance, vulnerability assessment, web application testing, OSINT, and reporting. Designed for authorized bug bounty hunting and security assessments.
      53
      44
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform authorized security testing and penetration testing operations including SSL/TLS analysis, port scanning, vulnerability scanning, and HTTP security header audits through natural language interactions.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform penetration testing and security assessments by exposing 60+ Kali Linux security tools including network scanning, web security testing, password cracking, exploitation frameworks, and OSINT capabilities through an AI-friendly interface.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with standardized security scanning capabilities for authorized assessments, including host detection, port scanning, service fingerprinting, web vulnerability scanning, CVE verification, and report generation, all with unified JSON output and strict compliance controls.
      -