Skip to main content
Glama

A comprehensive network reconnaissance MCP server that gives AI assistants the ability to perform DNS lookups, WHOIS queries, port scanning, subdomain enumeration, TLS certificate inspection, HTTP security header analysis, IP geolocation, and Shodan intelligence — all without any API keys.

⚡ Quick Start

npx @leviai/netrecon-mcp

That's it. No installation, no configuration, no API keys.

Related MCP server: subsweep-recon

🛠️ Tools

Tool

Description

Data Source

dns_lookup

Query DNS records (A, AAAA, MX, TXT, NS, SOA, CNAME, SRV, CAA)

Cloudflare + Google DNS

whois_lookup

WHOIS/RDAP registration data for domains and IPs

RDAP (rdap.org)

reverse_dns

Reverse DNS lookup — find hostnames for an IP

System DNS

tls_certificate

Inspect TLS/SSL certificates, SANs, validity, fingerprints

Direct TLS connection

port_scan

TCP connect scan on specified or common ports

Direct TCP connection

subdomain_enum

Discover subdomains via Certificate Transparency logs

crt.sh

http_headers

Fetch HTTP headers + security header analysis

Direct HTTP request

ip_geolocation

IP location, ISP, ASN, proxy/VPN/hosting detection

ip-api.com (free)

shodan_internetdb

Quick IP intel — open ports, CVEs, hostnames, CPEs

Shodan InternetDB (free)

full_recon

All-in-one comprehensive domain reconnaissance

All of the above

📦 Installation

Option 1: npx (no install)

npx @leviai/netrecon-mcp

Option 2: Global install

npm install -g @leviai/netrecon-mcp
netrecon-mcp

Option 3: Clone and build

git clone https://github.com/btcgodx/netrecon-mcp.git
cd netrecon-mcp
npm install
npm run build
node build/index.js

🔌 Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "netrecon": {
      "command": "npx",
      "args": ["-y", "@leviai/netrecon-mcp"]
    }
  }
}
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

Cursor

Add to Cursor Settings → MCP Servers:

{
  "mcpServers": {
    "netrecon": {
      "command": "npx",
      "args": ["-y", "@leviai/netrecon-mcp"]
    }
  }
}

Claude Code (CLI)

claude mcp add netrecon -- npx -y @leviai/netrecon-mcp

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "netrecon": {
      "command": "npx",
      "args": ["-y", "@leviai/netrecon-mcp"]
    }
  }
}

OpenClaw

mcporter add netrecon --command "npx -y @leviai/netrecon-mcp"

💬 Example Prompts

Once connected, ask your AI assistant:

"What DNS records does example.com have?"

"Who owns the IP address 8.8.8.8?"

"Scan ports on 203.0.113.1"

"Find all subdomains of tesla.com"

"Check the TLS certificate for github.com — is it expiring soon?"

"Analyze the security headers of https://example.com"

"Do a full security recon on cloudflare.com"

"Is 1.2.3.4 a known proxy or VPN?"

"What vulnerabilities are known for 203.0.113.50?"

📋 Example Output

dns_lookup for github.com

DNS Records for github.com:

  A Records:
    140.82.121.3

  AAAA Records:
    2606:50c0:8000::64

  MX Records:
    1 aspmx.l.google.com
    5 alt1.aspmx.l.google.com
    10 alt3.aspmx.l.google.com

  NS Records:
    dns1.p08.nsone.net
    dns2.p08.nsone.net
    dns3.p08.nsone.net
    dns4.p08.nsone.net

  TXT Records:
    v=spf1 ip4:192.30.252.0/22 include:_netblocks...

port_scan for a web server

Port scan for example.com:
  Open ports (4):
    22/tcp  open  SSH
    80/tcp  open  HTTP
    443/tcp open  HTTPS
    8080/tcp open  HTTP-Alt

http_headers security analysis

HTTP Headers for https://example.com:
  Status: 200 OK
  Headers:
    content-type: text/html; charset=UTF-8
    strict-transport-security: max-age=31536000
    x-content-type-options: nosniff
    ...

  Security Analysis:
    ⚠ Missing: Content-Security-Policy (CSP)
    ⚠ Missing: Permissions-Policy
    ⚠ Info leak: Server header exposes "nginx/1.24.0"

🏗️ Architecture

┌──────────────┐     stdio/JSON-RPC     ┌──────────────────┐
│  MCP Client  │◄──────────────────────►│  NetRecon MCP    │
│  (Claude,    │                        │  Server          │
│   Cursor,    │                        │                  │
│   etc.)      │                        └───────┬──────────┘
└──────────────┘                                │
                           ┌────────────────────┼────────────────────┐
                           │                    │                    │
                    ┌──────▼──────┐     ┌──────▼──────┐     ┌──────▼──────┐
                    │  DNS        │     │  RDAP/WHOIS  │     │  crt.sh     │
                    │  (1.1.1.1)  │     │  (rdap.org)  │     │  (CT logs)  │
                    └─────────────┘     └──────────────┘     └─────────────┘
                           │                    │                    │
                    ┌──────▼──────┐     ┌──────▼──────┐     ┌──────▼──────┐
                    │  ip-api.com │     │  Shodan      │     │  Direct     │
                    │  (GeoIP)    │     │  InternetDB  │     │  TCP/TLS    │
                    └─────────────┘     └──────────────┘     └─────────────┘

