Shodan (Unofficial)
v0.2.2Unofficial 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" })
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | Shodan API key (account.shodan.io; paid membership required) |
ip * | string | IPv4 address to look up, e.g. "8.8.8.8" |
history | boolean | Include historical banners (optional, default false) |
shodan_host_search
Search Shodan for hosts matching <query> using Shodan search syntax (e.g. "apache country:US", "port:22 org:\"Google\""). Returns matching hosts with IP, port, org, hostnames, product, and location. Example: shodan_host_search({ query: "apache country:US", _apiKey: "your-key" })
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | Shodan API key (account.shodan.io; paid membership required) |
query * | string | Shodan search query. Supports filters like country:, org:, port:, product:, os:, e.g. "apache country:US" |
page | integer | Result page number (optional, 100 results/page, default 1) |
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" })
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | Shodan API key (account.shodan.io; paid membership required) |
query * | string | Shodan search query, e.g. "apache" or "port:443 country:DE" |
facets | string | Comma-separated facets for aggregation, e.g. "country:10" or "org:5,port:5" (optional) |