# mcp-shodan

> Community MCP server that lets an AI agent query Shodan host data, device search, DNS and the free Shodan CVEDB with your own API key.

Source: https://osinttools.io/tools/mcp-shodan/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** IP address, Domain
- **Category:** Infrastructure and domains
- **Pricing:** Freemium (Free MIT-licensed server; Shodan API key required, with paid plans for filtered search)
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** yes
- **Platforms:** MCP server (local, Node.js) · optional self-hosted HTTP
- **MCP server:** community wrapper; runs locally; data from https://osinttools.io/tools/shodan/
- **Website:** https://github.com/w0h1v/mcp-shodan
- **Docs:** https://w0h1v.github.io/mcp-shodan/
- **GitHub:** w0h1v/mcp-shodan, 192 stars · TypeScript · MIT · last commit 2026-11-23
- **Listed:** Nov 25
- **Last verified by an editor:** Nov 25, 2026

## What it does

mcp-shodan is an independent MCP server, first published under the BurtTheCoder account and now maintained at w0h1v/mcp-shodan, that connects an AI agent to the Shodan API and to Shodan's CVEDB. It offers eleven read-only tools: host lookups for an IP (ports, products, TLS details, cloud provider, banner history), device search with Shodan query syntax and facets, a count-only search, subdomains and DNS records for a domain, forward and reverse DNS in batch, and CVE and CPE lookups with CVSS, EPSS and CISA KEV status.

Investigators use it to ask plain-language questions about exposed infrastructure, such as what is running on an address or how many hosts of a product sit in one country, without writing Shodan queries by hand. It runs locally over stdio, or as an HTTP service; the README marks which tools spend query credits and which are free.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is an API.

## Features

- IP host lookups with banner history
- Shodan search with facets and paging
- Free count-only queries
- Subdomains and DNS records
- Batch forward and reverse DNS
- CVE, CPE and KEV lookups via CVEDB
- stdio or HTTP streaming transport

## Pros

- Covers both Shodan host data and vulnerability data in one server
- Marks which tools cost credits
- Read-only tools with input validation
- Actively maintained with CI tests

## Cons

- Needs your own Shodan API key; search filters need a paid membership or API plan
- Not affiliated with Shodan, and everything you look up is sent to Shodan
- The optional HTTP transport has no authentication and must be kept private

## When to use it

- Use it when you want an agent to profile an IP or domain from Shodan's index during an investigation.
- Use it when you need to size how widely a product or vulnerable version is exposed online.

## Quick start

Claude Code (Node.js 20+):

```
claude mcp add --transport stdio --env SHODAN_API_KEY=your-key shodan -- npx -y @burtthecoder/mcp-shodan
```

## Alternatives

- [Shodan](https://osinttools.io/tools/shodan/): Search engine for internet-connected hosts, indexing open ports, service banners and TLS certificates by IP. (Freemium · IP address, Domain · passive)
- [Censys](https://osinttools.io/tools/censys/): Internet-wide scan data for hosts, services and certificates, searchable through the Censys Platform. (Freemium · IP address, Domain · passive)
- [DNSRecon](https://osinttools.io/tools/dnsrecon/): Python DNS enumeration script: zone transfer checks, record enumeration, subdomain brute force and reverse lookups. (Open source · Domain, IP address · active · 3,097 GitHub stars)
- [Domain Digger](https://osinttools.io/tools/domain-digger/): Web app for DNS records, global DNS lookups, WHOIS, IP details and certificate history of a domain. (Open source · Domain, IP address · passive · 1,561 GitHub stars)
- [DomainKits](https://osinttools.io/tools/domainkits/): Domain data service whose hosted MCP server offers about 30 tools for WHOIS, DNS, newly registered domains, reverse NS and typosquats. (Freemium · Domain, IP address · passive)
- [DomainTools Whois Lookup](https://osinttools.io/tools/domaintools-whois/): Free WHOIS lookup for domains and IPs from DomainTools, with paid history and reverse WHOIS behind it. (Freemium · Domain, IP address · passive)

All alternatives to mcp-shodan in one table: https://osinttools.io/tools/mcp-shodan/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
