shodan_host_count

Pack: shodan · Endpoint: https://gateway.pipeworx.io/shodan/mcp

Count hosts matching 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

NameTypeRequiredDescription
querystringyesShodan search query, e.g. “apache” or “port:443 country:DE”
facetsstringnoComma-separated facets for aggregation, e.g. “country:10” or “org:5,port:5” (optional)
_apiKeystringyesShodan API key (account.shodan.io; paid membership required)

Example call

curl -X POST https://gateway.pipeworx.io/shodan/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"shodan_host_count","arguments":{}}}'

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "shodan": {
      "url": "https://gateway.pipeworx.io/shodan/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 2, 2026