Cover image
Try Now
2025-04-14

基于OSV API的漏洞MCP服务器

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

OSV MCP Server

This project provides an MCP (Model Context Protocol) server for integrating OSV (Open Source Vulnerabilities) data and tools with AI assistants or large language models (LLMs). The server is implemented in Python and exposes tools and resources that can be used by LLMs to enhance their workflow and capabilities. Here is a screenshot of Claude Desktop using the OSV MCP Server.

Claude Desktop Using OSV MCP Server

Features

  • Exposes OSV-related data via the MCP protocol
  • Easily connectable to AI assistants or LLMs that support MCP
  • Simple Python-based setup

Prerequisites

Setup Instructions

1. Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/your-org/osv-mcp.git
cd osv-mcp

2. Create a Virtual Environment (Recommended)

It is recommended to use a virtual environment to avoid dependency conflicts:

curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv

3. Install Dependencies

Install the required Python packages using uv:

uv sync

4. Start the MCP Server

Run the server using:

uv run vulns.py

Using MCP Servers with AI Assistants and LLMs

MCP servers expose tools and resources over a local or network-accessible API. AI assistants and LLMs that support the Model Context Protocol can connect to one or more MCP servers to extend their capabilities. Once connected, the assistant can invoke the query_vulnerabilities tool.

Consult your AI assistant or LLM's documentation for specific instructions on adding or configuring MCP servers.

Using OSV MCP Server with Claude Desktop

Add the OSV MCP server in claude_desktop_config.json file.

On Mac or Linux, edit: ~/Library/Application\ Support/Claude/claude_desktop_config.json. On Windows, edit: env:AppData\Claude\claude_desktop_config.json.

Add the OSV MCP server to the config as below.

{
    "mcpServers": {
        "vulns": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/osv-mcp",
                "run",
                "vulns.py"
            ]
        }
    }
}

Development

  • Source code is in vulns.py.
  • Project dependencies are managed via pyproject.toml.

License

MIT License (or specify your license here)


For further questions or support, please open an issue or contact the maintainers.

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • paulwing
  • 使用MCP服务创建的测试存储库

    Reviews

    5 (2)
    Avatar
    user_SJJCKnIb
    2025-04-24

    As an avid user of osv-mcp, I am thoroughly impressed by its capabilities and user-friendly interface. This tool, developed by ptelang, has significantly streamlined my workflow and enhanced productivity. Its seamless integration and robust features make it a must-have for any professional. Highly recommended!

    Avatar
    user_BPeqYEvs
    2025-04-24

    As a dedicated user of osv-mcp, I can say this product, created by ptelang, is exceptional. The user-friendly interface and seamless integration make it a must-have for anyone looking to enhance their MCP application experience. Highly recommended!