VulnWatch

v1.1.0
tech.vulnwatch/vulnwatch Checked 19 hours ago Published 1 day ago

VulnWatch scans and phishing checks for AI agents: stats, history, status, reports, safe domains.

Model Context Protocol (MCP) server for VulnWatch — a read-mostly bridge that lets AI agents (Claude Code, Cursor, Codex, …) query the VulnWatch Public Developer API. The fastest way to use VulnWatch from any MCP client is the hosted remote server — no Python, no pip, no local process: Authenticate with a VulnWatch API token (Dashboard → API tokens) as a bearer token.

Summary extracted from the README.

mcp-server-vulnwatch

Model Context Protocol (MCP) server for VulnWatch — a read-mostly bridge that lets AI agents (Claude Code, Cursor, Codex, …) query the VulnWatch Public Developer API.

VulnWatch is a vulnerability scanning platform. This server is a thin client over its HTTPS API — the scanning engine and all data stay behind the API. No vulnerability data ever leaves the platform through this bridge.

The fastest way to use VulnWatch from any MCP client is the hosted remote server — no Python, no pip, no local process:

https://mcp.vulnwatch.tech/mcp

Authenticate with a VulnWatch API token (Dashboard → API tokens) as a bearer token. Full docs, copy-paste configs for Claude Desktop / Claude Code / Cursor / Windsurf and an FAQ live at vulnwatch.tech/mcp; machine-readable metadata is served at /.well-known/mcp/server.json (MCP Registry name: tech.vulnwatch/vulnwatch). The server is also published in the official MCP Registry, so registry-aware MCP clients and directories can discover and install it automatically.

Example client config (remote):

{
  "mcpServers": {
    "vulnwatch": {
      "type": "streamable_http",
      "url": "https://mcp.vulnwatch.tech/mcp",
      "headers": { "Authorization": "Bearer vw_YOUR_TOKEN" }
    }
  }
}

This repository remains the self-hosted Python bridge for the core scan tools — use it if you want to run the server locally (stdio) or inspect the code. It ships the core five scan tools (vw_get_stats, vw_scan_history, vw_scan_status, vw_scan_report, vw_submit_scan).

The hosted server tracks the VulnWatch API and today exposes fourteen tools (registry entry live as 1.0.3):

  • Scan — vw_get_stats, vw_scan_history, vw_scan_status, vw_scan_report.
  • Phishing (read) — vw_phish_history, vw_phish_status, vw_phish_report, vw_phish_monitoring, vw_phish_monitoring_lookup, vw_phish_safe_domains.
  • Submission (off by default) — vw_submit_scan (spends a scan credit), vw_phish_check (starts a phishing check), vw_phish_mark_safe, vw_phish_unmark_safe.

Ten of these are read-only and enabled by default. The four that create work (vw_submit_scan, vw_phish_check, vw_phish_mark_safe, vw_phish_unmark_safe) stay behind operator flags (MCP_ALLOW_SCAN / MCP_ALLOW_PHISH) until the account explicitly enables them. See the Tools section for the full hosted surface.

Features

  • Read-mostly by design. Account quota, scan history, per-scan status and full JSON reports are available out of the box. Submitting a scan is a side-effecting action that is disabled by default (see Safety).
  • Ownership-isolated. Every call is authenticated with your dashboard personal access token. You only ever see your own scans.
  • Offline-safe. With no token configured the server refuses to touch the network and returns a clear error instead.

Tools

The hosted remote server exposes the full VulnWatch surface (14 tools). Read-only tools are enabled by default; submission tools are gated behind operator flags and appear only when the server host enables them.

Tool Access Default Description
vw_get_stats read ✅ live Monthly quota (used/remaining), concurrency, totals, credits
vw_scan_history read ✅ live Paginated list of your scans; optional status filter
vw_scan_status read ✅ live Status of one scan by check_uuid (in_progress/completed/failed)
vw_scan_report read ✅ live Full JSON vulnerability report for a completed scan
vw_phish_history read ✅ live Paginated list of your phishing domain checks
vw_phish_status read ✅ live Live progress of one phishing check + top findings
vw_phish_report read ✅ live Full findings list of a phishing check (pagination & filters)
vw_phish_monitoring read ✅ live Brand domains this account watches for new lookalikes
vw_phish_monitoring_lookup read ✅ live Whether a domain is already monitored for phishing
vw_phish_safe_domains read ✅ live Lookalike hosts manually marked safe (durable allowlist)
vw_submit_scan write 🚫 gated Start an async scan of a URL (spends a scan credit)
vw_phish_check write 🚫 gated Start a phishing check for a brand domain
vw_phish_mark_safe write 🚫 gated Add a lookalike host to the safe list
vw_phish_unmark_safe write 🚫 gated Remove a host from the safe list

