dns_lookup
Resolve hostnames to IP addresses using DNS lookup
Query Shodan and the CVE database from a conversation — host and certificate lookups, network-range scans, and vulnerability search by product, KEV status or EPSS score.
LABSCO SUMMARY
CVE lookup, CVE search, CPE data, the newest records, the KEV list and EPSS ranking all run without a paid Shodan subscription — that alone is a usable vulnerability-research server. Search, network-range scanning, SSL lookup, IoT search, host counts and domain records are the paid endpoints, so plan on a Shodan membership if the question you are asking is about your own exposed surface rather than about published vulnerabilities.
An MCP server covering two Shodan surfaces at once: what is exposed on the internet (hosts, ports, certificates, DNS, IoT devices) and what is known to be broken (CVE records, CISA's Known Exploited Vulnerabilities, EPSS exploit-prediction scores). It also serves host records as an addressable resource at shodan://host/{ip}.
get_host_infosearch_shodan, get_host_countscan_network_range, search_iot_devicesget_ssl_info, dns_lookup, reverse_dns_lookup, get_domain_infolist_search_facets, list_search_filters, parse_search_tokenslist_ports, list_protocolsget_cve_info, search_cves, get_cpesget_newest_cves, get_kev_cves, get_cves_by_epssget_api_info, get_account_profile, get_my_ipA Shodan API key in SHODAN_API_KEY. The npm package name is mcp-shodan-server (0.2.0) and it is marked private, so install from a clone: npm install, npm run build, then point your client at the built index.js.
One command plus a key — npx -y github:Cyreslab-AI/shodan-mcp-server, then supply credentials
USE CASES
Look the CVE up in full, then check whether CISA has it on the Known Exploited Vulnerabilities list and where it sits on exploit-prediction score — the two signals that separate urgent from routine. None of this needs a paid Shodan plan.
Search CVEs by product or CPE string across a date range, sorted by EPSS, to get a ranked list rather than a chronological dump.
Pull the full Shodan record for an IP, resolve the hostnames behind it, and read the certificate on the domain it serves.
Sweep the CIDR block for devices and count matches for a query before pulling records, so a broad search does not turn into thousands of results.
List the available filters and facets, then parse a query you were given to see exactly which filters it applies before you run it.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
dns_lookupResolve hostnames to IP addresses using DNS lookup
get_account_profileGet account profile information including membership status and credits
get_api_infoGet information about your API plan including credits and limits
get_cpesGet Common Platform Enumeration (CPE) information for products
get_cve_infoGet detailed information about a specific CVE
get_cves_by_epssGet CVEs sorted by EPSS score (Exploit Prediction Scoring System)
get_domain_infoGet comprehensive domain information including subdomains and DNS records
get_host_countGet the count of hosts matching a search query without consuming query credits
get_host_infoGet detailed information about a specific IP address
get_kev_cvesGet Known Exploited Vulnerabilities (KEV) from CISA
get_my_ipGet your current IP address as seen from the Internet
get_newest_cvesGet the newest vulnerabilities from the CVE database
get_ssl_infoGet SSL certificate information for a domain
list_portsList all ports that Shodan crawls on the Internet
list_protocolsList all protocols that can be used when performing on-demand Internet scans
list_search_facetsList all available search facets that can be used with Shodan queries
list_search_filtersList all available search filters that can be used in Shodan queries
parse_search_tokensParse a search query to understand which filters and parameters are being used
reverse_dns_lookupGet hostnames for IP addresses using reverse DNS lookup
scan_network_rangeScan a network range (CIDR notation) for devices
search_cvesSearch for vulnerabilities with various filters
search_iot_devicesSearch for specific types of IoT devices
search_shodanSearch Shodan's database for devices and services
BEFORE YOU INSTALL
23 tools when we connected. search_shodan, scan_network_range, get_ssl_info, search_iot_devices, get_host_count and get_domain_info need a paid Shodan membership; the CVE tools are free. scan_network_range looks up existing Shodan data rather than scanning.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 23 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y github:Cyreslab-AI/shodan-mcp-server{
"mcpServers": {
"shodan": {
"command": "node",
"args": [
"<YOUR_PATH_TO_SHODAN_MCP_SERVER>/build/index.js"
],
"env": {
"SHODAN_API_KEY": "<YOUR_SHODAN_API_KEY>"
}
}
}
}