Video streaming API
## Mux MCP Server: Video Infrastructure for Developers The **Mux MCP Server** integrates the modern video infrastructure platform directly into Google Antigravity, enabling AI assistants to upload, stream, and analyze video content programmatically. This developer-focused integration brings professional video streaming capabilities to your workflow without complex infrastructure management. ### Why Mux MCP? - **Developer-First Design**: Clean APIs and straightforward integration for video streaming without media expertise - **Automatic Encoding**: Upload once and Mux handles adaptive bitrate encoding for all devices - **Real-Time Analytics**: Access viewer engagement, quality metrics, and performance data instantly - **Live Streaming**: Professional live streaming with low latency and global distribution - **Data API**: Comprehensive analytics for understanding viewer behavior and content performance ### Key Features #### 1. Video Upload ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Upload this video file to Mux and get a playback URL for embedding" }], tools=[{ "name": "mux_upload", "description": "Upload and process videos" }] ) ``` #### 2. Live Streaming ```python # Create live streams response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a new live stream with low latency mode and get the RTMP credentials" }], tools=[{"name": "mux_live", "description": "Manage live streams"}] ) ``` #### 3. Video Analytics ```python # Access video metrics response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show me viewer engagement metrics and watch time for our videos this week" }], tools=[{"name": "mux_data", "description": "Access video analytics"}] ) ``` #### 4. Asset Management ```python # Manage video assets response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List all our video assets and their current encoding status" }], tools=[{"name": "mux_assets", "description": "Manage video assets"}] ) ``` ### Configuration ```json { "mcpServers": { "mux": { "command": "npx", "args": ["-y", "@anthropic/mcp-mux"], "env": { "MUX_TOKEN_ID": "your-token-id", "MUX_TOKEN_SECRET": "your-token-secret" } } } } ``` ### Use Cases **Video Platforms**: Build video-on-demand platforms with professional encoding and global delivery. **Live Events**: Stream live events with studio-quality encoding and real-time viewer analytics. **E-Learning**: Create video-based courses with engagement tracking and completion metrics. **User-Generated Content**: Accept and process video uploads with automatic quality optimization. The Mux MCP Server brings modern video infrastructure directly into your development workflow, enabling professional video streaming without ops complexity.
{
"mcpServers": {
"mux": {
"mcpServers": {
"mux": {
"env": {
"MUX_TOKEN_ID": "your-token-id",
"MUX_TOKEN_SECRET": "your-token-secret"
},
"args": [
"-y",
"mux-mcp-server"
],
"command": "npx"
}
}
}
}
}