shodan_host_search

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

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, 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 August 15, 2026