recon-kit-mcp
v0.13.0Read-only network & security recon tools (DNS, TLS, headers, CORS) for AI agents, each graded.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dns_recon
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 advisor…
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
checks | ||
timeout | number |
tls_check
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, ci…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | integer | |
timeout | number |
http_headers_audit
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…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | ||
timeout | number | |
use_ssl | boolean |
port_scan
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,…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
ports | ||
timeout | number |
subdomain_enum
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…
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
source | string | |
timeout | number | |
wordlist |
well_known_audit
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, str…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
timeout | number |
cookie_audit
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…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | ||
timeout | number | |
use_ssl | boolean |
ip_info
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 (hand…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
timeout | number |
cors_check
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…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | ||
timeout | number | |
use_ssl | boolean |
subdomain_takeover
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: enum…
| Parameter | Type | Description |
|---|---|---|
hosts * | string | |
timeout | number |
http_methods_audit
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:…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
path | string | |
port | ||
timeout | number | |
use_ssl | boolean |
tech_detect
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.…
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | ||
timeout | number | |
use_ssl | boolean |
recon_report
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 n…
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
timeout | number |