Skip to Content

Install the local Mux MCP Server

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.

Tools & Routes

Here are the following tools and API routes supported in the local Mux MCP Server:

  • Video API: Create assets, uploads, live streams, playback URLs
  • Data API: Query metrics, dimensions, real-time data
  • Webhook management: List and verify webhook signatures
  • Asset management: Retrieve, update video metadata
  • Live streaming: Create streams, manage recordings
  • Analytics: Performance metrics, viewer data, error tracking

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:

  • Asset deletion endpoints
  • Live stream deletion endpoints
  • Webhook deletion endpoints

Prompt examples

Video Management

  • Using the Mux tool, create a webpage where I can upload a video to Mux
  • Give me the playback URL for the most recently uploaded video to my Mux account, use Mux MCP
  • List all my video assets and their current status (using the Mux MCP tool)
  • With the Mux tool: Show me recent video uploads
  • Using Mux MCP, generate a subtitles track for asset ID: ASSET_ID

Mux Data Analytics and Performance

  • Using the Mux MCP, tell me the best performing country for video streaming over the last month
  • Show me video performance metrics for the last week using the Mux tool
  • With the Mux tool: what are the top performing videos by view count?
  • Using Mux, which countries have the highest video engagement?
  • What are the most common video errors in my account (use the Mux MCP)?
  • Show me breakdown values for video quality metrics using the Mux MCP tool
  • List all available data dimensions I can filter by, use the Mux MCP to answer this prompt

Prerequisites

Before installing the Mux MCP Server, make sure you meet the following prerequisites:

  • Node.js installed on locally on your machine (instructions available here)
  • A Mux account (sign up at mux.com if you don't have one)
  • Your Mux API access token and secret key from the Mux Dashboard (detailed instructions are available below)
  • Claude Desktop, Cursor, or any other client that supports local MCP servers, installed and updated to the latest version

Installation

Get your Mux API credentials and configure access

  1. Log into your Mux Dashboard
  2. Navigate to Settings → Access Tokens
  3. Generate a new access token or use an existing one
  4. Copy your Access Token ID and Secret Key - you'll need both for the configuration
  • Your Mux access token should be configured for your desired Environment and read/write access
  • We recommend clearly labeling this access token in Mux, for example: MCP Access Token

Important: Replace the placeholder values when adding to your AI client's config using the templates provided below:

  • Replace your_access_token_id with your actual Mux Access Token ID
  • Replace your_secret_key with your actual Mux Secret Key

Note: 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"],

For Claude

  • You must use Claude's Desktop app to install local MCP servers.

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.

For Cursor

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"
      }
    }
  }
}

For VSCode

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 .

Verify installation

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.

Troubleshooting

Build Issues

If you encounter errors during the build process:

  • Make sure you have the correct Node.js version installed, and that npx is accessible in your PATH (npx -v)

Connection Issues

If Claude can't connect to the MCP server:

  • Double-check that your file path in the args field is correct and points to the built MCP server file
  • Verify your Mux credentials are correct and properly formatted
  • Make sure there are no extra spaces or characters in your token values
  • Confirm your API tokens have the necessary permissions in your Mux account

Claude Desktop Issues

If MCP features don't appear in Claude:

  • Ensure you're using the latest version of Claude Desktop - older versions may not support MCP
  • Verify your JSON configuration is valid (no missing commas or brackets)
  • Check that Claude Desktop has restarted completely after configuration changes

Getting help

If you run into issues or have questions:

Was this page helpful?