shodan_host_count
ActiveTool of Shodan
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" })
Parameters schema
{
"type": "object",
"required": [
"query",
"_apiKey"
],
"properties": {
"query": {
"type": "string",
"description": "Shodan search query, e.g. \"apache\" or \"port:443 country:DE\""
},
"facets": {
"type": "string",
"description": "Comma-separated facets for aggregation, e.g. \"country:10\" or \"org:5,port:5\" (optional)"
},
"_apiKey": {
"type": "string",
"description": "Shodan API key (account.shodan.io; paid membership required)"
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
Shodan
https://github.com/pipeworx-io/mcp-shodan
1/7 registries