HUB
Sign inSign up
vulnx-mcp logo

hackerdogs/vulnx-mcp

By hackerdogs

•Updated 5 months ago

Vulnx MCP Server

Image
0

287

hackerdogs/vulnx-mcp repository overview

Hackerdogs
hackerdogs ⁠

⁠Vulnx MCP Server

MCP server wrapper for Vulnx⁠ — next-generation vulnerability search and analysis (successor to cvemap).

⁠What is Vulnx?

Vulnx is the successor to cvemap⁠ from ProjectDiscovery, providing enhanced vulnerability search capabilities with subcommands for searching, filtering, and analyzing vulnerability data by product, vendor, severity, CVSS score, and more.

⁠Prerequisites

Vulnx works without an API key but is rate-limited to 10 requests/min without one. A free ProjectDiscovery Cloud Platform (PDCP) API key is recommended.

Get your free key at: cloud.projectdiscovery.io⁠

export PDCP_API_KEY=your_api_key_here

Summary. MCP server wrapper for Vulnx⁠ — next-generation vulnerability search and analysis (successor to cvemap).

Tools:

  • search_vulnerabilities — Search vulnerabilities with filters (product, vendor, severity, CVSS score).
  • get_vulnerability_details — Get details for specific CVE(s).
  • list_search_filters — List available search filter fields. No parameters.
  • analyze_vulnerabilities — Aggregate vulnerabilities by a field.

⁠Tools Reference

⁠search_vulnerabilities

Search vulnerabilities with filters (product, vendor, severity, CVSS score).

ParameterTypeRequiredDefaultDescription
querystringNo—Search query (e.g. "apache && severity:high")
productstringNo—Filter by product name
vendorstringNo—Filter by vendor name
severitystringNo—"low", "medium", "high", or "critical"
cvss_scorestringNo—CVSS threshold (e.g. ">=7.0")
limitintegerNo25Max results
detailedbooleanNofalseInclude detailed information
Example response
[{"cve_id": "CVE-2024-1234", "severity": "critical", "cvss_score": 9.8, "product": "apache http server"}]
⁠get_vulnerability_details

Get details for specific CVE(s).

ParameterTypeRequiredDefaultDescription
cve_idsstringYes—Comma-separated CVE IDs (e.g. "CVE-2024-1234")
⁠list_search_filters

List available search filter fields. No parameters.

⁠analyze_vulnerabilities

Aggregate vulnerabilities by a field.

ParameterTypeRequiredDefaultDescription
fieldstringYes—Field to aggregate by (e.g. "severity", "vendor")
querystringNo—Optional search query to narrow results

⁠Example Prompts

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

  • "Search for all critical vulnerabilities in Apache Log4j."
  • "Get the full details for CVE-2023-44228 including affected products and remediation."
  • "Find high-severity vulnerabilities affecting 'wordpress' with CVSS >= 8.0."
  • "What are the most recent critical vulnerabilities across all vendors?"
  • "Analyze the severity breakdown of vulnerabilities for the vendor 'microsoft'."
  • "Search for vulnerabilities related to 'remote code execution' in nginx."

⁠Deploy

docker-compose up -d
⁠Docker Run (stdio mode)
docker run -i --rm -e PDCP_API_KEY=your_key hackerdogs/vulnx-mcp:latest
⁠Docker Run (HTTP streamable mode)
docker run -d -p 8116:8116 \
  -e PDCP_API_KEY=your_key \
  -e MCP_TRANSPORT=streamable-http \
  -e MCP_PORT=8116 \
  hackerdogs/vulnx-mcp:latest

⁠MCP Client Configuration

⁠Stdio mode (default)

Add to your Claude Desktop or Cursor MCP config:

{
  "mcpServers": {
    "vulnx-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "PDCP_API_KEY",
        "-e", "MCP_TRANSPORT",
        "hackerdogs/vulnx-mcp:latest"
      ],
      "env": {
        "PDCP_API_KEY": "<your-projectdiscovery-api-key>",
        "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": {
    "vulnx-mcp": {
      "url": "http://localhost:8116/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
PDCP_API_KEY—ProjectDiscovery API key (optional but recommended — rate-limited without it)
MCP_TRANSPORTstdioTransport mode: stdio or streamable-http
MCP_PORT8116Port for streamable-http transport
VULNX_BINvulnxPath to vulnx binary

⁠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/vulnx-mcp:latest .

⁠Testing

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

1. Start the server in HTTP mode:

docker run -d --rm --name vulnx-test -p 8116:8116 \
  -e MCP_TRANSPORT=streamable-http \
  -e PDCP_API_KEY=your_key \
  hackerdogs/vulnx-mcp:latest

2. Initialize the MCP session:

SESSION_ID=$(curl -s -D - -X POST http://localhost:8116/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:8116/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:8116/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_vulnerabilities","arguments":{"product":"apache","severity":"critical","limit":5}}}'

4. Clean up:

docker stop vulnx-test

⁠Running the tool directly (bypassing MCP)

You can run the vulnx CLI in the same container by overriding the entrypoint to scan for vulnerabilities without starting the MCP server.

Scan target:

docker run -i --rm --entrypoint vulnx hackerdogs/vulnx-mcp:latest -u https://example.com

Show help:

docker run -i --rm --entrypoint vulnx hackerdogs/vulnx-mcp:latest -h
Tag summary
Recent tags
Content type
Image
Digest
sha256:bc68db129…
Size
88.9 MB
Last updated
5 months ago
docker pull hackerdogs/vulnx-mcp:latest