shodan-search
Search Shodan's database for hosts matching a query, with filters for port, country, product, vulnerability, and more.
Instructions
Search Shodan's database for hosts matching a query.
Uses Shodan's powerful search syntax to find internet-connected devices and services. Supports filters for port, country, organization, product, version, and more. Requires a paid Shodan API key.
IMPORTANT: Only query targets you are authorized to assess.
Returns: ShodanSearchResult with matching hosts and total result count.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "shodan-search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Results page number (1-indexed). Each page returns up to 100 results. | |
| query | Yes | Shodan search query. Examples: "apache port:8080 country:US", "product:nginx", "ssl.cert.subject.CN:example.com", "vuln:CVE-2021-44228". | |
| timeout | No | HTTP request timeout in seconds. Default: 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query that was executed | |
| total | No | Total number of matching results in Shodan | |
| matches | No | Matching hosts from the search |