Skip to main content

Klakix MCP bridge for Python

klakix-mcp is a small command-line bridge that connects stdio MCP clients to the remote Klakix MCP server. Use it to give Claude Desktop and other MCP clients that only launch local commands access to AI video generation (Seedance, Kling, Veo), image generation (Nano Banana, GPT Image), voiceovers, music and sound effects.

It is the same bridge as the npm package, written in pure Python. It has no dependencies, needs Python 3.9 or newer, and runs with:

uvx klakix-mcp

or, with pipx:

pipx run klakix-mcp

The remote server lives at https://klakix.com/api/mcp (Streamable HTTP). This package reads JSON-RPC messages from stdin, posts each one to that URL, and writes the replies to stdout. It sends your API key as a Bearer token and does nothing else with it.

Get an API key

  1. Sign in at klakix.com.
  2. Open klakix.com/app/mcp and create an API key. It starts with avy_sk_.
  3. Put it in the KLAKIX_API_KEY environment variable of your MCP client entry, as shown below.

Generations spend credits from your Klakix account at the same prices as the website.

Claude Desktop

Edit claude_desktop_config.json (Settings, Developer, Edit Config) and add the server:

{
  "mcpServers": {
    "klakix": {
      "command": "uvx",
      "args": ["klakix-mcp"],
      "env": {
        "KLAKIX_API_KEY": "avy_sk_..."
      }
    }
  }
}

Restart the app, then ask for something like "make a 5-second product video from this photo".

Remote connection without this bridge

If your client can connect to a remote MCP server, add the URL directly and sign in with OAuth instead:

https://klakix.com/api/mcp

This package is for clients that can only start a local command.

Options

Flags take precedence over environment variables.

Option Environment variable Default Description
--api-key <key> KLAKIX_API_KEY none API key sent as Authorization: Bearer. Prefer the environment variable, because command-line arguments are visible in process lists.
--url <url> KLAKIX_MCP_URL https://klakix.com/api/mcp Remote MCP endpoint. Must be http:// or https://.
--timeout <seconds> none 600 Time to wait for each request. Video generation can run for minutes.
--verbose none off Write diagnostics to stderr (status codes and errors, never the key or message bodies).
--help, -h none none Print usage.
--version, -v none none Print the version.

How it behaves

  • Each line on stdin is one JSON-RPC message. Each message becomes one POST with Content-Type: application/json and Accept: application/json, text/event-stream.
  • Requests run concurrently, but nothing is sent until the initialize response has arrived. After it, requests carry MCP-Protocol-Version set to the version the server chose, and Mcp-Session-Id if the server returned one.
  • JSON replies (one message or a batch) are written to stdout one message per line. text/event-stream replies are read as server-sent events. A 202 reply writes nothing.
  • A 401 reply becomes a JSON-RPC error with code -32001 that explains how to set the API key. Other failures become -32603. Notifications never get a reply, including on errors.
  • stdout carries JSON-RPC only. Diagnostics go to stderr.
  • When stdin closes, the bridge waits for pending requests and then exits.

Checking the connection by hand

echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"test","version":"0"}}}' | uvx klakix-mcp --verbose

License

MIT

Metadata

Release files for klakix-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for klakix-mcp 0.1.0
File Size Uploaded Provenance Actions
klakix_mcp-0.1.0.tar.gz 15.9 kB Without provenance Details for klakix_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for klakix-mcp 0.1.0
File Interpreter ABI Platform Actions
klakix_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for klakix_mcp-0.1.0-py3-none-any.whl

Total release size: 28.4 kB

Release files / klakix_mcp-0.1.0.tar.gz

Download URL klakix_mcp-0.1.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
76fd4c45f96450a1361d57794e3365d4d5fce01106bc3d5a1c3dd271729c0346
BLAKE2b-256 checksum
How to use checksums
fc13d885013b0046d0a5eb23ede78d315f2d99d5534035a3dd19d51bf9d11d6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / klakix_mcp-0.1.0-py3-none-any.whl

Download URL klakix_mcp-0.1.0-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c57cf0d1911d913c9998319d2abd79ea93e084aa10e526f4b85f36a800e566b5
BLAKE2b-256 checksum
How to use checksums
05b7f80da05b3a2af63b86aceb37442213697ca6733590abbe241094ae7c91e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for klakix-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page