Set up the Mux Model Context Protocol (MCP) Server to bring Mux's Video and Data platform capabilities directly to your AI tools.
The Mux MCP (Model Context Protocol) Server brings Mux's Video and Data platform capabilities directly to your AI tools. Once installed, you can upload videos, manage live streams, analyze video performance, and access practically all of Mux's video infrastructure through natural language prompts in supported AI clients.
This guide walks you through building and installing the Mux MCP Server locally on your machine and connecting it to various AI clients.
Here are the following tools and API routes supported in the local Mux MCP Server:
Here are the tools and routes we don't currently support in the local Mux MCP Server. Generally speaking, these are composed of endpoints which can execute deletions, and are disabled for safety:
Video Management
ASSET_ID
Mux Data Analytics and Performance
Before installing the Mux MCP Server, make sure you meet the following prerequisites:
MCP Access Token
Important: Replace the placeholder values when adding to your AI client's config using the templates provided below:
your_access_token_id
with your actual Mux Access Token IDyour_secret_key
with your actual Mux Secret KeyNote: If you're using a tool that manages Node versions like Mise, you'll probably need to make sure you execute the npx commands found in the following examples from within that context. An example Mise command could look something like this:
mise x node@20 -- npx -y @mux/mcp@latest
Accordingly, the following examples would need to be changed similarly to below:
"command": "mise",
"args": ["x", "node@20", "--", "npx", "-y", "@mux/mcp@latest","--tools=dynamic","--client=claude"],
We support the recently released Claude Desktop Extensions format, so you can download this DXT file and open it with Claude Desktop to install it. Once it's installed, configure the environment variables you need and you're good to go.
If you'd like to configure it manually, follow the next steps.
Follow Claude's instructions to locate your Claude Desktop configuration file on your machine.
macOS/Linux:
~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this configuration block to your claude_desktop_config.json
file:
{
"globalShortcut": "",
"mcpServers": {
"mux": {
"command": "npx",
"args": ["-y", "@mux/mcp@latest","--tools=dynamic","--client=claude"],
"env": {
"MUX_TOKEN_ID": "your_access_token_id",
"MUX_TOKEN_SECRET": "your_secret_key"
}
}
}
}
Close and reopen Claude Desktop to load the new MCP server configuration.
Follow the paths below to locate your Cursor MCP configuration file. If the file does not exist, you can create it.
macOS/Linux:
~/.cursor/mcp.json
Windows:
C:/Users/<username>/.cursor/mcp.json
{
"mcpServers": {
"mux": {
"command": "npx",
"args": ["-y", "@mux/mcp@latest","--tools=dynamic","--client=cursor"],
"env": {
"MUX_TOKEN_ID": "your_access_token_id",
"MUX_TOKEN_SECRET": "your_secret_key"
}
}
}
}
To add the server to all of your workspaces globally, add the server configuration to your settings.json
file.
macOS:
~/Library/Application\ Support/Code/User/settings.json
Linux:
~/.config/Code/User/settings.json
Windows:
%APPDATA%\Code\User\settings.json
{
"mcp": {
"servers": {
"mux": {
"command": "npx",
"args": ["-y", "@mux/mcp@latest","--tools=dynamic"],
"env": {
"MUX_TOKEN_ID": "your_access_token_id",
"MUX_TOKEN_SECRET": "your_secret_key"
}
}
}
}
}
In VSCode, make sure to click on the Start
button in the MCP Server to start the server. You can do this directly from the settings file, or from the Command Palette with MCP: List Servers
.
Test that the Mux MCP Server is working by asking your AI client:
Give me the details for the most recently created Mux Video asset (using the Mux tool)
or
Using the Mux MCP, list the best performing countries for video streaming over the last month using Mux Data
If the installation was successful, Claude will connect to the Mux API through the MCP server and return information about your video performance or assets.
Build Issues
If you encounter errors during the build process:
npx -v
)Connection Issues
If Claude can't connect to the MCP server:
args
field is correct and points to the built MCP server fileClaude Desktop Issues
If MCP features don't appear in Claude:
If you run into issues or have questions: