FOFA Search Stats
fofa_search_statsAggregate FOFA search result statistics by specified fields like protocol, domain, or port to gain insights from search data.
Instructions
Aggregate FOFA search results with /api/v1/search/stats. Calls are throttled to one request every 5 seconds in this MCP process. Supported fields: protocol, domain, port, title, os, server, country, asn, org, asset_type, fid, icp.
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": "fofa_search_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | FOFA query to encode as qbase64. | |
| fields | No | Comma-separated aggregation fields, for example protocol,domain,port. | protocol,domain,port |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||