1. Conduid
  2. Security
  3. StacklokLabs/osv-mcp
MCP server · Security

StacklokLabs/osv-mcp

An MCP server for OSV

Unclaimed Apache-2.0 security
64Good

Scored 10 days ago · breakdown

About StacklokLabs/osv-mcp

StacklokLabs/osv-mcp is an MCP server published by StacklokLabs in the Security category: an MCP server for OSV.

The repository has 42 stars and 7 forks, with the last commit 6 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/StacklokLabs/osv-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about StacklokLabs/osv-mcp

Powered by Claude · Grounded in docs

I know everything about StacklokLabs/osv-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 4 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.4v0.1.4 · 14 Oct 2026What's Changed chore(deps): bump github.com/mark3labs/mcp-go from 0.46.0 to 0.47.1 by @dependabot[bot] in https://github.com/StacklokLabs/osv-mcp/pull/99 fix(deps): update module github.com/mark3labs/mcp-go to v0.48.0 by @renovate[bot] in…
v0.1.3v0.1.3 · 1 Apr 2026What's Changed add security scanning in ci and release by @glageju in https://github.com/StacklokLabs/osv-mcp/pull/89 Full Changelog: https://github.com/StacklokLabs/osv-mcp/compare/0.1.2...v0.1.3
0.1.20.1.2 · 1 Apr 2026What's Changed chore(deps): bump aquasecurity/trivy-action from 0.33.1 to 0.35.0 by @dependabot[bot] in https://github.com/StacklokLabs/osv-mcp/pull/77 fix(deps): update module github.com/mark3labs/mcp-go to v0.45.0 by @renovate[bot] in…
v0.1.1v0.1.1 · 13 Mar 2026What's Changed Fixes Add correct MCP tool annotations for read-only tools (#79) Resolve gosec G706 log injection warnings in port validation Chores Enable parallel runners for golangci-lint (#62) Full Changelog:…
v0.1.0v0.1.0 · 22 Jan 2026What's Changed Minor updates to the governance docs by @danbarr in https://github.com/StacklokLabs/osv-mcp/pull/20 Update README by @danbarr in https://github.com/StacklokLabs/osv-mcp/pull/21 chore(deps): bump github.com/mark3labs/mcp-go…

README

OSV MCP Server

Trust Score

An MCP (Model Context Protocol) server that provides access to the OSV (Open Source Vulnerabilities) database.

Overview

This project implements an SSE-based MCP server that allows LLM-powered applications to query the OSV database for vulnerability information. The server provides tools for:

  1. Querying vulnerabilities for a specific package version or commit
  2. Batch querying vulnerabilities for multiple packages or commits
  3. Getting detailed information about a specific vulnerability by ID

Installation

Prerequisites

  • Go 1.21 or later
  • Task (optional, for running tasks)
  • ko (optional, for building container images)

Building from source

# Clone the repository
git clone https://github.com/StacklokLabs/osv-mcp.git
cd osv-mcp

# Build the server
task build

Usage

Running with ToolHive (Recommended)

The easiest way to run the OSV MCP server is using ToolHive, which provides secure, containerized deployment of MCP servers:

# Install ToolHive (if not already installed)
# See: https://docs.stacklok.com/toolhive/guides-cli/install

# Register a supported client so ToolHive can auto-configure your environment
thv client setup

# Run the OSV MCP server (packaged as 'osv' in ToolHive)
thv run osv

# List running servers
thv list

# Get detailed information about the server
thv registry info osv

The server will be available to your MCP-compatible clients and can query the OSV database for vulnerability information.

Running from Source

Server Configuration

The server can be configured using environment variables:

  • MCP_PORT: The port number to run the server on (default: 8080)

    • Must be a valid integer between 0 and 65535
    • If invalid or not set, the server will use port 8080
  • MCP_TRANSPORT: The transport mode for the server (default: sse)

    • Supported values: sse, streamable-http
    • If invalid or not set, the server will use SSE transport mode

Example:

# Run on port 3000
MCP_PORT=3000 ./build/osv-mcp-server

# Run on default port 8080
./build/osv-mcp-server

MCP Tools

The server provides the following MCP tools:

query_vulnerability

Query for vulnerabilities affecting a specific package version or commit.

Input Schema:

{
  "type": "object",
  "properties": {
    "commit": {
      "type": "string",
      "description": "The commit hash to query for. If specified, version should not be set."
    },
    "version": {
      "type": "string",
      "description": "The version string to query for. If specified, commit should not be set."
    },
    "package_name": {
      "type": "string",
      "description": "The name of the package."
    },
    "ecosystem": {
      "type": "string",
      "description": "The ecosystem for this package (e.g., PyPI, npm, Go)."
    },
    "purl": {
      "type": "string",
      "description": "The package URL for this package. If purl is used, package_name and ecosystem should not be set."
    }
  }
}

query_vulnerabilities_batch

Query for vulnerabilities affecting multiple packages or commits at once.

Input Schema:

{
  "type": "object",
  "properties": {
    "queries": {
      "type": "array",
      "description": "Array of query objects",
      "items": {
        "type": "object",
        "properties": {
          "commit": {
            "type": "string",
            "description": "The commit hash to query for. If specified, version should not be set."
          },
          "version": {
            "type": "string",
            "description": "The version string to query for. If specified, commit should not be set."
          },
          "package_name": {
            "type": "string",
            "description": "The name of the package."
          },
          "ecosystem": {
            "type": "string",
            "description": "The ecosystem for this package (e.g., PyPI, npm, Go)."
          },
          "purl": {
            "type": "string",
            "description": "The package URL for this package. If purl is used, package_name and ecosystem should not be set."
          }
        }
      }
    }
  },
  "required": ["queries"]
}

get_vulnerability

Get details for a specific vulnerability by ID.

Input Schema:

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The OSV vulnerability ID"
    }
  },
  "required": ["id"]
}

Examples

Querying vulnerabilities for a package

{
  "package_name": "lodash",
  "ecosystem": "npm",
  "version": "4.17.15"
}

Querying vulnerabilities for a commit

{
  "commit": "6879efc2c1596d11a6a6ad296f80063b558d5e0f"
}

Batch querying vulnerabilities

{
  "queries": [
    {
      "package_name": "lodash",
      "ecosystem": "npm",
      "version": "4.17.15"
    },
    {
      "package_name": "jinja2",
      "ecosystem": "PyPI",
      "version": "2.4.1"
    }
  ]
}

Getting vulnerability details

{
  "id": "GHSA-vqj2-4v8m-8vrq"
}

Development

Running tests

task test

Linting

task lint

Formatting code

task fmt

Contributing

We welcome contributions to this MCP server! If you'd like to contribute, please review the CONTRIBUTING guide for details on how to get started.

If you run into a bug or have a feature request, please open an issue in the repository or join us in the #mcp-servers channel on our community Discord server.

License

This project is licensed under the Apache v2 License - see the LICENSE file for details.

README fetched from the repository 4 days ago. The original is authoritative.

Questions

About StacklokLabs/osv-mcp

How do I install StacklokLabs/osv-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is StacklokLabs/osv-mcp safe to use with an AI agent?

Its trust score is 64 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is StacklokLabs/osv-mcp still maintained?

Yes — the latest release is v0.1.4 (14 Oct 2026), and the last commit was 6 days ago. The repository has 42 stars and 3 open issues.