kairouter-mcp
kairouter-mcp
一个 MCP 服务器,将 KaiRouter 的视频生成 API——BytePlus Seedance 系列(Seedance 2.0、2.0 Fast、2.0 Mini、1.5 Pro、1.0 Pro 等)以及 KaiRouter 上处于激活状态的其他任何视频模型——暴露为工具,供任何兼容 MCP 的代理框架(Claude Code、Codex、Antigravity 等)调用。
这是一个独立仓库——它不包含 KaiRouter 的任何后端源码,仅包含一个针对其公共/用户级 HTTP API 的轻量客户端。目前尚未发布到 npm——请暂时通过本地构建运行(见下文)。
工具
工具 | 描述 |
| 列出 KaiRouter 上当前激活的视频模型,包含定价和各提供商实时健康状态。无需 API 密钥。 |
| 启动异步视频生成任务(文生视频或图生视频)。立即返回任务 ID——不会阻塞直到视频就绪。会消耗真实额度。 |
| 按 ID 轮询任务。 |
| 列出调用方最近的任务(最多 50 个),最近的排在前面。 |
generate_video 在设计上就是异步的——BytePlus 视频生成可能需要几十秒到几分钟。代理应调用一次 generate_video,然后每隔几秒轮询 check_video_status,直到任务完成。
Related MCP server: mcp-litmedia
设置
git clone https://github.com/X-OR-Cloud/kairouter-mcp.git
cd kairouter-mcp
npm install
npm run build这会生成 dist/index.js。你需要一个 KaiRouter API 密钥——在 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或者直接添加到 .mcp.json(项目)/ ~/.claude.json(用户):
{
"mcpServers": {
"kairouter": {
"command": "node",
"args": ["/absolute/path/to/kairouter-mcp/dist/index.js"],
"env": { "KAIROUTER_API_KEY": "sk-xor-your-key-here" }
}
}
}Codex CLI
添加到 ~/.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 / 其他兼容 MCP 的代理框架
大多数框架接受上面 Claude Code 部分中相同的 mcpServers JSON 块——请查看该框架自己的 MCP 设置以了解确切的配置文件路径/界面,因为这会因框架而异,此处未针对 Antigravity 专门验证。
配置
环境变量 | 是否必需 | 默认值 | 说明 |
| 是(用于 | — | 来自 https://kairouter.com/dashboard/api-keys。 |
| 否 |
| 可覆盖以指向暂存/本地 KaiRouter 实例。 |
开发
npm run dev # tsc --watch
npm start # run the built server directly over stdio (for manual testing with an MCP client)Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to Vidu's video generation models for creating high-quality videos from text, images, and reference content. It enables users to generate creative video content directly within MCP-compatible applications like Claude and Cursor.55MIT
- AlicenseNot gradedqualityDmaintenanceExposes litmedia.ai text-to-image and image-to-video generation tools via MCP, enabling AI agents to generate images and videos directly from prompts.1MIT
- FlicenseAqualityCmaintenanceEnables video generation using the Seedance 2.0 model through MCP, supporting both OpenAI and Volcengine API formats with tools for creating, monitoring, and downloading videos.6
- FlicenseNot gradedqualityDmaintenanceProvides a audio/video creation toolbox via MCP protocol, enabling natural language-based video editing tasks such as image-to-video, video merging, subtitle extraction, and more.3
Related MCP Connectors
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/X-OR-Cloud/kairouter-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server