Shodan (Unofficial)

v0.2.2
io.github.pipeworx-io/shodan Checked 1 hour ago Published 14 days ago

Unofficial Shodan MCP — wraps the full Shodan REST API (api.shodan.io)

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

shodan_host

What's exposed on IP <ip> — open ports, services, and CVEs. Returns the full Shodan host profile: ports, hostnames, org/ISP, geolocation, OS, known vulnerabilities, and a per-service banner sample. Example: shodan_host({ ip: "8.8.8.8", _apiKey: "your-key" })

ParameterTypeDescription
_apiKey *stringShodan API key (account.shodan.io; paid membership required)
ip *stringIPv4 address to look up, e.g. "8.8.8.8"
historybooleanInclude historical banners (optional, default false)

shodan_host_count

Count hosts matching <query> with facet breakdown (free — this endpoint does not consume query credits). Returns the total match count plus optional facet aggregations (e.g. top countries, orgs, ports). Example: shodan_host_count({ query: "apache", facets: "country:10", _apiKey: "your-key" })

ParameterTypeDescription
_apiKey *stringShodan API key (account.shodan.io; paid membership required)
query *stringShodan search query, e.g. "apache" or "port:443 country:DE"
facetsstringComma-separated facets for aggregation, e.g. "country:10" or "org:5,port:5" (optional)