MCP Server
The BlendVision MCP Server is a Model Context Protocol (MCP) server that enables AI assistants — such as Claude, Cursor, and VS Code Copilot — to interact directly with BlendVision One APIs. With 35+ built-in tools spanning VOD, live streaming, chatrooms, analytics, and more, you can manage your video platform through natural language conversations.
Prerequisites
- Node.js 18 or later
- A valid BlendVision API token — see Authentication for how to obtain one
Installation
Using npx (no installation required)
npx @blendvision/mcp-server
Global installation via npm
npm install -g @blendvision/mcp-server
Build from source
git clone https://github.com/BlendVision/mcp-server.git
cd mcp-server
npm install
npm run build
Configuration
Environment variables
| Variable | Required | Description |
|---|---|---|
BLENDVISION_API_TOKEN | Yes | Your BlendVision API token |
BLENDVISION_BASE_URL | No | API base URL (defaults to https://api.one.blendvision.com) |
Claude Desktop
Add the following to your Claude Desktop configuration file.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"blendvision": {
"command": "npx",
"args": ["-y", "@blendvision/mcp-server"],
"env": {
"BLENDVISION_API_TOKEN": "<your-api-token>"
}
}
}
}
Claude Code
In the project root, create or edit .mcp.json:
{
"mcpServers": {
"blendvision": {
"command": "npx",
"args": ["-y", "@blendvision/mcp-server"],
"env": {
"BLENDVISION_API_TOKEN": "<your-api-token>"
}
}
}
}
Cursor / VS Code
Add the server under the MCP settings in your IDE configuration. Refer to the MCP protocol documentation for IDE-specific setup guides.
Available tools
Video On Demand
| Tool | Description |
|---|---|
list_videos | List all videos with filtering options |
get_video | Get video details by ID |
create_video | Create a new video |
update_video | Update video metadata |
delete_video | Delete a video |
update_vod_subtitles | Update subtitles for a VOD video |
Live Streaming
| Tool | Description |
|---|---|
list_live_channels | List all live channels |
get_live_channel | Get channel details by ID |
create_live_channel | Create a new live channel |
update_live_channel | Update channel settings |
delete_live_channel | Delete a channel |
start_live | Start live streaming on a channel |
stop_live | Stop live streaming on a channel |
cancel_live_channel | Cancel and archive a live stream |
archive_live_channel | Archive a live stream permanently |
Library & File Upload
| Tool | Description |
|---|---|
upload_file | Initiate file upload and get presigned URLs |
complete_file_upload | Complete a file upload session after uploading parts |
Chatroom
| Tool | Description |
|---|---|
list_chatrooms | List all chatrooms |
get_chatroom | Get chatroom details |
create_chatroom | Create a new chatroom |
send_chatroom_message | Send a message to a chatroom |
Account & Organization
| Tool | Description |
|---|---|
get_account | Get current account information |
list_organizations | List accessible organizations |
Playback
| Tool | Description |
|---|---|
generate_playback_token | Generate a playback token for content access |
list_playback_codes | List playback codes for a resource |
Analytics
| Tool | Description |
|---|---|
get_analytics | Retrieve analytics reports with various report types |
Example prompts
Once connected, you can interact with BlendVision through natural language:
- "List all my videos"
- "Create a new live channel called 'Product Launch'"
- "Generate a playback token for video ID abc123"
- "Show me analytics for the last 7 days"
- "Upload a video file and set its title to 'Demo'"
- "Send a welcome message to the main chatroom"
Architecture
The MCP server follows a modular, layered design:
- Protocol Layer — handles MCP protocol routing and message parsing
- Tool Registry — centralized tool registration and discovery
- Tool Modules — domain-specific implementations (VOD, Live, Chatroom, etc.)
- Base Tool Layer — shared features such as retry logic, pagination, and error handling
- Client Layer — HTTP communication with the BlendVision One API
Testing
MCP Inspector
Use the built-in inspector to test tools interactively via a web interface:
npm run inspector
Connection test
Verify that your API credentials are valid:
export BLENDVISION_API_TOKEN="<your-api-token>"
npm run test:connection