Skip to main content

AppThreat Vulnerability Database MCP server

Project description

Introduction

This folder contains the source code for running VDB as a Model Context Protocol (MCP) server. Below you can find the configuration for running the VDB MCP server with Claude Desktop. Please feel free to share the configuration for other clients via pull requests.

What is available

The MCP server provides:

  • Structured JSON tool results with summaries and machine-readable evidence.
  • Bulk search tools for package lists and CycloneDX BOMs.
  • Filter-aware search for severity thresholds, sources (osv, nvd, github, aqua), date ranges, malware-only / exclude-malware, package scope (app_only, os_only), package ecosystem, and pagination.
  • Metadata and full-text search over aliases, references, package names, descriptions, and affected functions/modules.
  • Resource templates such as cve://{id} and purl://{purl}.
  • Concrete resources such as vdb://metadata, vdb://health, vdb://sources, and vdb://malware/latest.
  • Richer prompts for package-risk assessment, CVE triage, SBOM summaries, fix prioritization, version-match explanations, and overlay review.

Pre-requisites

  • Python >= 3.10 installed
  • docker or Rancher Desktop (or)
  • uv installed

docker-based execution (Recommended)

Use our container image ghcr.io/appthreat/mcp-server-vdb:master.

Claude Desktop configuration

Edit the file using VS code or any editor of your choice. ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows, the config file is $env:AppData\Claude\claude_desktop_config.json. Use the below configuration:

{
  "mcpServers": {
    "vdb": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VDB_HOME=/db",
        "-v",
        "$HOME/vdb:/db:rw",
        "ghcr.io/appthreat/mcp-server-vdb:master"
      ]
    }
  }
}

nerdctl example.

{
  "mcpServers": {
    "vdb": {
      "command": "nerdctl",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "VDB_HOME=/db",
        "-v",
        "$HOME/vdb:/db:rw",
        "ghcr.io/appthreat/mcp-server-vdb:master"
      ]
    }
  }
}

Restart the Claude Desktop application.

If you get ENOENT error, specify the full path to docker. On a mac, /Applications/Docker.app/Contents/Resources/bin/docker.

Local uv-based execution (Developers only)

git clone https://github.com/AppThreat/vulnerability-db.git
cd vulnerability-db
python -m pip install .

export VDB_HOME=$HOME/vdb
mkdir -p $VDB_HOME
vdb --download-image
uv --directory packages/mcp-server-vdb run mcp-server-vdb

Claude Desktop configuration

Edit the file using VS code or any editor of your choice. ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows, the config file is $env:AppData\Claude\claude_desktop_config.json.

Use the below configuration and adjust the following paths:

  • absolute path to the mcp-server-vdb package inside the packages directory.
  • VDB_HOME - Full path to the directory containing the vulnerability database. Must have run vdb --download-image
{
  "mcpServers": {
    "vdb": {
      "command": "uv",
      "args": [
        "--directory",
        "/Volumes/Work/AppThreat/vulnerability-db/packages/mcp-server-vdb",
        "run",
        "mcp-server-vdb"
      ],
      "env": {
        "VDB_HOME": "/Users/guest/vdb"
      }
    }
  }
}

Restart the Claude Desktop application.

Environment variables

The MCP server uses the same vdb configuration as the CLI. See the root README environment variables for the full reference. The most common MCP settings are:

Variable Default Description
VDB_HOME Platform user data directory for vdb Directory containing data.vdb6, data.index.vdb6, and vdb.meta. Set this explicitly for Docker volume mounts and local Claude Desktop configurations.
VDB_AGE_DAYS 2 Number of days before the server treats the local database as stale. When stale or missing and ORAS support is installed, the server downloads the app-only database on startup. Use an integer string.
VDB_APP_ONLY_DATABASE_URL ghcr.io/appthreat/vdbxz-app:v6.7.x OCI image URL used by MCP automatic downloads. Override this for internally published app-only artifacts.
VDB_SQLITE_IMMUTABLE unset Open existing .vdb6 files with SQLite's immutable URI option in read-only deployments.

If the MCP server needs extended metadata searches such as full-text, alias, reference, package-name, or symbol lookup, point VDB_APP_ONLY_DATABASE_URL at an app-only extended artifact such as ghcr.io/appthreat/vdbxz-app-extended:v6.7.x, use your own mirrored extended image, or pre-populate VDB_HOME with a database built using vdb --cache --include-metadata.

Screenshots

Claude context screen

Claude context

Claude permissions on first run

Claude permissions

Claude results

Vulnerability description

Latest malware

Latest Malware

Configuration for MCP Inspector

  • Transport Type: STDIO
  • Command: uv
  • Arguments: --directory /absolute/path/to/vulnerability-db/packages/mcp-server-vdb run mcp-server-vdb

Click "Connect"

MCP Inspector

Testing

  1. Click "List Tools". You should see structured tools such as search_by_purl_like, search_full_text, search_packages, search_bom_summary, and search_bom_detailed.
  2. Select search_by_purl_like and enter a purl string such as pkg:swift/vapor/vapor@4.89.0.
  3. Confirm that the tool returns structured JSON content with summary and results.
  4. Try resources such as vdb://metadata, vdb://health, or cve://CVE-2024-25169.

Example common search options

Many tools accept the following optional fields in addition to their main locator:

{
  "severity_threshold": "HIGH",
  "source": ["osv", "github"],
  "exclude_malware": true,
  "package_ecosystem": "pypi",
  "with_data": true,
  "summary_only": false,
  "include_references": true,
  "include_affected_symbols": true,
  "include_remediation": true,
  "include_evidence": true,
  "page": 1,
  "page_size": 25
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_vdb-6.7.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_vdb-6.7.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_vdb-6.7.1.tar.gz.

File metadata

  • Download URL: mcp_server_vdb-6.7.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mcp_server_vdb-6.7.1.tar.gz
Algorithm Hash digest
SHA256 7b97e4499b2269523fa386c2b007c81f8b37ff7b2cca0a52dbef3c2669bab3f3
MD5 010a2cebfaa2fbfb51f94e5c7f8bbc65
BLAKE2b-256 6ebb9ab2fd73b9b56dfeee7fcb0730b137fbf303da54d9d640269d2dc1a405b5

See more details on using hashes here.

File details

Details for the file mcp_server_vdb-6.7.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_server_vdb-6.7.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mcp_server_vdb-6.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f39e8d3ce723689eb167d47ad125bc3cfa4adb65f5ecbc5c460326cd5480abcf
MD5 b0b35a2ddb74b978220a4ce70f79e6b8
BLAKE2b-256 4d7cc45c7ffa121cc49bdb4b0847b7318e86bed0534fca50bdfa208c19a12824

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page