MCP 配置
将 Claude Code、Claude Desktop、Cursor 或 VS Code 连接到 VibeQL MCP 服务器,即可通过 AI 智能体翻译文件。
VibeQL MCP 服务器让 AI 智能体使用您的账户翻译文本和文件。它使用与 API 相同的密钥和相同的字符池。
| 服务器 URL | https://vibeql.com/mcp |
| 传输方式 | 可流式 HTTP |
| 认证 | Authorization: Bearer YOUR_KEY,或在 URL 中使用 ?key=YOUR_KEY |
请先在API 页面创建一个密钥。
Claude Code
claude mcp add --transport http vibeql https://vibeql.com/mcp --header "Authorization: Bearer YOUR_KEY"
在 Claude Code 中运行 /mcp,确认 vibeql 已连接。
和 Claude Desktop
Claude 会将远程服务器添加为自定义连接器。您在 中添加的连接器在 Claude Desktop 中同样可用。
- 打开自定义 > 连接器。
- 选择+ 添加,然后选择添加自定义连接器。
- 输入名称
VibeQL和 URLhttps://vibeql.com/mcp。 - 选择无需登录,并添加请求头
Authorization,值为Bearer YOUR_KEY。
如果您的客户端没有填写请求头的字段,请使用此 URL 且不添加请求头:
https://vibeql.com/mcp?key=YOUR_KEY
在 Team 和 Enterprise 计划中,由所有者添加连接器:组织设置 > 连接器。使用共享连接器的所有人都使用其中的密钥。
通过本地桥接使用 Claude Desktop
您也可以通过 mcp-remote 桥接连接 Claude Desktop。这需要 Node.js。将以下内容添加到 claude_desktop_config.json 并重启 Claude Desktop:
{
"mcpServers": {
"vibeql": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://vibeql.com/mcp", "--header", "Authorization:${VIBEQL_AUTH}"],
"env": { "VIBEQL_AUTH": "Bearer YOUR_KEY" }
}
}
}
冒号后没有空格。这样可以避免 Windows 上参数中包含空格导致的已知问题。
Cursor
将服务器添加到 ~/.cursor/mcp.json,或在项目中添加到 .cursor/mcp.json:
{
"mcpServers": {
"vibeql": {
"url": "https://vibeql.com/mcp",
"headers": { "Authorization": "Bearer ${env:VIBEQL_API_KEY}" }
}
}
}
Cursor 会从您的 shell 环境中读取 VIBEQL_API_KEY。
VS Code
将服务器添加到 .vscode/mcp.json。VS Code 会在首次使用时询问密钥,并将其存储为机密。
{
"inputs": [
{ "type": "promptString", "id": "vibeql-key", "description": "VibeQL API key", "password": true }
],
"servers": {
"vibeql": {
"type": "http",
"url": "https://vibeql.com/mcp",
"headers": { "Authorization": "Bearer ${input:vibeql-key}" }
}
}
}
其他客户端
任何支持 streamable HTTP 的 MCP 客户端都可以使用。请使用服务器 URL,并将密钥作为 Bearer token 发送。如果客户端无法发送请求头,请使用 ?key= 将密钥放入 URL。
工具
| 工具 | 参数 | 返回 |
|---|---|---|
translate_text |
text,target_lang,可选 source_lang |
翻译后的文本 |
translate_document |
target_lang,以及 file_url 或 file_base64,并附带 filename |
文档 ID 及其状态 |
get_document |
id |
状态,以及完成后的 download_url |
list_languages |
– | 源语言和目标语言代码 |
get_usage |
– | 已使用的字符数和您的限额 |
语言代码与 API 中相同,例如 DE 或 PT-BR。请参阅语言。
文档翻译不会一次完成。智能体会先调用 translate_document,然后调用 get_document,直到状态为 done。download_url 有效期为 24 小时。它是签名链接:任何拿到该链接的人都能下载文件,因此请谨慎分享。
试一试
向您的智能体提问:
Translate https://example.com/files/quarterly-report.pdf into Brazilian Portuguese with VibeQL.
Wait until it is done and give me the download link.
在 Claude Code 中,您还可以指定本地文件:
Translate ./slides/launch.pptx into German with VibeQL and save the result next to the original.