shodan_host_search

Pack: shodan · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/shodan_host_search for the schema, then POST the same URL with its arguments for the data.

Search Shodan for hosts matching 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” })

Parameters

NameTypeRequiredDescription
querystringyesShodan search query. Supports filters like country:, org:, port:, product:, os:, e.g. “apache country:US”
pageintegernoResult page number (optional, 100 results/page, default 1)
_apiKeystringyesShodan API key (account.shodan.io; paid membership required)

Example call

Arguments

{
  "query": "apache country:US",
  "_apiKey": "your-shodan-api-key"
}

curl

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_search","arguments":{"query":"apache country:US","_apiKey":"your-shodan-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('shodan_host_search', {
  "query": "apache country:US",
  "_apiKey": "your-shodan-api-key"
});

More examples

{
  "query": "port:22 org:\"Google\"",
  "page": 1,
  "_apiKey": "your-shodan-api-key"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the shodan pack
{
  "mcpServers": {
    "shodan": {
      "url": "https://gateway.pipeworx.io/shodan/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 30, 2026