Skip to main content
Glama

OSV用MCPサーバー

OSV データベース API 用の軽量 MCP (モデル コンテキスト プロトコル) サーバー。

例:

デモ


提供されるツール

概要

名前

説明

クエリパッケージcve

特定のパッケージのすべてのCVE IDを一覧表示します。より限定的な範囲のCVE IDを取得するには、特定のバージョンを指定することもできます。

影響を受けるCVEのクエリ

OSV データベースで CVE を照会し、影響を受けるパッケージのすべてのバージョンを返します。

CVE修正バージョンのクエリ

OSV データベースで CVE を照会し、脆弱性を修正したすべてのバージョンを返します。

get_ecosystems

現在サポートされているエコシステムについては、MCP に問い合わせてください。

詳細な説明

  • クエリパッケージcve

    • OSV データベースでパッケージを照会し、CVE ID を返します。

    • 入力パラメータ:

      • package (文字列、必須): 照会するパッケージ名

      • version (文字列、オプション): 照会するパッケージのバージョン。指定しない場合は、すべてのバージョンを照会します。

      • ecosystem (文字列、オプション):パッケージのエコシステム。Pythonパッケージの場合はデフォルトで「PyPI」になります。

    • CVE IDとその詳細のリストを返します

  • 影響を受けるCVEのクエリ

    • OSV データベースで CVE を照会し、影響を受けるすべてのバージョンを返します。

    • 入力パラメータ:

      • cve (文字列、必須): 照会するCVE ID (例: "CVE-2018-1000805")

    • 影響を受けるバージョン文字列のリストを返します

  • CVE修正バージョンのクエリ

    • OSV データベースで CVE を照会し、脆弱性を修正したすべてのバージョンを返します。

    • 入力パラメータ:

      • cve (文字列、必須): 照会するCVE ID (例: "CVE-2018-1000805")

    • 固定バージョン文字列のリストを返します

  • get_ecosystems

    • MCP サーバーによって現在サポートされているすべてのエコシステムをクエリします。

    • キーがエコシステム名、値がプログラミング言語/OS である辞書を返します。


Related MCP server: MCP Vulnerability Checker Server

前提条件

  1. Python 3.11 以上: このプロジェクトには Python 3.11 以降が必要です。

    # Check your Python version
    python --version
  2. uv をインストール: 高速な Python パッケージ インストーラーおよびリゾルバー。

    pip install uv

    または Homebrew を使用します:

    brew install uv

テスト済み

  • [X] カーソル

  • [X] クロード


インストール

  1. Smithery経由:

npx -y @smithery/cli install @EdenYavin/OSV-MCP --client claude
  1. ローカル:

    1. リポジトリをクローンする: https://github.com/EdenYavin/OSV-MCP.git

    2. MCP ホスト (Cusrsor / Claude Desktop など) を構成します。

{
  "mcpServers": {
    "osv-mcp": {
      "command": "uv",
      "args": ["--directory", "path-to/OSV-MCP", "run", "osv-server"],
      "env": {}
    }
  }
}


気に入っていただけたら、 VibeAppにレビューを残してください :)!

Available Tools

4 tools
get_ecosystemsA
Get all supported ecosystems. An ecosystem is a package manager or repository for a specific language.

Returns:
Dictionary of ecosystems with the key being the ecosystem name and the value being the programming language / OS.

To use the ecosystem name in the query_package_cve function, you must use the exact ecosystem name as it is in the dictionary.

Inputs: no named parameters.

query_for_cve_affectedB
Query the OSV database for a CVE and return the affected versions.

Args:
    cve: The CVE ID to query

Returns:
    A list of affected versions

Inputs: cve (required).

query_for_cve_fix_versionsB
Query the OSV database for a CVE and return the fix versions.

Args:
    cve: The CVE ID to query

Returns:
    A list of fix versions

Inputs: cve (required).

query_package_cveA
Query the OSV database for a package and return the CVE ID.
You can use this tool to get the CVE ID for a package. 
ALWAYS use it before installing packages to check if the package is vulnerable. For example in requirements.txt, pyproject.toml, uv.lock, etc.
You can also use it to check if the package is vulnerable before updating the package.

Args:
    package: The package name to query
    version: The version of the package to query, can be None if you want to query all versions
    ecosystem: The ecosystem of the package to query, can be None if you want to query all ecosystems. 
    
    * For supported ecosystems, see the get_ecosystems tool.

Returns:
    A list of CVE IDs

Inputs: package (required), version, ecosystem.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: get_ecosystems retrieves ecosystem metadata, query_for_cve_affected and query_for_cve_fix_versions handle CVE-specific queries for affected and fixed versions respectively, and query_package_cve checks packages for vulnerabilities. The descriptions make it easy to differentiate between them, especially the two CVE-related tools that focus on different aspects of vulnerability data.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case: get_ecosystems, query_for_cve_affected, query_for_cve_fix_versions, and query_package_cve. The naming is predictable and readable, with 'query' used for database lookups and 'get' for metadata retrieval, maintaining a coherent style throughout the set.

    Tool Count4/5

    With 4 tools, the count is reasonable for a vulnerability database server, covering core operations like ecosystem listing, CVE queries, and package checks. It feels slightly thin but well-scoped, as each tool serves a specific function without redundancy. A few more tools (e.g., for batch queries or detailed vulnerability info) could enhance it, but the current set is functional and appropriate.

    Completeness4/5

    The tool surface covers essential workflows for OSV database interactions: retrieving ecosystems, querying CVEs for affected and fixed versions, and checking packages for vulnerabilities. Minor gaps exist, such as no tool for listing all CVEs or querying by date/severity, but agents can work around this by combining existing tools. The set provides a solid foundation for vulnerability assessment tasks.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A server that retrieves CVE details from the NVD API and fetches EPSS scores to provide comprehensive vulnerability information, including descriptions, CWEs, CVSS scores, and exploitation likelihood percentiles.
      13
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server providing security vulnerability intelligence tools including CVE lookup, EPSS scoring, CVSS calculation, exploit detection, and Python package vulnerability checking.
      8
      9
      MIT