recon-mcp
Detects subdomain takeover risks for services hosted on Fastly, such as unclaimed resources.
Detects subdomain takeover risks for services hosted on GitHub Pages, such as unclaimed repositories.
Detects subdomain takeover risks for services hosted on Heroku, such as unclaimed apps.
Detects subdomain takeover risks for services hosted on Shopify, such as unclaimed storefronts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@recon-mcp run a security recon report on example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
recon-mcp
English | 繁體中文
An MCP server that gives AI coding agents — Claude Code, Codex, Cline, and any MCP client — safe, structured network and security reconnaissance tools.
Most MCP servers wrap CRUD APIs. recon-mcp instead exposes the kind of
read-only recon an engineer reaches for when investigating an asset, and returns
clean JSON — with a graded verdict — so the agent can reason over results
instead of parsing console output.
⚠️ Authorized use only. These tools are for security testing of assets you own or have explicit written permission to assess, for CTF practice, and for education. Do not point them at third-party infrastructure without authorization. You are responsible for how you use this software.
Tools
Tool | What it does |
| Start here. One call → DNS, TLS, and HTTP headers checked together, with an overall grade |
| DNS + WHOIS + email security (SPF/DMARC/DKIM), graded |
| Discover subdomains via DNS brute-force and/or Certificate Transparency logs |
| Check subdomains for a dangling-CNAME takeover risk against known services |
| Certificate, protocols, ciphers, and known TLS vulnerabilities, graded |
| HTTP security headers (CSP, HSTS, X-Frame-Options, …), graded |
| Redirect chain + cookie flags (Secure / HttpOnly / SameSite), graded |
| CORS policy probe — flags arbitrary-Origin reflection and wildcard misuse |
| Fingerprint the web stack (server, CDN/WAF, language, framework, CMS, JS) from one GET |
| Report which HTTP methods a server allows and grade the risk (TRACE/PUT/DELETE) |
| Fetches & parses |
| Resolves the host and enriches its IP via RDAP (owner, country, CIDR, abuse) |
| TCP port scan of one host (≤1024 ports/call), open ports + services |
Related MCP server: Bug Bounty Assistant MCP
Example
Just ask your agent: "run a security recon report on example.com." It calls
recon_report once and gets a graded overview it can act on:
{
"domain": "example.com",
"overall_grade": "F",
"summary": "Overall posture F: email A, TLS B, headers F; 13 actionable issue(s).",
"components": {
"email": { "grade": "A", "issues": [] },
"tls": { "grade": "B", "issues": [] },
"headers": { "grade": "F", "issues": [
{ "severity": "high", "label": "Missing Content-Security-Policy", "detail": "CSP not set; cannot restrict resource load sources" }
] }
}
}Need more detail on one area? The agent can call dns_recon, subdomain_enum,
subdomain_takeover, tls_check, http_headers_audit, cookie_audit,
cors_check, tech_detect, http_methods_audit, well_known_audit,
ip_info, or port_scan directly.
Install
Requires Python ≥ 3.10. Runs on Linux, macOS, and Windows (tested in CI).
Recommended — no clone, via uv:
uvx recon-kit-mcpOr from source (for development):
git clone https://github.com/nan786521/recon-mcp
cd recon-mcp
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activate
pip install -e .Use with Claude Code
Add the server (stdio transport). With uvx you don't need an absolute path:
claude mcp add recon -- uvx recon-kit-mcpOr add it manually to any MCP client config:
{
"mcpServers": {
"recon": {
"command": "uvx",
"args": ["recon-kit-mcp"]
}
}
}(From a source checkout, point the command at /absolute/path/to/.venv/bin/recon-kit-mcp instead.)
Then just ask: "run a security recon report on example.com" — or target one area, e.g. "check the email security of example.com."
The server also ships a security_recon prompt: pick it from your client's
prompt menu and pass a domain for a guided, severity-sorted audit.
Tool reference
recon_report(domain, timeout?) -> dict
Runs DNS/email, TLS, HTTP-header, web-stack (tech_detect), and apex
subdomain-takeover checks together and returns overall_grade (as weak as the
weakest component, capped at F if a live takeover is found), a one-line
summary, components (email / tls / headers, each with its grade and
actionable issues), a tech section (detected technologies + any version
disclosure), and a takeover section when the apex is at risk. Uses a fast
single-handshake TLS check for speed — call tls_check for the full
cipher/vulnerability analysis. The best starting point; use the tools below for
raw detail.
dns_recon(domain, checks?, timeout?) -> dict
records — A, AAAA, MX, NS, TXT, SOA, CNAME, CAA records
whois — parsed registration fields + raw WHOIS text
email — SPF, DMARC, and DKIM posture, plus advisory MTA-STS, TLS-RPT, BIMI, and DNSSEC signals, and a graded
assessment(letter grade A–F, a summary, and per-check findings with severity and a recommended fix). The advisory signals surface as findings but don't move the core SPF/DKIM/DMARC grade.
checks is any subset of ["records", "whois", "email"]; omit it to run all.
subdomain_enum(domain, wordlist?, source="dns", timeout?) -> dict
Discovers subdomains from two complementary sources:
source="dns"(default) — resolves candidate labels via DNS.wordlistis comma-separated labels ("www,api,dev"); omit it for a built-in common list. Capped at 512 candidates per call. Returns resolvedips.source="ct"— queries public Certificate Transparency logs (crt.sh) for every name ever certified for the domain. Fully passive; finds real hosts no wordlist would guess.source="both"— runs both and merges, recording which source(s) saw each host.
Returns sources, found_count, and found (each with subdomain, the
sources that saw it, and ips when resolved).
subdomain_takeover(hosts, timeout?) -> dict
Checks subdomains for a dangling-CNAME takeover — a subdomain that CNAMEs to
a third-party service (GitHub Pages, S3, Heroku, Azure, Fastly, Shopify, …)
whose resource was deleted or never claimed, letting anyone who registers that
resource serve content on the victim's subdomain. For each host it resolves the
CNAME, recognizes known takeover-prone services, fetches the page, and flags
the provider's "unclaimed resource" fingerprint and/or a CNAME target that no
longer resolves. hosts is one hostname or a comma-separated list (capped at
100). Read-only — DNS lookups plus one HTTP GET per host. Pair it with
subdomain_enum: enumerate first, then check the interesting hosts.
Returns checked, vulnerable_count, and results (each with host, cname,
service, status, vulnerable, severity, and detail). status is one of
not_applicable, not_vulnerable, potential, dangling_cname, or
vulnerable.
tls_check(host, port=443, timeout?) -> dict
Returns grade, certificate (validity / expiry / key algorithm),
protocols (flags legacy SSLv3 / TLS 1.0 / 1.1), cipher info,
forward_secrecy, hsts, vulnerabilities (each with a vulnerable flag),
and a findings list.
http_headers_audit(host, port?, use_ssl=True, timeout?) -> dict
Returns grade, score, the observed security headers, and a findings
list with a recommendation per header. Defaults to HTTPS (port 443).
cookie_audit(host, port?, use_ssl=True, timeout?) -> dict
Follows the redirect chain from the host (capped at 10 hops, flagging any
HTTPS→HTTP downgrade) and audits every Set-Cookie seen for the Secure,
HttpOnly, and SameSite flags. Returns redirect_chain, final_url,
cookies (flags only — values are never returned), cookie_grade,
cookie_score, and a findings list.
cors_check(host, port?, use_ssl=True, timeout?) -> dict
Sends one GET with an untrusted Origin and inspects the
Access-Control-Allow-Origin / -Allow-Credentials response. Reflecting an
arbitrary Origin with credentials is high severity (any site can read
authenticated responses); a wildcard or trusted null origin are lesser issues.
Returns acao, allows_credentials, reflects_origin, wildcard, severity,
and findings.
tech_detect(host, port?, use_ssl=True, timeout?) -> dict
Fingerprints the technology stack behind a website from one HTTP GET. It
matches response headers, set cookies, the HTML body, and the
<meta name="generator"> tag against a signature table to identify the web
server, reverse proxy / CDN, WAF, programming language, web framework, CMS,
JavaScript framework, and analytics. Where a version is exposed it is captured
and flagged (info) — a precise version eases known-CVE lookup. Read-only.
Returns status, technology_count, technologies (each with name,
category, version when known, and evidence), and a findings list noting
any version disclosure.
http_methods_audit(host, port?, use_ssl=True, path="/", timeout?) -> dict
Reports which HTTP request methods a server allows and grades the risk. Enabled
write/diagnostic methods widen the attack surface: TRACE enables Cross-Site
Tracing (XST), and PUT / DELETE can allow file upload or deletion under
weak access control. Safe by design — it never sends a mutating request: it
actively probes only OPTIONS, HEAD, and TRACE (TRACE merely echoes), and reads
PUT / DELETE / PATCH / CONNECT from the OPTIONS Allow header as advertised,
never invoking them.
Returns grade, score, allow_header, advertised_methods, trace_enabled,
dangerous_methods, and a findings list (each with the method, severity, and a
recommendation).
well_known_audit(host, timeout?) -> dict
Fetches and parses security.txt (RFC 9116, tried at /.well-known/ then the
legacy path) and robots.txt. Returns security_txt (parsed fields, structural
issues, location) and robots_txt (sitemaps, disallow/allow paths,
user_agents), each with a present flag.
ip_info(host, timeout?) -> dict
Resolves the host's IP and looks it up in the public RDAP registry (via
rdap.org's bootstrap to the right RIR). Returns ip and rdap (handle,
name, country, cidr, org, abuse_email).
port_scan(host, ports?, timeout?) -> dict
TCP connect scan of a single host. ports is a string — "22,80,443", a
range "1-1024", or a mix — and omitting it scans a built-in common-port set.
Hard-capped at 1024 ports per call (single-host recon, not mass scanning).
Returns host, ip, scanned, open_count, and open_ports (port +
service). Scan only hosts you are authorized to assess.
License
Available Tools
13 toolscookie_auditA
Follow a host's redirect chain and audit the cookies it sets.
Walks each redirect hop (capped at 10) from the host, recording status and Location and flagging any HTTPS->HTTP downgrade. Every Set-Cookie seen along the way is checked for the Secure, HttpOnly, and SameSite flags and graded. Cookie values are never returned (they may be secrets).
Args: host: Hostname to inspect, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Start the chain over HTTPS (default True). timeout: Per-hop network timeout in seconds.
Returns: A dict with host, redirect_chain, final_url, cookies (flags only), cookie_grade, cookie_score, and a findings list.
Inputs: host (required), port, timeout, use_ssl.
cors_checkA
Probe a host's CORS policy with a crafted Origin and flag misconfigurations.
Sends one GET with an untrusted Origin header and inspects the Access-Control-Allow-Origin / -Allow-Credentials response. Reflecting an arbitrary Origin while allowing credentials is high severity (any site can read authenticated responses); a wildcard or a trusted 'null' origin are lesser issues. One request, read-only.
Args: host: Hostname to test, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Connect over HTTPS (default True). timeout: Network timeout in seconds.
Returns: A dict with host, port, test_origin, acao, allows_credentials, reflects_origin, wildcard, severity, and a findings list.
Inputs: host (required), port, timeout, use_ssl.
dns_reconA
Passive DNS/WHOIS reconnaissance for a domain using only public data.
Args: domain: The domain to inspect, e.g. "example.com". checks: Which checks to run. Any of "records", "whois", "email". Defaults to all three when omitted. timeout: Per-query network timeout in seconds.
Returns: A structured dict keyed by the requested checks: - records: DNS records grouped by type (A, AAAA, MX, NS, TXT, SOA, CNAME) - whois: parsed registration fields plus the raw WHOIS text - email: SPF / DMARC / DKIM posture, plus advisory MTA-STS, TLS-RPT, BIMI, and DNSSEC signals, with a graded assessment
Inputs: domain (required), checks, timeout.
http_headers_auditA
Audit a web server's HTTP security response headers and grade them.
Inspects headers such as Content-Security-Policy, Strict-Transport-Security (HSTS), X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and the COEP/COOP/CORP isolation headers. Returns a letter grade plus per-header findings with recommendations.
Args: host: Hostname or IP to audit, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Connect over HTTPS (default True). timeout: Per-connection network timeout in seconds.
Returns: A structured dict with: grade, score, the observed headers, and a findings list.
Inputs: host (required), port, timeout, use_ssl.
http_methods_auditA
Audit which HTTP request methods a server allows and grade the risk.
Enabled write/diagnostic methods widen the attack surface: TRACE enables Cross-Site Tracing (XST), and PUT / DELETE can allow file upload or deletion under weak access control. This is read-only and never sends a mutating request: it actively probes only OPTIONS, HEAD, and TRACE (TRACE merely echoes the request); PUT, DELETE, PATCH, and CONNECT are read from the OPTIONS Allow header and reported as advertised, never invoked.
Args: host: Hostname to audit, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Connect over HTTPS (default True). path: Request path to test (default "/"). timeout: Network timeout in seconds.
Returns: A dict with host, url, grade, score, allow_header, advertised_methods, trace_enabled, dangerous_methods, and a findings list. An error field on fetch failure.
Inputs: host (required), path, port, timeout, +1 more.
ip_infoA
Resolve a host and enrich its IP with RDAP registry ownership data.
Looks up the IP in the public RDAP registry (via rdap.org's bootstrap to the right RIR) and reports who owns the address block, the country, the CIDR range, and the abuse-reporting contact. Read-only registry query; nothing is sent to the target.
Args: host: Hostname or IP, e.g. "example.com". timeout: Per-request network timeout in seconds. Defaults high because rdap.org's bootstrap redirect can take 10-15s on its own.
Returns: A dict with host, ip, and rdap (handle, name, country, cidr, org, abuse_email). An unresolved host or RDAP failure is reported via an error field.
Inputs: host (required), timeout.
port_scanA
TCP connect scan of a single host, reporting open ports and services.
Scoped to a single host with a hard cap of 1024 ports per call — it is recon for one authorized target, not a mass scanner. Only scan hosts you own or have explicit permission to assess.
Args: host: Hostname or IP to scan, e.g. "example.com". ports: Ports to scan as a string: "22,80,443", a range "1-1024", or a mix "1-100,443,8080". Omit to scan a built-in set of common ports. timeout: Per-port connection timeout in seconds.
Returns: A dict with: host, ip, scanned (count), open_count, and open_ports (each with port and service). Returns an error field on bad input or DNS failure.
Inputs: host (required), ports, timeout.
recon_reportA
One-shot security posture report for a domain.
Runs DNS/email, TLS, HTTP-header, web-stack (tech_detect), and apex subdomain-takeover recon concurrently and returns a single graded overview: an overall grade (as weak as the weakest component, and capped at F if a live takeover is found), each component's grade, the actionable issues found, the detected technology stack, and any takeover risk. Use this for a quick full picture; call the individual tools for raw detail.
Args: domain: The domain to assess, e.g. "example.com". timeout: Per-connection network timeout in seconds.
Returns: A dict with domain, ip, overall_grade, summary, components (email / tls / headers, each with a grade and issues), a tech section (detected technologies + any version disclosure), and a takeover section when the apex is at risk. A check that errors is reported without breaking the rest.
Inputs: domain (required), timeout.
subdomain_enumA
Discover subdomains of a domain via DNS brute-force and/or CT logs.
Two complementary sources:
"dns": probe candidate labels with DNS A lookups (active but light, capped at 512 candidates). Returns resolved IPs.
"ct": query public Certificate Transparency logs (crt.sh) for every name ever certified for the domain — fully passive, and finds real hosts no wordlist would guess.
"both": run both and merge, marking which source saw each host.
Enumerate only domains you are authorized to assess.
Args: domain: The base domain, e.g. "example.com". wordlist: Comma-separated labels for the DNS source (e.g. "www,api,dev"). Omit to use a built-in list of common labels. Ignored for "ct". source: "dns" (default), "ct", or "both". timeout: Per-query DNS timeout in seconds (the CT query uses its own longer timeout since crt.sh can be slow).
Returns: A dict with domain, sources, found_count, and found (each with subdomain, the source(s) that saw it, and resolved ips when known).
Inputs: domain (required), source, timeout, wordlist.
subdomain_takeoverA
Check subdomains for a dangling-CNAME takeover risk.
A subdomain is takeover-prone when it CNAMEs to a third-party service (GitHub Pages, S3, Heroku, Azure, ...) whose resource was deleted or never claimed — anyone who registers that resource then controls the subdomain. For each host this resolves the CNAME, recognizes known takeover-prone services, fetches the page, and flags the provider's "unclaimed resource" fingerprint and/or a CNAME target that no longer resolves.
Read-only recon (DNS lookups + one HTTP GET per host). Pair it with subdomain_enum: enumerate first, then pass the interesting hosts here. Only check domains you are authorized to assess.
Args: hosts: One hostname or a comma-separated list, e.g. "blog.example.com,shop.example.com". Capped at 100 per call. timeout: Per-probe network timeout in seconds.
Returns: A dict with checked, vulnerable_count, and results (one entry per host with host, cname, service, status, vulnerable, severity, and detail). status is one of not_applicable, not_vulnerable, potential, dangling_cname, or vulnerable.
Inputs: hosts (required), timeout.
tech_detectA
Fingerprint the technology stack behind a website from one HTTP GET.
Passively identifies the web server, reverse proxy / CDN, WAF, programming language, web framework, CMS, JavaScript framework, and analytics by matching response headers, set cookies, the HTML body, and the meta-generator tag against a signature table. Disclosed versions are captured and flagged (a precise version eases known-CVE lookup). One read-only HTTP GET.
Args: host: Hostname to fingerprint, e.g. "example.com". port: TCP port. Defaults to 443 when use_ssl is True, else 80. use_ssl: Connect over HTTPS (default True). timeout: Network timeout in seconds.
Returns: A dict with host, url, status, technology_count, technologies (each with name, category, version when known, and evidence), and a findings list noting any version disclosure. An error field on fetch failure.
Inputs: host (required), port, timeout, use_ssl.
tls_checkA
Inspect a host's SSL/TLS configuration and grade it.
Checks the certificate (validity, expiry, key algorithm), supported protocol versions (flagging legacy SSLv3/TLS 1.0/1.1), cipher suites and forward secrecy, TLS compression, HSTS, OCSP stapling, and known protocol vulnerabilities. Returns a letter grade plus structured findings.
Args: host: Hostname or IP to inspect, e.g. "example.com". port: TLS port (default 443). timeout: Per-connection network timeout in seconds.
Returns: A structured dict with: grade, certificate, protocols, cipher info, forward_secrecy, hsts, vulnerabilities, and a findings list.
Inputs: host (required), port, timeout.
well_known_auditA
Fetch and parse a host's security.txt and robots.txt.
Both are standard public files. security.txt (RFC 9116) gives the vulnerability-disclosure contact, policy, and encryption key; its absence is itself a finding for a security-conscious site. robots.txt lists the paths the operator asks crawlers to skip — frequently admin/internal areas worth noting during recon.
Args: host: Hostname to inspect, e.g. "example.com". timeout: Per-request network timeout in seconds.
Returns: A dict with host, security_txt (present flag, parsed fields, structural issues, location), and robots_txt (present flag, sitemaps, disallow/allow paths, user_agents).
Inputs: host (required), timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool maps to a distinct reconnaissance technique — IP ownership, port scanning, DNS records/WHOIS, TLS, HTTP security headers, cookies, CORS, HTTP methods, subdomain enumeration, takeover checks, tech detection, well-known files, and the aggregate report — so misselection risk is low. The several *_audit tools are clearly differentiated by target (headers, cookies, methods, well-known files).
Names are uniformly lower_snake_case and mostly follow a predictable `<target>_<operation>` pattern (port_scan, dns_recon, tls_check, cookie_audit). A few entries use noun-like suffixes (ip_info, recon_report, subdomain_takeover) rather than a strict verb, so the convention is consistent but not perfectly uniform.
Thirteen tools is well within the ideal size for a security-recon server; every tool covers a distinct phase or technique and none feels redundant. This scope comfortably supports both targeted checks and the aggregate one-shot report.
The server covers the main recon lifecycle: discovery, DNS/WHOIS/email checks, TLS and HTTP posture, subdomain enumeration/takeover, tech fingerprinting, and a summary report. It omits deeper optional techniques such as banner grabbing, directory brute-forcing, and web vulnerability scanning, but those are reasonable workarounds rather than blocking gaps.
Maintenance
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Security scanner for AI agents and MCP servers: injection, jailbreak, tool abuse.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that lets AI agents use the Online Cyber Tools catalogue as a set of native MCP tools.1005 npm1MIT
- AlicenseAqualityBmaintenanceAn MCP server that provides passive and low-impact active reconnaissance tools for authorized bug bounty and security assessments, enabling LLMs to perform structured recon and generate reports.11Apache 2.0
- AlicenseCqualityDmaintenanceAI-powered security scanning MCP server that exposes 25+ professional tools, enabling penetration testing and security assessments through natural language interaction with AI agents like Claude Desktop.31MIT
- FlicenseNot gradedqualityDmaintenanceA production-style MCP server providing AI models with cybersecurity tools including port scanning, WHOIS, DNS, threat intelligence, CVE lookup, and more.-