# MCP setup

Connect Claude Code, Claude Desktop, claude.ai, Cursor or VS Code to the VibeQL MCP server and translate files from an AI agent.

The VibeQL MCP server lets AI agents translate text and files with your account. It uses the same key and the same character pool as the API.

| | |
|---|---|
| Server URL | `https://vibeql.com/mcp` |
| Transport | Streamable HTTP |
| Auth | `Authorization: Bearer YOUR_KEY`, or `?key=YOUR_KEY` in the URL |

Create a key in [API keys](/app/api-keys) first.

## Claude Code

```bash
claude mcp add --transport http vibeql https://vibeql.com/mcp --header "Authorization: Bearer YOUR_KEY"
```

Run `/mcp` in Claude Code to check that `vibeql` is connected.

## claude.ai and Claude Desktop

Claude adds remote servers as custom connectors. A connector you add on claude.ai also works in Claude Desktop.

1. Open **Customize > Connectors**.
2. Select **+ Add**, then **Add custom connector**.
3. Enter the name `VibeQL` and the URL `https://vibeql.com/mcp`.
4. Choose no sign-in, and add the request header `Authorization` with the value `Bearer YOUR_KEY`.

If your client has no field for request headers, use this URL and no header:

```text
https://vibeql.com/mcp?key=YOUR_KEY
```

On Team and Enterprise plans, an owner adds the connector in **Organization settings > Connectors**. Everyone who uses a shared connector uses the key in it.

### Claude Desktop with a local bridge

You can also connect Claude Desktop through the `mcp-remote` bridge. It needs Node.js. Add this to `claude_desktop_config.json` and restart Claude Desktop:

```json
{
  "mcpServers": {
    "vibeql": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://vibeql.com/mcp", "--header", "Authorization:${VIBEQL_AUTH}"],
      "env": { "VIBEQL_AUTH": "Bearer YOUR_KEY" }
    }
  }
}
```

The header has no space after the colon. This avoids a known problem with spaces in arguments on Windows.

## Cursor

Add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in a project:

```json
{
  "mcpServers": {
    "vibeql": {
      "url": "https://vibeql.com/mcp",
      "headers": { "Authorization": "Bearer ${env:VIBEQL_API_KEY}" }
    }
  }
}
```

Cursor reads `VIBEQL_API_KEY` from your shell environment.

## VS Code

Add the server to `.vscode/mcp.json`. VS Code asks for the key the first time and stores it as a secret.

```json
{
  "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}" }
    }
  }
}
```

## Other clients

Any MCP client that supports streamable HTTP works. Use the server URL and send the key as a Bearer token. If the client cannot send headers, put the key in the URL with `?key=`.

## Tools

| Tool | Parameters | Returns |
|---|---|---|
| `translate_text` | `text`, `target_lang`, optional `source_lang` | The translated text |
| `translate_document` | `target_lang`, and either `file_url` or `file_base64` with `filename` | The document ID and its status |
| `get_document` | `id` | The status and, when done, a `download_url` |
| `list_languages` | – | Source and target language codes |
| `get_usage` | – | Characters used and your limit |

Language codes are the same as in the API, for example `DE` or `PT-BR`. See [Languages](/docs/languages).

Document translation does not finish at once. The agent calls `translate_document`, then calls `get_document` until the status is `done`. The `download_url` is valid for 24 hours. It is a signed link: anyone who has it can download the file, so share it with care.

## Try it

Ask your agent:

```text
Translate https://example.com/files/quarterly-report.pdf into Brazilian Portuguese with VibeQL.
Wait until it is done and give me the download link.
```

In Claude Code you can also name a local file:

```text
Translate ./slides/launch.pptx into German with VibeQL and save the result next to the original.
```

> **Important:** The `?key=` URL contains your API key. Treat it like a password. Do not share it, paste it in public chats or commit it. If it leaks, revoke the key in [API keys](/app/api-keys).
