nirikshak
Detects subdomain takeover vulnerabilities by checking for dangling GitHub Pages sites.
Detects subdomain takeover vulnerabilities by checking for dangling Heroku applications.
Detects subdomain takeover vulnerabilities by checking for dangling Netlify sites.
Click on "Install 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., "@nirikshakscan example.com for subdomain takeovers and header changes"
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.
nirikshak
निरीक्षक — someone who watches, observes, keeps an eye on something over time. That's basically what this does, just for your domain's attack surface instead of a person.
So: nirikshak. It runs the standard passive recon checks, but it remembers the last scan and tells you what changed, and it's built MCP-native from the start so Claude (or any MCP client) can drive it directly, not just as a CLI you wrap.
what it actually does
Checks security headers (HSTS, CSP, X-Frame-Options, etc) against a real page fetch, not a hardcoded list
Pulls the TLS cert and flags anything expiring soon or running an old protocol version
Passive subdomain enumeration off certificate transparency logs (crt.sh) — doesn't touch the target at all for this
WHOIS/RDAP lookup for registration + expiry info
Basic tech stack fingerprinting (CMS, framework, CDN)
Subdomain takeover detection — resolves CNAMEs on discovered subdomains and checks if they point at an unclaimed cloud resource (dangling GitHub Pages, S3 bucket, Heroku app, Azure, Netlify, etc). This is the classic "forgot to delete the DNS record after decommissioning the service" bug and it's a real bounty-worthy finding
Snapshot + diff engine — every scan is saved locally (
~/.nirikshak/snapshots/), and the next scan tells you exactly what's new, what disappeared, what regressed. New subdomain shows up → flagged. Header that was there last week is gone now → flagged. Cert crossed the 30-day mark → flagged.A 0-100 exposure score with a letter grade so you don't have to read the whole report to know if things are fine or not
One active tool (
port_scan, nmap-backed) that's opt-in only and requires you to actually confirm you're authorized to scan the target
Everything except port_scan is 100% passive — it either does what a browser would do (fetch a page, do a TLS handshake) or queries a public third-party dataset (crt.sh, RDAP). Nothing here brute-forces, exploits, or attacks anything.
Related MCP server: attack-surface-mcp-server
example output
$ python cli.py scan github.com
nirikshak — surface report for github.com
Score: 81/100 (grade B)
Findings:
- 4 Missing security header: Permissions-Policy
- 15 TLS certificate expires in 28 days
Since last scan:
[WARNING] Security header(s) that were present before are now missing: Content-Security-Policy.
[INFO] 1 new subdomain(s) appeared since last scan — worth confirming these are yours.
Attack surface:
Subdomains found: 3
Tech stack: react(that's a real run against github.com's public headers, not a mockup — the diff part was simulated for the demo but the scoring/header/TLS numbers are actually pulled live)
install
git clone https://github.com/ewwhardik/nirikshak.git
cd nirikshak
pip install -r requirements.txtrun it from the terminal
python cli.py scan example.com
python cli.py scan example.com --json # raw output if you want to pipe it somewhere
python cli.py scan example.com --no-takeoveror hook it up to Claude / any MCP client
{
"mcpServers": {
"nirikshak": {
"command": "python",
"args": ["/absolute/path/to/nirikshak/mcp_server.py"]
}
}
}There's also a Claude Skill in skill/SKILL.md — drop it in your skills folder and Claude will know to run full_surface_scan and write the report in plain English instead of dumping raw JSON at you.
how this compares to what's already out there
Not trying to pretend this replaces Amass or SpiderFoot, those are way more mature and have way more data sources. Being honest about where this fits:
Amass / theHarvester / Recon-ng | SpiderFoot | nirikshak | |
Passive recon (subs, headers, whois, tech) | yes | yes, way more sources | yes, smaller source list |
Remembers previous scans & tells you what changed | no | no | yes |
Subdomain takeover detection | some forks have it | no | yes |
Usable as an MCP tool by an AI agent out of the box | no | no | yes |
Setup | CLI, some config | needs a server/DB for the full experience |
|
If you need deep OSINT with 200 data sources, use SpiderFoot. If you want something lightweight that tells you what actually changed since last Tuesday and that an AI agent can run for you without you touching a terminal, that's this.
roadmap / stuff I haven't gotten to yet
Scheduled scans (cron wrapper, so it actually monitors instead of you remembering to run it)
Email notification / webhook when a new critical finding shows up
More takeover fingerprints (the list right now covers the common ones, not exhaustive)
Basic web dashboard instead of just CLI/JSON output
IPv6 support in the port scanner
PRs welcome if you want to knock any of these out.
⚠️ before you scan anything
Only run this against domains you own or have explicit permission to test. port_scan especially — that one's active, everything else just reads public data.
license
MIT, see LICENSE.
— Hardik
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityBmaintenancePassive reconnaissance MCP server powered by Shodan, enabling host lookups, search, and DNS queries gated against HackerOne scope snapshots.
- Alicense-qualityBmaintenancePassive external attack-surface mapping server that discovers subdomains, DNS records, TLS posture, HTTP headers, and registration data via public sources like CT logs, Shodan, and RDAP/WHOIS, enabling security reconnaissance without active scanning.461Apache 2.0
- AlicenseAqualityBmaintenanceA scope-aware bug-bounty & reconnaissance MCP server that works out of the box on the Python standard library and augments itself with your favourite CLI tools when they're present.22MIT
- 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
Related MCP Connectors
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
Scans MCP servers for tool poisoning, prompt injection and supply chain risks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ewwhardik/nirikshak'
If you have feedback or need assistance with the MCP directory API, please join our Discord server