This server integrates Shaka Packager with Claude AI applications for video processing, enabling you to analyze, convert, and package video files directly through Claude Desktop. It works alongside the Filesystem MCP server to help Claude access and process media files on your computer.
pip install shaka-packager-mcp
Or with uv:
uv pip install shaka-packager-mcp
git clone https://github.com/coderjun/shaka-packager-mcp.git
cd shaka-packager-mcp
pip install -e .
Since Claude Desktop doesn't directly support video file uploads, you'll need two servers working together:
docker pull mcp/filesystem
Locate your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add both servers to your configuration:
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/PATH/TO/VIDEOS/DIRECTORY,dst=/projects/video-drop",
"mcp/filesystem",
"/projects"
]
},
"shaka-packager": {
"command": "/ABSOLUTE/PATH/TO/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/ABSOLUTE/PATH/TO/shaka_packager_mcp.py"
],
"env": {
"VIDEO_PATH": "/PATH/TO/VIDEOS/DIRECTORY",
"SHAKA_PACKAGER_PATH": "/PATH/TO/PACKAGER"
}
}
}
}
Replace all placeholder paths with absolute paths on your system.
Restart Claude Desktop to apply the configuration changes.
Once both servers are running in Claude Desktop:
Access your video files:
Please show me the files in my Videos directory
Analyze a video:
Please analyze this video: /Users/username/Videos/my_video.mp4
Package a video:
Please package this video for HLS and DASH streaming: /Users/username/Videos/my_video.mp4
The server provides these key tools:
Configure the server using environment variables:
SHAKA_PACKAGER_PATH
: Path to the Shaka Packager executableVIDEO_PATH
: Path to your local video directoryDOCKER_PATH
: Docker container mount path (default: "/projects/video-drop")TEMP_DIR
: Custom temporary directory for file uploadsLOG_LEVEL
: Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)COMMAND_TIMEOUT
: Timeout in seconds for commands (default: 300)You can set these in your Claude Desktop configuration file or a .env
file:
SHAKA_PACKAGER_PATH=/usr/local/bin/packager
VIDEO_PATH=/Users/yourusername/Videos
LOG_LEVEL=DEBUG
If you encounter issues:
~/Library/Logs/Claude/mcp*.log
%APPDATA%\Claude\logs\mcp*.log
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "shaka-packager" '{"command":"/ABSOLUTE/PATH/TO/uv","args":["run","--with","mcp[cli]","/ABSOLUTE/PATH/TO/shaka_packager_mcp.py"],"env":{"VIDEO_PATH":"/PATH/TO/VIDEOS/DIRECTORY","SHAKA_PACKAGER_PATH":"/PATH/TO/PACKAGER"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"shaka-packager": {
"command": "/ABSOLUTE/PATH/TO/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/ABSOLUTE/PATH/TO/shaka_packager_mcp.py"
],
"env": {
"VIDEO_PATH": "/PATH/TO/VIDEOS/DIRECTORY",
"SHAKA_PACKAGER_PATH": "/PATH/TO/PACKAGER"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"shaka-packager": {
"command": "/ABSOLUTE/PATH/TO/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"/ABSOLUTE/PATH/TO/shaka_packager_mcp.py"
],
"env": {
"VIDEO_PATH": "/PATH/TO/VIDEOS/DIRECTORY",
"SHAKA_PACKAGER_PATH": "/PATH/TO/PACKAGER"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect