返回市场
模型上下文协议

模型上下文协议

作者:video-db43 星标更新:2025-07-17

项目介绍

【技术文档摘要】: smithery 徽章

要在任何配置驱动的MCP客户端中添加MCP服务器,以下是如何使用命令和参数的示例

安装 uv

我们首先需要安装 uv

对于 macOS/Linux:

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

对于 Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

您还可以访问 uv 的安装步骤以获取更多详细信息 这里

运行 MCP 服务器

您可以使用 uvx 命令运行 MCP 服务器,如下所示:

uvx videodb-director-mcp --api-key=VIDEODB_API_KEY

在您喜欢的客户端中添加 VideoDB Director MCP 服务器

Claude Desktop

要在 Claude 中配置 VideoDB Director MCP 服务器,可以运行以下命令: uvx videodb-director-mcp --install=claude

您也可以通过以下步骤手动配置 MCP 服务器:

  1. 打开 claude_desktop_config.json 文件

    在 MacOS/Linux 中:

    code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    

    在 Windows 中:

    code $env:AppData\Claude\claude_desktop_config.json
    
  2. mcpServers 键内添加 VideoDB Director MCP 服务器:

    {
      "mcpServers": {
        "videodb-director": {
          "command": "uvx",
          "args": ["videodb-director-mcp", "--api-key=<VIDEODB-API-KEY>"]
        }
      }
    }
    

Cursor

要在 Cursor 中配置 VideoDB Director MCP 服务器,可以运行以下命令: uvx videodb-director-mcp --install=cursor

您也可以通过以下步骤手动配置 MCP 服务器:

  1. 在 Cursor 中,进入 设置 > Cursor 设置
  2. 点击 MCP
  3. 点击 添加新的全局 MCP 服务器
  4. mcpServers 键下添加 VideoDB Director MCP 服务器:
    {
      "mcpServers": {
        "videodb-director": {
          "command": "uvx",
          "args": ["videodb-director-mcp", "--api-key=<VIDEODB-API-KEY>"]
        }
      }
    }
    

同时在 Claude 和 Cursor 中安装。

您可以通过运行以下命令同时在 Claude 和 Cursor 中配置 VideoDB Director MCP 服务器:

uvx videodb-director-mcp --install=all

为 Claude Code 安装

claude mcp add videodb-director uvx -- videodb-director-mcp --api-key=<VIDEODB_API_KEY>

更新 VideoDB Director MCP 包

为了确保您使用的是最新版本的 MCP 服务器与 uvx,请先清除缓存:

uv cache clean

此命令会移除任何过时的 videodb-director-mcp 缓存包,允许 uvx 获取最新版本。

如果您希望始终使用最新版本的 MCP 服务器,请更新您的命令如下:

uvx videodb-director-mcp@latest --api-key=<VIDEODB_API_KEY>