Self-hosted bridge (this repository)

The Python bridge ships the core five scan tools:

Tool Auth Description
vw_get_stats read Monthly quota (used/remaining), concurrency, totals, credits
vw_scan_history read Paginated list of your API scans; optional status filter
vw_scan_status read Status of one scan by check_uuid (in_progress/completed/failed)
vw_scan_report read Full JSON vulnerability report for a completed scan
vw_submit_scan write Start an async scan of a URL. Disabled unless opted in

Requirements

  • Python 3.10+
  • A VulnWatch account with an API token (Dashboard → API tokens).

Quick start

1. Install

# pip
pip install mcp-server-vulnwatch

# or from source
git clone https://github.com/anton-kulyk/mcp-server-vulnwatch.git
cd mcp-server-vulnwatch
pip install .

2. Configure the token

export VULNWATCH_API_TOKEN="vw_..."

3. Connect it to your client

Claude Code:

claude mcp add vulnwatch -- python -m vulnwatch_mcp

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "vulnwatch": {
      "command": "python",
      "args": ["-m", "vulnwatch_mcp"],
      "env": { "VULNWATCH_API_TOKEN": "vw_..." }
    }
  }
}

Cursor — Settings → MCP → Add server (command mode):

{
  "command": "python",
  "args": ["-m", "vulnwatch_mcp"],
  "env": { "VULNWATCH_API_TOKEN": "vw_..." }
}

Configuration

All configuration is via environment variables:

Variable Required Default Notes
VULNWATCH_API_TOKEN yes — Your dashboard PAT
VULNWATCH_API_BASE no https://app.vulnwatch.tech/api Override API root (self-host/staging)
VULNWATCH_MCP_ALLOW_SCAN no 0 Set to 1 to enable vw_submit_scan

Safety

vw_submit_scan launches asynchronous scans of arbitrary URLs. To prevent a prompt-injected agent from triggering scans without your knowledge, it is a confused-deputy guard: the tool is off unless you explicitly start the server with VULNWATCH_MCP_ALLOW_SCAN=1, and the token is always passed via the environment at server start — never per-call and never read from prompts.

# opt in to scans only if you really want them
VULNWATCH_MCP_ALLOW_SCAN=1 python -m vulnwatch_mcp

Development

pip install -e ".[dev]"
pytest            # offline unit + stdio transport tests

No API token is required to run the test suite — network is mocked and the auth/confused-deputy gates are asserted directly.

Example output

Real output from a live account (trimmed). vw_get_stats:

{
  "success": true,
  "data": {
    "free_monthly_allowance": { "limit": 10, "used": 2, "remaining": 8 },
    "concurrency": { "max_in_progress": 1, "in_progress": 0 },
    "totals": { "completed": 2, "failed": 0, "in_progress": 0 },
    "credits_left": 5319
  }
}

vw_scan_report returns a full vulnerability report keyed by score, scan_highlights (severity/source breakdown, SSL, performance), fingerprint (CMS/version/theme/plugins), cve_summary, and all_findings — a list of findings each carrying severity, owasp, cwe, cve, risk_score, recommendations and references. Shape (trimmed):

{
  "success": true,
  "data": {
    "score": 90,
    "scan_type_label": "Standard Scan",
    "fingerprint": { "cms": "wordpress", "cms_ver": "6.9.4" },
    "scan_highlights": {
      "issues_by_severity": { "critical": 1, "high": 33, "medium": 7, "low": 8 }
    },
    "all_findings": [
      { "title": "Webshell Detection", "severity": "critical",
        "owasp": "...", "cwe": "...", "recommendations": "..." }
    ]
  }
}

vw_submit_scan returns the new scan's uuid; poll it with vw_scan_status (progress + per-step scan_steps) and fetch the finished report with vw_scan_report.

Part of the VulnWatch ecosystem

License

MIT