HUB
Sign inSign up
uncover-mcp logo

hackerdogs/uncover-mcp

By hackerdogs

•Updated 5 months ago

Uncover MCP Server

Image
0

295

hackerdogs/uncover-mcp repository overview

Hackerdogs
hackerdogs ⁠

⁠Uncover MCP Server

MCP server wrapper for Uncover⁠ — discovers exposed hosts via internet search APIs including Shodan, Censys, FOFA, Hunter, Quake, ZoomEye, Netlas, and CriminalIP.

⁠What is Uncover?

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.

⁠Prerequisites

Uncover supports multiple search engines, each with its own API key. All keys are optional — the shodan-idb engine works without any API key.

EngineEnvironment Variable(s)Get Key
ShodanSHODAN_API_KEYaccount.shodan.io⁠
Shodan-IDBNone needed—
CensysCENSYS_API_ID + CENSYS_API_SECRETsearch.censys.io/account/api⁠
FOFAFOFA_EMAIL + FOFA_KEYen.fofa.info⁠
HunterHUNTER_API_KEYhunter.how⁠
QuakeQUAKE_TOKENquake.360.net⁠
ZoomEyeZOOMEYE_API_KEYzoomeye.org⁠
NetlasNETLAS_API_KEYnetlas.io⁠
CriminalIPCRIMINALIP_API_KEYcriminalip.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.).

⁠Tools Reference

⁠search_hosts

Search for exposed hosts using internet search engines (Shodan, Censys, FOFA, etc.).

ParameterTypeRequiredDefaultDescription
querystringYes—Search query (e.g. "nginx", "Apache port:443", "org:Google")
enginesstringNo"shodan-idb"Comma-separated engines: shodan, shodan-idb, censys, fofa, hunter, quake, zoomeye, netlas, criminalip
fieldsstringNo"ip,port,host"Comma-separated output fields
limitintegerNo100Max results to return
json_outputbooleanNotrueReturn results in JSON format
Example response
{
  "success": true,
  "output": [{"ip": "93.184.216.34", "port": 443, "host": "example.com"}]
}

⁠Example Prompts

Here are example prompts you can use with Claude (or any MCP client) when this tool is connected:

  • "Find exposed Apache servers on the internet using Shodan."
  • "Search for hosts running Elasticsearch on port 9200 that are publicly accessible."
  • "Look up all exposed assets belonging to the organization 'Tesla' using shodan-idb."
  • "Find internet-facing Redis instances with no authentication."
  • "Search Censys for hosts with 'nginx' on port 443 and show me the IPs and hostnames."
  • "Find exposed Kubernetes API servers (port 6443) on the public internet."

⁠Deploy

docker-compose up -d
⁠Docker Run (stdio mode)
docker run -i --rm \
  -e SHODAN_API_KEY=your_key \
  hackerdogs/uncover-mcp:latest
⁠Docker Run (HTTP streamable mode)
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

⁠MCP Client Configuration

⁠Stdio mode (default)

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"
      }
    }
  }
}
⁠HTTP mode (streamable-http)

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.

⁠Environment Variables

VariableDefaultDescription
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_TRANSPORTstdioTransport mode: stdio or streamable-http
MCP_PORT8107Port for streamable-http transport

⁠Installing in Hackerdogs

The fastest way to get started is through Hackerdogs⁠:

  1. Log in to your Hackerdogs account.
  2. Go to the Tools Catalog.
  3. Search for the tool by name (e.g. "nuclei", "naabu", "julius").
  4. Expand the tool card and click Install — you're ready to go.

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.

  1. Vendor API key required? Add your key in the config environment variable field before clicking Install. Your key will be encrypted at rest.
  2. Enable / Disable the tool anytime from the Enabled Tools page.
  3. Need to update a key or parameter? Go to My Tools → toggle Show Decrypted Values → edit → Save.

Want to contribute or chat with the team? Join our Discord⁠.

⁠Build

docker build -t hackerdogs/uncover-mcp:latest .

⁠Testing

⁠Automated tests
./test.sh
⁠Test directly with Docker

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

⁠Running the tool directly (bypassing MCP)

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
Tag summary
Recent tags
Content type
Image
Digest
sha256:86e54efd7…
Size
88.1 MB
Last updated
5 months ago
docker pull hackerdogs/uncover-mcp:latest