An MCP server that gives AI coding agents (Claude Code, Codex, Cline) safe, structured network & security reconnaissance tools — DNS, WHOIS, TLS, HTTP headers, and port scanning. For authorized testing and education only.
Project description
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 |
|---|---|
recon_report |
Start here. One call → DNS, TLS, and HTTP headers checked together, with an overall grade |
dns_recon |
DNS + WHOIS + email security (SPF/DMARC/DKIM), graded |
subdomain_enum |
Discover subdomains via DNS (≤512 candidates/call), built-in or custom wordlist |
tls_check |
Certificate, protocols, ciphers, and known TLS vulnerabilities, graded |
http_headers_audit |
HTTP security headers (CSP, HSTS, X-Frame-Options, …), graded |
port_scan |
TCP port scan of one host (≤1024 ports/call), open ports + services |
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, tls_check,
http_headers_audit, or port_scan directly.
Install
Requires Python ≥ 3.10.
Recommended — no clone, via uv:
uvx recon-kit-mcp
Or 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-mcp
Or 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, and HTTP-header checks together and returns overall_grade
(as weak as the weakest component), a one-line summary, and components
(email / tls / headers), each with its grade and actionable issues.
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 records
- whois — parsed registration fields + raw WHOIS text
- email — SPF, DMARC, and DKIM posture, plus a graded
assessment(letter grade A–F, a summary, and per-check findings with severity and a recommended fix)
checks is any subset of ["records", "whois", "email"]; omit it to run all.
subdomain_enum(domain, wordlist?, timeout?) -> dict
Resolves candidate subdomains via DNS and returns the ones that exist. wordlist
is comma-separated labels ("www,api,dev"); omit it for a built-in common list.
Capped at 512 candidates per call. Returns checked, found_count, and found
(each with subdomain and its ips).
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).
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recon_kit_mcp-0.5.0.tar.gz.
File metadata
- Download URL: recon_kit_mcp-0.5.0.tar.gz
- Upload date:
- Size: 37.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8f6a960ccff70f030d66353db36e0f759bc4b16293b2db244df56c3b7f99184
|
|
| MD5 |
43ddfde050c96a11cb37ae34a8000ff5
|
|
| BLAKE2b-256 |
d859da6618b8c8f6870d2b5101681cfba335223d14c443627d02e456a6c89b38
|
Provenance
The following attestation bundles were made for recon_kit_mcp-0.5.0.tar.gz:
Publisher:
publish.yml on nan786521/recon-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
recon_kit_mcp-0.5.0.tar.gz -
Subject digest:
d8f6a960ccff70f030d66353db36e0f759bc4b16293b2db244df56c3b7f99184 - Sigstore transparency entry: 1689695297
- Sigstore integration time:
-
Permalink:
nan786521/recon-mcp@50c7ed1dcbb2aa4b85657bd890e837e56d24d26d -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/nan786521
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c7ed1dcbb2aa4b85657bd890e837e56d24d26d -
Trigger Event:
push
-
Statement type:
File details
Details for the file recon_kit_mcp-0.5.0-py3-none-any.whl.
File metadata
- Download URL: recon_kit_mcp-0.5.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c519fa77801c556e54d6214e7180c91679cc6bfcf29af006d33339594ca041c0
|
|
| MD5 |
785f629e30d3ee42799ae509de5d3af7
|
|
| BLAKE2b-256 |
1d3ad51299fe9983fc4802195e05e0c5e16b48c9255ddba7c61e99cab0f7ac5f
|
Provenance
The following attestation bundles were made for recon_kit_mcp-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on nan786521/recon-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
recon_kit_mcp-0.5.0-py3-none-any.whl -
Subject digest:
c519fa77801c556e54d6214e7180c91679cc6bfcf29af006d33339594ca041c0 - Sigstore transparency entry: 1689695340
- Sigstore integration time:
-
Permalink:
nan786521/recon-mcp@50c7ed1dcbb2aa4b85657bd890e837e56d24d26d -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/nan786521
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c7ed1dcbb2aa4b85657bd890e837e56d24d26d -
Trigger Event:
push
-
Statement type: