{"slug": "generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server", "title": "Generate AI videos from Claude, Cursor or Claude Code with the Klakix MCP server", "summary": "A Klakix maintainer released a remote MCP server at klakix.com/api/mcp that gives Claude, Claude Code, Cursor, Codex, Gemini CLI and other clients 19 tools and 7 workflows for generating video, images, audio, talking-head videos, effects and upscaling, backed by models including Seedance 2.5, Kling 4.0, Veo 3.1 Lite, Nano Banana 2 and HeyGen Avatar IV. The server uses Streamable HTTP with OAuth 2.1 or Bearer API keys, and a dependency-free npx klakix-mcp bridge supports clients limited to local stdio servers. The maintainer notes that generation tools spend shared web-priced credits while file and result tools are free, and that video and image tools unlock only after a first credit purchase.", "body_md": "Claude writes text and code. It does not render video. If you want it to hand you an MP4, it has to call a model somewhere, and the cleanest way to wire that up today is an MCP server.\n\nThis post walks through the [Klakix](https://klakix.com/mcp) MCP server: how to connect it to Claude, Claude Code, Cursor and a few other clients, what the tools look like, and how to keep an eye on cost before anything is generated. It also covers the open-source packages behind it, in case you want to build a remote MCP server of your own. I work on Klakix, so read this as a hands-on guide from the maintainer's side, not a neutral review.\n\nThe server lives at one URL:\n\n```\nhttps://klakix.com/api/mcp\n```\n\nIt is a remote MCP server (Streamable HTTP, stateless, JSON responses). You add the URL to a client, sign in with your Klakix account through OAuth 2.1, and the client gets 19 tools and 7 ready-made workflows (MCP prompts). Between them they cover video, images, audio, talking-head videos, effects, upscaling and templates.\n\nThe models behind the tools include Seedance 2.5 and 2.0, Kling 4.0 and 3.0, Veo 3.1 Lite, Wan 3.0 and MiniMax H3 Max for video, Nano Banana 2, GPT Image 2.5 and Muse Image for images, HeyGen Avatar IV and OmniHuman 1.5 for talking videos, Topaz Video AI for upscaling, and Klakix's own voice, music and sound effect models. You don't pick these in a settings screen; you ask the assistant, and it can call `list_models` to see what is available.\n\nCredits are shared with the website and are spent at web prices. There is no subscription requirement. One practical detail: a new account can make voiceovers straight away, while the video and image tools unlock after the first credit purchase.\n\nOpen **Customize > Connectors**, choose **+ Add**, then **Add custom connector**. Name it `Klakix`, paste `https://klakix.com/api/mcp` as the URL and continue. Keep the detected authentication settings, add it, then sign in and approve. In a new chat, click **+**, open **Connectors** and turn Klakix on. The free Claude plan allows one custom connector.\n\nIf you prefer a config file, or your client only starts local stdio servers, use the small `klakix-mcp` bridge. Create an API key at [klakix.com/app/mcp](https://klakix.com/app/mcp) (it is shown once) and add this to `claude_desktop_config.json`:\n\n```\n{\n  \"mcpServers\": {\n    \"klakix\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"klakix-mcp\"],\n      \"env\": { \"KLAKIX_API_KEY\": \"avy_sk_...\" }\n    }\n  }\n}\n```\n\nThe package has no dependencies and needs Node.js 20 or newer. It reads JSON-RPC from stdin, posts each message to the remote server and writes the replies to stdout. The key only goes out as a Bearer token.\n\n```\nclaude mcp add --transport http --scope user klakix https://klakix.com/api/mcp\n```\n\nThen run `/mcp` inside Claude Code and sign in through the browser. If you would rather use a key:\n\n```\nclaude mcp add --transport http --scope user klakix https://klakix.com/api/mcp \\\n  --header \"Authorization: Bearer avy_sk_...\"\n```\n\nPut this in `~/.cursor/mcp.json`:\n\n```\n{\n  \"mcpServers\": {\n    \"klakix\": {\n      \"url\": \"https://klakix.com/api/mcp\"\n    }\n  }\n}\n```\n\n`.vscode/mcp.json`:\n\n```\n{\n  \"servers\": {\n    \"klakix\": {\n      \"type\": \"http\",\n      \"url\": \"https://klakix.com/api/mcp\"\n    }\n  }\n}\n```\n\nCodex and Gemini CLI take one line each:\n\n```\ncodex mcp add klakix --url https://klakix.com/api/mcp\ncodex mcp login klakix\n\ngemini mcp add --transport http klakix https://klakix.com/api/mcp\n```\n\nFor tools like n8n or Make, create an API key and send it as `Authorization: Bearer avy_sk_...`.\n\nThe tools split into three groups, and the grouping matters for cost.\n\nTools that create something and spend credits: `generate_video`, `generate_image`, `generate_audio`, `create_talking_video`, `apply_effect`, `transfer_motion`, `upscale_video`, `create_explainer_video` and `run_template`.\n\nTools for files and results, which are free: `upload_media` (import from a URL or an earlier result), `get_generation` (status and file links, and it can wait for completion), `list_generations` and `cancel_generation`. Cancelling a queued generation refunds its credits.\n\nAccount and catalog tools, also free: `get_account`, `list_models`, `get_model`, `estimate_cost`, `list_voices` and `list_templates`.\n\nThe seven prompts are workflows you can invoke by name: `product_ad`, `ugc_ad`, `storyboard_film`, `photo_to_video`, `social_reel`, `voiceover_pack` and `character_consistency`.\n\n**1. Check before you spend.**\n\nHow many credits do I have? Then list the video models, and tell me what a 5-second vertical clip of a paper boat on a rainy street would cost on two of them. Don't generate anything yet.\n\nThe assistant calls `get_account`, `list_models` and `estimate_cost`. None of these spend credits. `get_model` gives you the settings, limits and example prompts for a single model if you want to see what it accepts before choosing.\n\n**2. A product video from a photo.**\n\nUse the product_ad workflow with this photo of my ceramic mug. Vertical, 5 seconds, slow camera move, no text. Show me the estimated cost and wait for my OK before generating.\n\nTelling the assistant to wait for your go-ahead is just a normal instruction in the prompt, and it works well here. After you confirm, `generate_video` queues the job and `get_generation` returns the status and, when it is done, the file link. Results download as MP4, PNG or MP3.\n\n**3. A voiceover.**\n\nRead this script in a calm voice, then suggest three voices from the list first so I can pick.\n\n`list_voices` returns voices with preview links, and `generate_audio` produces the voiceover. The same tool also handles multi-voice dialogue, music and sound effects. Voiceovers are the one thing a brand-new account can do before buying credits.\n\nGeneration can take minutes and costs real credits, so I would build the habit of asking for `estimate_cost` first. Credits never expire, and a generation that fails for a technical reason or a safety block is refunded automatically. Parallel generations are limited: 3 without a plan, more on the plans. Clips run from 3 to 30 seconds depending on the model.\n\nPrompts and uploaded images go through the same checks as the website. Celebrities, public figures, people without their consent and copyrighted characters are blocked, tools that use a photo of a person ask for a consent confirmation, and there is no face swap or voice cloning. That is worth knowing before you plan a workflow around it.\n\nThe repository at [github.com/klakix-ai/klakix-mcp](https://github.com/klakix-ai/klakix-mcp) contains the building blocks we run in production, extracted as MIT-licensed packages:\n\n`klakix-mcp`, the stdio bridge shown above.`@klakix/mcp-server`, a stateless Streamable HTTP MCP server for the Web Fetch API. Tools use zod schemas, and there are hooks for scope checks, rate limiting and logging, plus an SSRF-safe media fetcher. It runs on Node, Next.js, Hono, Bun, Deno and Cloudflare Workers.`@klakix/mcp-oauth`, an OAuth 2.1 authorization server for remote MCP servers: PKCE S256, dynamic client registration (RFC 7591), client ID metadata documents, RFC 8414 and RFC 9728 metadata, refresh token rotation with reuse detection, and revocation. It is storage-agnostic and has no dependencies.`examples/self-hosted`, a complete server with OAuth sign-in and demo tools that you can run locally.\nTo be precise about the boundary: the protocol layer, the OAuth server, the bridge and the client configs are open. The generation backend (model routing, pricing, moderation, storage) is part of the hosted service and is not in the repo.\n\nIf you want a server of your own, this is the smallest useful version:\n\n``` js\nimport { createMcpHandler, defineTool, toolOk } from \"@klakix/mcp-server\";\nimport { z } from \"zod\";\n\nconst echo = defineTool({\n  name: \"echo\",\n  title: \"Echo\",\n  description: \"Returns the text you send.\",\n  inputSchema: z.object({ text: z.string() }),\n  handler: async ({ text }) => toolOk(text, { text }),\n});\n\nexport const mcp = createMcpHandler({\n  serverInfo: { name: \"my-server\", version: \"1.0.0\" },\n  tools: [echo],\n  authenticate: async (request) =>\n    request.headers.get(\"authorization\") === `Bearer ${process.env.API_KEY}`\n      ? { id: \"me\" }\n      : null,\n});\n\n// Any Fetch API runtime: export default { fetch: mcp.handle }\n```\n\nAnd to try the full example with OAuth locally:\n\n```\ngit clone https://github.com/klakix-ai/klakix-mcp.git\ncd klakix-mcp\nnpm install\nnpm run build\nnpm start -w examples/self-hosted\nclaude mcp add --transport http demo http://localhost:8787/mcp\n```\n\nIf something in the setup does not work for your client, open an issue on the repo. I read them.", "url": "https://wpnews.pro/news/generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server", "canonical_source": "https://dev.to/klakix/generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server-450m", "published_at": "2026-11-20 16:07:44+00:00", "updated_at": "2026-11-20 16:15:15.586252+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "generative-ai", "ai-tools", "developer-tools"], "entities": ["Klakix", "Claude", "Claude Code", "Cursor", "Seedance", "Kling", "Veo", "HeyGen"], "also_reported_by": [], "takeaway": "Klakix's remote MCP server exposes 19 generation tools and 7 prompts over Streamable HTTP with OAuth 2.1, and a dependency-free npx klakix-mcp bridge lets stdio-only clients like Claude Desktop reach it with a Bearer API key.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server", "markdown": "https://wpnews.pro/news/generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server.md", "text": "https://wpnews.pro/news/generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server.txt", "jsonld": "https://wpnews.pro/news/generate-ai-videos-from-claude-cursor-or-claude-code-with-the-klakix-mcp-server.jsonld"}}