MCP server wrapper for Uncover — discovers exposed hosts via internet search APIs including Shodan, Censys, FOFA, Hunter, Quake, ZoomEye, Netlas, and CriminalIP.
Uncover is a host discovery tool by ProjectDiscovery that queries multiple internet search engines (Shodan, Censys, FOFA, Hunter, Quake, ZoomEye, Netlas, CriminalIP) to find exposed hosts and services. It provides a unified interface across all supported engines.
Uncover supports multiple search engines, each with its own API key. All keys are optional — the shodan-idb engine works without any API key.
| Engine | Environment Variable(s) | Get Key |
|---|---|---|
| Shodan | SHODAN_API_KEY | account.shodan.io |
| Shodan-IDB | None needed | — |
| Censys | CENSYS_API_ID + CENSYS_API_SECRET | search.censys.io/account/api |
| FOFA | FOFA_EMAIL + FOFA_KEY | en.fofa.info |
| Hunter | HUNTER_API_KEY | hunter.how |
| Quake | QUAKE_TOKEN | quake.360.net |
| ZoomEye | ZOOMEYE_API_KEY | zoomeye.org |
| Netlas | NETLAS_API_KEY | netlas.io |
| CriminalIP | CRIMINALIP_API_KEY | criminalip.io |
Summary. MCP server wrapper for Uncover — discovers exposed hosts via internet search APIs including Shodan, Censys, FOFA, Hunter, Quake, ZoomEye, Netlas, and CriminalIP.
Tools:
search_hosts — Search for exposed hosts using internet search engines (Shodan, Censys, FOFA, etc.).search_hostsSearch for exposed hosts using internet search engines (Shodan, Censys, FOFA, etc.).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Search query (e.g. "nginx", "Apache port:443", "org:Google") |
engines | string | No | "shodan-idb" | Comma-separated engines: shodan, shodan-idb, censys, fofa, hunter, quake, zoomeye, netlas, criminalip |
fields | string | No | "ip,port,host" | Comma-separated output fields |
limit | integer | No | 100 | Max results to return |
json_output | boolean | No | true | Return results in JSON format |
{
"success": true,
"output": [{"ip": "93.184.216.34", "port": 443, "host": "example.com"}]
}
Here are example prompts you can use with Claude (or any MCP client) when this tool is connected:
docker-compose up -d
docker run -i --rm \
-e SHODAN_API_KEY=your_key \
hackerdogs/uncover-mcp:latest
docker run -d -p 8107:8107 \
-e SHODAN_API_KEY=your_key \
-e MCP_TRANSPORT=streamable-http \
-e MCP_PORT=8107 \
hackerdogs/uncover-mcp:latest
Add to your Claude Desktop or Cursor MCP config:
{
"mcpServers": {
"uncover-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "SHODAN_API_KEY",
"-e", "CENSYS_API_ID",
"-e", "CENSYS_API_SECRET",
"-e", "FOFA_EMAIL",
"-e", "FOFA_KEY",
"-e", "HUNTER_API_KEY",
"-e", "QUAKE_TOKEN",
"-e", "ZOOMEYE_API_KEY",
"-e", "NETLAS_API_KEY",
"-e", "CRIMINALIP_API_KEY",
"-e", "MCP_TRANSPORT",
"hackerdogs/uncover-mcp:latest"
],
"env": {
"SHODAN_API_KEY": "<your-shodan-api-key>",
"CENSYS_API_ID": "<your-censys-api-id>",
"CENSYS_API_SECRET": "<your-censys-api-secret>",
"MCP_TRANSPORT": "stdio"
}
}
}
}
First, start the server using Docker Compose or docker run with HTTP mode (see Deploy above) — API keys are passed as environment variables at container start time. Then point your MCP client at the running server:
{
"mcpServers": {
"uncover-mcp": {
"url": "http://localhost:8107/mcp"
}
}
}
When to use HTTP mode: HTTP mode is ideal for shared/remote deployments, multi-user setups, and Hackerdogs scheduled prompts. The server runs as a long-lived process and accepts connections from multiple MCP clients concurrently.
| Variable | Default | Description |
|---|---|---|
SHODAN_API_KEY | — | Shodan API key |
CENSYS_API_ID | — | Censys API ID |
CENSYS_API_SECRET | — | Censys API secret |
FOFA_EMAIL | — | FOFA account email |
FOFA_KEY | — | FOFA API key |
HUNTER_API_KEY | — | Hunter API key |
QUAKE_TOKEN | — | Quake 360 API token |
ZOOMEYE_API_KEY | — | ZoomEye API key |
NETLAS_API_KEY | — | Netlas API key |
CRIMINALIP_API_KEY | — | CriminalIP API key |
MCP_TRANSPORT | stdio | Transport mode: stdio or streamable-http |
MCP_PORT | 8107 | Port for streamable-http transport |
The fastest way to get started is through Hackerdogs:
Give it a couple of minutes to go live. Then start querying by asking Hackerdogs to use the tool explicitly (e.g. "Use naabu to scan example.com"). If you don't specify, Hackerdogs will automatically choose the best tool for the job — it may choose this one on its own.
Want to contribute or chat with the team? Join our Discord.
docker build -t hackerdogs/uncover-mcp:latest .
./test.sh
1. Start the server in HTTP mode:
docker run -d --rm --name uncover-test -p 8107:8107 \
-e MCP_TRANSPORT=streamable-http \
-e SHODAN_API_KEY=your_key \
hackerdogs/uncover-mcp:latest
2. Initialize the MCP session:
SESSION_ID=$(curl -s -D - -X POST http://localhost:8107/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"0.1"}}}' \
2>&1 | grep -i mcp-session-id | awk '{print $2}' | tr -d '\r\n')
curl -s -X POST http://localhost:8107/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","method":"notifications/initialized"}'
3. Call a tool:
curl -s -X POST http://localhost:8107/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: $SESSION_ID" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_hosts","arguments":{"query":"nginx","engines":"shodan-idb","limit":10}}}'
4. Clean up:
docker stop uncover-test
You can run the uncover CLI in the same container by overriding the entrypoint to discover hosts via search engines without starting the MCP server.
Query:
docker run -i --rm --entrypoint uncover hackerdogs/uncover-mcp:latest -q example.com
Show help:
docker run -i --rm --entrypoint uncover hackerdogs/uncover-mcp:latest -h
docker pull hackerdogs/uncover-mcp:latest