shodan

v1.0.41
io.github.w0h1v/shodan Checked 1 hour ago Published 13 days ago

MCP server for Shodan API — device search, IP and domain recon, DNS, and CVE/CPE queries.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ip_lookup

Retrieve comprehensive information about an IP address, including geolocation, operating system, open ports, running services (product, version, CPE), known vulnerabilities (CVEs), SSL certificates, hostnames, and cloud provider details if available. Returns service banners and HTTP server information when present. Optional history returns historical banners; minify omits banners.

ParameterTypeDescription
ip *The IP address (IPv4 or IPv6) to query.
historybooleanInclude historical banners. Adds a 'Banner History' with one row per port, product and version, showing first/last seen and how many times it was observed; Services still shows the latest banner per p…
minifybooleanReturn only basic host information and the port list, without banners.

cve_lookup

Query detailed vulnerability information from Shodan's CVEDB. Returns comprehensive CVE details including CVSS scores (v4/v3/v2), EPSS probability and ranking, KEV status, proposed mitigations, ransomware associations, and affected products (CPEs).

ParameterTypeDescription
cve *stringThe CVE identifier to query (format: CVE-YYYY-NNNNN).

dns_lookup

Resolve domain names to IP addresses using Shodan's DNS service. Supports batch resolution of multiple hostnames in a single query. Returns IP addresses mapped to their corresponding hostnames.

ParameterTypeDescription
hostnames *arrayList of hostnames to resolve.

reverse_dns_lookup

Perform reverse DNS lookups to find hostnames associated with IP addresses. Supports batch lookups of multiple IP addresses in a single query. Returns all known hostnames for each IP address, with clear indication when no hostnames are found.

ParameterTypeDescription
ips *arrayList of IP addresses to perform reverse DNS lookup on.

cpe_lookup

Search for Common Platform Enumeration (CPE) entries by product name in Shodan's CVEDB. Supports pagination and can return either full CPE details or just the total count. Useful for identifying specific versions and configurations of software and hardware.

ParameterTypeDescription
product *stringThe name of the product to search for CPEs.
countbooleanIf true, returns only the count of matching CPEs.
limitintegerMaximum number of CPEs to return (max 1000).
skipintegerNumber of CPEs to skip (for pagination).

cves_by_product

Search for vulnerabilities affecting specific products or CPEs. Supports filtering by KEV status, sorting by EPSS score, date ranges, and pagination. Can search by product name or CPE 2.3 identifier. Returns detailed vulnerability information including severity scores and impact assessments.

ParameterTypeDescription
countbooleanIf true, returns only the count of matching CVEs.
cpe23stringThe CPE version 2.3 identifier (format: cpe:2.3:part:vendor:product:version).
end_datestringEnd date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS).
is_kevbooleanIf true, returns only CVEs with the KEV flag set.
limitintegerMaximum number of CVEs to return (max 1000).
productstringThe name of the product to search for CVEs.
skipintegerNumber of CVEs to skip (for pagination).
sort_by_epssbooleanIf true, sorts CVEs by EPSS score in descending order.
start_datestringStart date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS).

shodan_count

Get the total number of Shodan results for a query, with optional facet breakdowns (e.g. by country, org, port). Free: does not consume query credits. Use search_filters to list valid filters and facets.

ParameterTypeDescription
query *stringSearch query for Shodan.
facetsstringComma-separated facets, optionally with a count, e.g. 'country:10,org,port'.

domain_info

Get subdomains and DNS records for a domain from Shodan. Costs 1 query credit per lookup.

ParameterTypeDescription
domain *stringThe domain to look up, e.g. example.com.
historybooleanInclude historical DNS data.
pageintegerResult page number.
typestringOnly return DNS records of this type.

api_info

Show the Shodan API plan, remaining query and scan credits, monitored IPs, and usage limits for the configured API key. Free: does not consume credits.

search_filters

List the search filters and facets Shodan supports. Use this to build valid shodan_search and shodan_count queries and facets. Free: does not consume credits.