On this page
What is MCP?
The Model Context Protocol (MCP) is an open standard through which AI assistants use the tools of external services. VideoOptimizer provides an MCP server: the assistant sees your libraries and videos and can – within the permissions of your API token – add videos, maintain metadata and edit subtitles.
Translate subtitles
The assistant reads the existing subtitles, translates them with unchanged timestamps and uploads them in the target language.
Add videos by link
A public https link is enough – with title and tags in one go; afterwards the assistant returns the embed code.
Status & reports
Which videos are still processing or have failed, and how much bandwidth does the optimization save?
Maintain metadata
Standardize titles and assign or clean up tags across many videos.
Create an API token
The assistant signs in with an API token – the same one you use for the REST API. It works with exactly the permissions of this token and only in its organization.
- 1
Organization token: „Integrationen → API-Tokens → Neuer Token“ (Integrations → API tokens → New token; admins/owners only). Personal token: „Konto → API-Tokens“ (Account → API tokens).
- 2
Give it a descriptive name, e.g. “Claude – Marketing”. It appears in the audit log for every change the assistant makes.
- 3
Copy the token (it starts with vp_) right away – it is shown only once – and enter it in your client as described below.
Set up your client
The server speaks “Streamable HTTP”. Enter the following address and send the token as the header “Authorization: Bearer vp_…”. In the examples, replace vp_your_token_here with your token.
https://api.videooptimizer.eu/api/v1/mcp
Claude Code
Run in the terminal. With --scope project the configuration ends up in your project’s .mcp.json – in that case, do not commit the token to the repository.
claude mcp add --transport http videooptimizer https://api.videooptimizer.eu/api/v1/mcp \
--header "Authorization: Bearer vp_your_token_here"
Cursor
Add it to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project) and reload Cursor.
{
"mcpServers": {
"videooptimizer": {
"url": "https://api.videooptimizer.eu/api/v1/mcp",
"headers": { "Authorization": "Bearer vp_your_token_here" }
}
}
}
VS Code (GitHub Copilot)
Add it to .vscode/mcp.json and start the server in agent mode.
{
"servers": {
"videooptimizer": {
"type": "http",
"url": "https://api.videooptimizer.eu/api/v1/mcp",
"headers": { "Authorization": "Bearer vp_your_token_here" }
}
}
}
Claude Desktop
Claude Desktop connects servers with a token header via the “mcp-remote” bridge (requires Node.js). Add the entry to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude Desktop.
{
"mcpServers": {
"videooptimizer": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.videooptimizer.eu/api/v1/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": { "AUTH_HEADER": "Bearer vp_your_token_here" }
}
}
}
OpenCode
Add it to opencode.json in the project or to ~/.config/opencode/opencode.json. The token comes from the environment variable VIDEOOPTIMIZER_TOKEN; “oauth”: false stops OpenCode from attempting an OAuth sign-in.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"videooptimizer": {
"type": "remote",
"url": "https://api.videooptimizer.eu/api/v1/mcp",
"oauth": false,
"headers": { "Authorization": "Bearer {env:VIDEOOPTIMIZER_TOKEN}" }
}
}
}
Codex CLI
Add it to ~/.codex/config.toml (or .codex/config.toml in a trusted project). Codex reads the token from the environment variable named there; check with “codex mcp list”.
# ~/.codex/config.toml — token from the environment:
# export VIDEOOPTIMIZER_TOKEN=vp_your_token_here
[mcp_servers.videooptimizer]
url = "https://api.videooptimizer.eu/api/v1/mcp"
bearer_token_env_var = "VIDEOOPTIMIZER_TOKEN"
Gemini CLI
Run in the terminal; -s user saves the server for all projects in ~/.gemini/settings.json (without -s it applies only to the current project).
gemini mcp add --transport http -s user \
--header "Authorization: Bearer vp_your_token_here" \
videooptimizer https://api.videooptimizer.eu/api/v1/mcp
Hermes Agent
Add it to ~/.hermes/config.yaml under mcp_servers, then run “/reload-mcp” in Hermes or restart it. Check the connection with “hermes mcp test videooptimizer”.
# ~/.hermes/config.yaml
mcp_servers:
videooptimizer:
url: "https://api.videooptimizer.eu/api/v1/mcp"
headers:
Authorization: "Bearer vp_your_token_here"
Unsloth Studio
In the MCP section choose “Add custom MCP”: display name “VideoOptimizer”, URL as above, leave “Use OAuth sign-in” switched off, and under “Custom headers” use “Add header” to create the header Authorization with the value “Bearer vp_…”. “Test connection”, then “Add server” – and switch on “Use MCP Servers”. Local models must handle tool calling well; small models often choose tools unreliably.
To test it, ask the assistant something like “Which libraries do I have in VideoOptimizer?”. If you get a 401 error, the token is wrong, expired or revoked.
Tools
The assistant chooses the tools itself. All responses match those of the REST API.
The marked tools change data and require the stated permission. Videos and libraries deliberately cannot be deleted via MCP – only individual subtitles.
Example prompts
- “Translate the German subtitles of ‘Summer product video’ into English and upload them.”
- “Add https://example.com/videos/teaser.mp4 to the ‘Campaigns’ library, title ‘Teaser 2026’, tag ‘Campaign’, and give me the embed code once it’s ready.”
- “Which videos failed, and why?”
- “Add the tag ‘Onboarding’ to every video in the ‘Training’ library whose title starts with ‘Onboarding’.”
- “How much bandwidth did VideoOptimizer save us last month?”
Security & limits
- The assistant only sees and changes what the token is allowed to – and only in its organization. Revoke the token and access ends immediately.
- Every change via MCP appears in your organization’s audit log, with the token’s name and the tool used.
- Videos and libraries cannot be deleted via MCP. Review changes the assistant proposes before you confirm them – especially when it processes content from third-party sources.
- Every tool call counts towards the API rate limit of 120 requests per minute. Uploading files from your own computer is not possible via MCP – only via a public link.
Frequently asked questions
Does using MCP cost extra?
No. MCP uses the regular API; your plan and its limits apply. Costs for the AI assistant itself are billed by its provider.
Can I upload a video from my computer?
Not via MCP – the assistant cannot transfer files. Upload the file in the interface or give the assistant a public https link.
Does the assistant’s provider see my videos?
The assistant reads the data it requests – titles, tags, subtitle texts, status information. MCP does not transfer the video files themselves. Which data your AI provider stores is governed by its terms.
Why do I get “Missing required permission”?
The token has no permission for this tool. Use an organization token or have your permissions adjusted in the team – changes take effect immediately.
Does this work with other clients too?
Yes, with any MCP client that supports “Streamable HTTP” with a custom header. For clients that only know local servers, the “mcp-remote” bridge works as with Claude Desktop.