Shotflow Mcp

io.github.JOHNZhang-uiPublished by GitHub account JOHNZhang-uiv1.0.0Updated Oct 24, 2026

ShotFlow MCP Server — AI分镜脚本与视频生成智能体,支持生成专业分镜、视频、镜头重生成、配额查询等能力。

VerifiedSTDIODesktop onlyMedia & DesignAI & ML

Overview

AI-generated overview

ShotFlow MCP server lets an AI assistant generate professional storyboards and videos from scripts or ideas, with shot regeneration and quota checks.

What you can do
  • Generate storyboards from a script or creative description, with 6 creative types and 7 visual styles
  • Generate videos from storyboard shots, check generation status, and list video task history
  • Regenerate a single shot
  • Check today's quota and service health
  • Read resources listing creative-type templates and visual-style references
When to use it
Use it when you want an assistant to turn a script or idea into a structured storyboard and then into short videos, or to manage and re-run individual shots inside a ShotFlow workflow.
Requirements
Either connect to the hosted endpoint over HTTP, or run the local Node.js 18+ server, which needs a ShotFlow Express API reachable at SHOTFLOW_API_URL (default localhost:3003) and listens on MCP_PORT. An optional MCP_API_KEY can be set for authentication.
Before you install
Video generation is described as a Pro feature and quota is limited per day, so usage may consume paid or limited credits. The optional MCP_API_KEY is a secret; keep it out of shared configs. Requests and prompts are sent to the ShotFlow service, and the local server forwards them to the ShotFlow Express API.

Installation

In SourceWeft

  1. Open Shotflow Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

ShotFlow MCP Server

让 AI Agent 直接调用专业分镜脚本生成能力

[MCP Version] [License] [Online]

ShotFlow MCP Server 是 ShotFlow 的 Model Context Protocol 接口实现,让任何支持 MCP 的 AI 客户端(Claude Desktop、Cursor、Cline、VS Code Copilot 等)都能直接调用专业分镜脚本与视频生成能力。


在线使用

无需安装,直接配置 URL 即可使用:

https://aishotflow.cn/mcp

功能一览

Tool说明
generate_storyboard从剧本/创意描述生成专业分镜脚本(6种创作类型 × 7种视觉风格)
generate_video从分镜镜头生成视频(Pro 功能)
check_video_status查询视频生成状态
regenerate_shot单镜头重新生成
list_video_tasks列出视频任务历史
check_quota查询今日配额
check_health检查服务健康状态
Resource说明
shotflow://templates/creative-types6种创作类型模板与默认参数
shotflow://templates/visual-styles7种视觉风格参考与关键词

快速接入

Claude Desktop

编辑配置文件(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json,Windows: %APPDATA%\Claude\claude_desktop_config.json):

json
{  "mcpServers": {    "shotflow": {      "url": "https://aishotflow.cn/mcp"    }  }}

重启 Claude Desktop,点击「Attached tools」确认 shotflow 已加载。

Cursor IDE

在项目根目录创建 .cursor/mcp.json:

json
{  "mcpServers": {    "shotflow": {      "url": "https://aishotflow.cn/mcp"    }  }}

VS Code(1.99+)

在项目根目录创建 .vscode/mcp.json:

json
{  "servers": {    "shotflow": {      "type": "http",      "url": "https://aishotflow.cn/mcp"    }  }}

Cline / Roo-Cline

编辑 ~/.cline/mcp_settings.json:

json
{  "mcpServers": {    "shotflow": {      "url": "https://aishotflow.cn/mcp"    }  }}

调用示例

生成短视频分镜

告诉你的 AI 客户端:

用 shotflow 的 generate_storyboard 工具,帮我生成一个短视频分镜:一个创业者熬夜做产品的故事,3个场景,温情风格,9:16竖屏

AI 会自动调用 MCP Tool,返回结构化分镜结果。

查看可用创作类型

读取 shotflow 的 creative-types 资源,告诉我有哪些创作类型可选


Agent Card(A2A 协议)

其他 AI Agent 可通过以下 URL 自动发现 ShotFlow 的能力:

https://aishotflow.cn/mcp/agent-card

部署自己的实例

要求

  • Node.js 18+
  • ShotFlow Express Server 运行在 localhost:3003

安装

bash
git clone https://github.com/YOUR_USERNAME/shotflow-mcp.gitcd shotflow-mcp# 无需 npm install,零依赖

启动

bash
# 开发模式node shotflow-mcp-server.js# 默认端口 3004
# 生产部署(systemd)sudo cp shotflow-mcp.service /etc/systemd/system/sudo systemctl enable shotflow-mcpsudo systemctl start shotflow-mcp

环境变量

变量默认值说明
MCP_PORT3004MCP Server 监听端口
SHOTFLOW_API_URLhttp://localhost:3003ShotFlow Express 地址
NODE_ENVdevelopment环境模式

架构

AI Client (Claude/Cursor/...)    ↓ Streamable HTTP (JSON-RPC 2.0)Nginx :443    └── /mcp → ShotFlow MCP Server :3004                    └── HTTP → ShotFlow Express :3003
  • 协议: MCP 1.0(Streamable HTTP + SSE)
  • 传输: JSON-RPC 2.0 over HTTP
  • 依赖: 零外部依赖(纯 Node.js 实现)
  • SSE 支持: proxy_buffering off 配合 Nginx 实现流式进度推送

文件结构

shotflow-mcp/├── shotflow-mcp-server.js   # MCP Server 主文件├── tool-definitions.js       # 7个 Tool 的 JSON Schema 定义├── resource-definitions.js   # 2个 Resource 定义├── prompt-builder.js        # Prompt 构造与模型配置解析├── package.json             # npm 包配置├── shotflow-mcp.service     # systemd 服务文件├── INTEGRATION.md          # 详细接入文档├── README.md               # 本文件└── test/    └── test-mcp.js        # 测试套件

测试

bash
# 启动本地服务node shotflow-mcp-server.js &
# 运行测试node test/test-mcp.js

相关链接


许可证

MIT License — 自由使用、修改和分发。


支持

Source: README.md at commit e69109d

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts