kairouter-mcp
Enables MCP-compatible agents to access KaiRouter's video generation API, providing tools to list available video models, generate videos (text-to-video or image-to-video) asynchronously, check job status, and list recent jobs.
README
kairouter-mcp
MCP server exposing KaiRouter's video generation API — BytePlus Seedance family (Seedance 2.0, 2.0 Fast, 2.0 Mini, 1.5 Pro, 1.0 Pro, ...) and any other video model active on KaiRouter — as tools any MCP-compatible agent harness (Claude Code, Codex, Antigravity, ...) can call.
This is a standalone repo — it does not contain any of KaiRouter's backend source, only a thin client for its public/user-scoped HTTP API. Not yet published to npm — run it from a local build for now (see below).
Tools
| Tool | Description |
|---|---|
list_video_models |
List currently active video models on KaiRouter, with pricing and live provider health. No API key required. |
generate_video |
Start an async video generation job (text-to-video or image-to-video). Returns a job id immediately — does not block until the video is ready. Spends real credits. |
check_video_status |
Poll a job by id. status is queued | processing | succeeded | failed; video_url is set once succeeded. |
list_video_jobs |
List the caller's most recent jobs (up to 50), most recent first. |
generate_video is async by design — BytePlus video generation can take
tens of seconds to a few minutes. The agent is expected to call
generate_video once, then poll check_video_status every few seconds
until the job finishes.
Setup
git clone https://github.com/X-OR-Cloud/kairouter-mcp.git
cd kairouter-mcp
npm install
npm run build
This produces dist/index.js. You'll need a KaiRouter API key —
create one at https://kairouter.com/dashboard/api-keys.
Claude Code
claude mcp add kairouter -e KAIROUTER_API_KEY=sk-xor-your-key-here -- node /absolute/path/to/kairouter-mcp/dist/index.js
Or add directly to .mcp.json (project) / ~/.claude.json (user):
{
"mcpServers": {
"kairouter": {
"command": "node",
"args": ["/absolute/path/to/kairouter-mcp/dist/index.js"],
"env": { "KAIROUTER_API_KEY": "sk-xor-your-key-here" }
}
}
}
Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.kairouter]
command = "node"
args = ["/absolute/path/to/kairouter-mcp/dist/index.js"]
env = { KAIROUTER_API_KEY = "sk-xor-your-key-here" }
Antigravity / other MCP-compatible harnesses
Most harnesses accept the same mcpServers JSON block shown above under
Claude Code — check the harness's own MCP settings for the exact config
file path/UI, since this varies and wasn't verified here for Antigravity
specifically.
Configuration
| Env var | Required | Default | Notes |
|---|---|---|---|
KAIROUTER_API_KEY |
For generate_video, check_video_status, list_video_jobs |
— | From https://kairouter.com/dashboard/api-keys. Not needed for list_video_models, which is a public endpoint. |
KAIROUTER_API_URL |
No | https://kairouter.com |
Override to point at a staging/local KaiRouter instance. |
Development
npm run dev # tsc --watch
npm start # run the built server directly over stdio (for manual testing with an MCP client)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.