要在任何配置驱动的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 的安装步骤以获取更多详细信息 这里
您可以使用 uvx 命令运行 MCP 服务器,如下所示:
uvx videodb-director-mcp --api-key=VIDEODB_API_KEY
要在 Claude 中配置 VideoDB Director MCP 服务器,可以运行以下命令:
uvx videodb-director-mcp --install=claude
您也可以通过以下步骤手动配置 MCP 服务器:
打开 claude_desktop_config.json 文件
在 MacOS/Linux 中:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
在 Windows 中:
code $env:AppData\Claude\claude_desktop_config.json
在 mcpServers 键内添加 VideoDB Director MCP 服务器:
{
"mcpServers": {
"videodb-director": {
"command": "uvx",
"args": ["videodb-director-mcp", "--api-key=<VIDEODB-API-KEY>"]
}
}
}
要在 Cursor 中配置 VideoDB Director MCP 服务器,可以运行以下命令:
uvx videodb-director-mcp --install=cursor
您也可以通过以下步骤手动配置 MCP 服务器:
mcpServers 键下添加 VideoDB Director MCP 服务器:
{
"mcpServers": {
"videodb-director": {
"command": "uvx",
"args": ["videodb-director-mcp", "--api-key=<VIDEODB-API-KEY>"]
}
}
}
您可以通过运行以下命令同时在 Claude 和 Cursor 中配置 VideoDB Director MCP 服务器:
uvx videodb-director-mcp --install=all
claude mcp add videodb-director uvx -- videodb-director-mcp --api-key=<VIDEODB_API_KEY>
为了确保您使用的是最新版本的 MCP 服务器与 uvx,请先清除缓存:
uv cache clean
此命令会移除任何过时的 videodb-director-mcp 缓存包,允许 uvx 获取最新版本。
如果您希望始终使用最新版本的 MCP 服务器,请更新您的命令如下:
uvx videodb-director-mcp@latest --api-key=<VIDEODB_API_KEY>