shodan
v1.0.41MCP 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.
| Parameter | Type | Description |
|---|---|---|
ip * | The IP address (IPv4 or IPv6) to query. | |
history | boolean | Include 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… |
minify | boolean | Return only basic host information and the port list, without banners. |
shodan_search
Search Shodan's database of internet-connected devices. Returns detailed information about matching devices including services, vulnerabilities, and geographic distribution. Supports advanced search filters and returns facet statistics (default: by country). Costs 1 query credit when the query uses filters, plus 1 per page beyond the first. Use shodan_count (free) to get totals and facets without results.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query for Shodan. |
facets | string | Comma-separated facets for summary statistics, optionally with a count, e.g. 'country:10,org,port'. Use search_filters to list valid facets. |
max_results | integer | Maximum results to return (1-100; one Shodan page). |
page | integer | Result page number (100 results per page). Pages past the first cost 1 query credit each. |
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).
| Parameter | Type | Description |
|---|---|---|
cve * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
hostnames * | array | List 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.
| Parameter | Type | Description |
|---|---|---|
ips * | array | List 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.
| Parameter | Type | Description |
|---|---|---|
product * | string | The name of the product to search for CPEs. |
count | boolean | If true, returns only the count of matching CPEs. |
limit | integer | Maximum number of CPEs to return (max 1000). |
skip | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
count | boolean | If true, returns only the count of matching CVEs. |
cpe23 | string | The CPE version 2.3 identifier (format: cpe:2.3:part:vendor:product:version). |
end_date | string | End date for filtering CVEs (format: YYYY-MM-DDTHH:MM:SS). |
is_kev | boolean | If true, returns only CVEs with the KEV flag set. |
limit | integer | Maximum number of CVEs to return (max 1000). |
product | string | The name of the product to search for CVEs. |
skip | integer | Number of CVEs to skip (for pagination). |
sort_by_epss | boolean | If true, sorts CVEs by EPSS score in descending order. |
start_date | string | Start 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query for Shodan. |
facets | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain to look up, e.g. example.com. |
history | boolean | Include historical DNS data. |
page | integer | Result page number. |
type | string | Only 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.