🔑 No API Keys Required

Every data source is free and requires zero authentication:

Source

Purpose

Rate Limit

Cloudflare DNS (1.1.1.1)

DNS resolution

Unlimited

Google DNS (8.8.8.8)

DNS fallback

Unlimited

rdap.org

WHOIS/RDAP lookups

Fair use

crt.sh

Certificate Transparency logs

Fair use

ip-api.com

IP geolocation

45 req/min

Shodan InternetDB

IP intelligence

Unlimited

Direct TCP/TLS

Port scan & TLS inspection

N/A

⚖️ Security & Ethics

This tool is designed for legitimate security assessment of systems you own or have authorization to test. Port scanning and reconnaissance of systems without permission may violate laws in your jurisdiction. Use responsibly.

🤝 Contributing

Contributions welcome! Please open an issue first to discuss what you'd like to change.

git clone https://github.com/btcgodx/netrecon-mcp.git
cd netrecon-mcp
npm install
npm run dev

📄 License

MIT © Levi Labs

Available Tools

10 tools
dns_lookupA

Look up DNS records for a domain. Returns A, AAAA, MX, TXT, NS, SOA, CNAME, SRV, CAA records. Use this when you need to find IP addresses, mail servers, nameservers, or any DNS configuration for a domain.

Inputs: domain (required), record_types.

full_reconB

Perform comprehensive reconnaissance on a domain. Runs DNS lookup, WHOIS, subdomain enumeration, TLS certificate check, HTTP headers analysis, and IP geolocation in one call. Use this when you need a complete security overview of a target domain.

Inputs: domain (required).

http_headersA

Fetch and analyze HTTP response headers from a URL. Checks for security headers (HSTS, CSP, X-Frame-Options, etc.) and identifies information leakage (Server, X-Powered-By). Use this to audit a website's security posture.

Inputs: url (required).

ip_geolocationA

Get geographic location and network information for an IP address. Returns country, city, ISP, ASN, coordinates, and flags for proxy/VPN/hosting detection. Uses ip-api.com (free, no API key).

Inputs: ip (required).

port_scanA

Scan TCP ports on a host to discover open services. Performs TCP connect scan on specified ports. Use this to find what services are running on a server. Default scans common ports (21,22,23,25,53,80,110,143,443,445,993,995,1433,3306,3389,5432,5900,6379,8080,8443,9200,27017).

Inputs: host (required), ports.

reverse_dnsB

Perform reverse DNS lookup on an IP address to find associated hostnames. Use this to discover what domains point to a given IP.

Inputs: ip (required).

shodan_internetdbA

Query Shodan's InternetDB for quick intelligence on an IP address. Returns known open ports, hostnames, CPEs (software versions), tags, and known vulnerabilities (CVEs). Free, no API key required. Use this for rapid threat assessment of an IP.

Inputs: ip (required).

subdomain_enumA

Enumerate subdomains for a domain using Certificate Transparency logs (crt.sh). Discovers subdomains that have had SSL certificates issued. Use this for attack surface discovery or to map an organization's web presence.

Inputs: domain (required).

tls_certificateA

Inspect the TLS/SSL certificate of a host. Returns subject, issuer, validity dates, SANs, fingerprint, and OCSP info. Use this to check certificate expiry, issuer, or discover subdomains via Subject Alternative Names.

Inputs: host (required), port.

whois_lookupA

Get WHOIS/RDAP registration information for a domain or IP address. Returns registrar, registration dates, nameservers, registrant info, network allocation details. Use this to find who owns a domain or IP block.

Inputs: target (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool targets a distinct reconnaissance data source (DNS, WHOIS, rDNS, TLS, ports, CT logs, headers, geo, Shodan), so misselection is unlikely. The main overlap is that shodan_internetdb and port_scan both surface open ports, and full_recon re-runs everything else, though its description makes the batch role clear.

    Naming Consistency4/5

    All names are lowercase snake_case and resource-oriented (dns_lookup, whois_lookup, tls_certificate, ip_geolocation), which is predictable and readable. Minor deviations exist: reverse_dns uses a verb-first order while others use resource_action, and http_headers/full_recon drop the action component entirely.

    Tool Count5/5

    Ten tools is well within the ideal range and each maps to a distinct recon capability. No filler tools are present; even full_recon is justified as a convenience aggregator.

    Completeness4/5

    The surface covers the core recon lifecycle: passive discovery (DNS, WHOIS, CT subdomains), active probing (ports, TLS, headers), and enrichment (geo, Shodan CVEs), plus an aggregate run. Minor gaps remain: no CIDR/IP-range scanning, no email security posture (SPF/DMARC summarization) or reputation/blacklist check, and no screenshot/tech-fingerprint beyond headers.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to perform cybersecurity analysis including RDAP lookup, DNS analysis, SSL inspection, security header detection, and more, returning structured security reports.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to perform live subdomain enumeration, passive DNS OSINT, technology stack profiling, port scanning, and B2B lead harvesting directly from chat.
      MIT