Connect the Mux MCP server to your AI tools. Use it when you want an AI agent to upload videos, manage live streams, or query Mux Data for you.
The Mux MCP (Model Context Protocol) Server brings Mux's Video and Data platform capabilities directly to your AI tools. Once set up, 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 how the Mux MCP server works and how to connect it to various AI clients. The quickest way to get started is the remote server hosted at https://mcp.mux.com.
The Mux MCP server is built on the "Code Mode" tool scheme. Rather than exposing hundreds of individual endpoint tools, it exposes just two tools to your agent:
search_docs for querying documentation about Mux's API and SDKs.execute where your agent writes TypeScript against the full Mux SDK, @mux/ts. Anything the code returns or prints is handed back to the agent as the result of the tool call.On the hosted server, each execute call runs in a fresh, isolated Mux-owned sandbox with network access limited to Mux API hosts.
Because the agent writes and runs real SDK code, it can perform complex, multi-step tasks deterministically and repeatably while keeping the model's context window small. The full surface of the Mux SDK is reachable this way, including:
whoami)Because execute exposes the whole SDK, Mux Robots is fully usable through the MCP server, including directives.
What the server can do is governed by the Mux environment and access token you authorize it with, and it doesn't treat destructive operations specially. To make sure an agent can't change anything, connect with an access token that has only Read permissions, using Basic credentials (see below) or a local installation.
Video Management
ASSET_IDMux Robots
ASSET_IDMux Data Analytics and Performance
Before utilizing the Mux MCP Server, make sure you meet the following prerequisites:
Mux's MCP server is hosted at https://mcp.mux.com. To configure it in your client, add an MCP server — sometimes called a "connector" (Claude/Claude Code/ChatGPT), an "extension" (Goose), or simply an MCP Server (VS Code) — and enter the URL https://mcp.mux.com as the location.
Every request to the server, including the initial connection, requires credentials. Clients that support OAuth handle this automatically, so there's no need to grab Access Token information from the Dashboard. Your client prompts you to:
When you're already logged in, your experience will look something like this:

Once you've logged in and chosen an environment, you're good to go!
If your client can't do OAuth, you'll need a Mux access token, which you can create under Settings → Access Tokens in the Mux Dashboard. The simplest option is to run the server locally, which takes the token ID and secret directly as the MUX_TOKEN_ID and MUX_TOKEN_SECRET environment variables.
To use the hosted server instead, send the token as Basic credentials in the Authorization header: join the ID and secret as TOKEN_ID:TOKEN_SECRET and base64-encode the result. For clients with a configuration JSON, that looks something like this:
{
"mcpServers": {
"mux": {
"url": "https://mcp.mux.com",
"headers": {
"Authorization": "Basic <base64 of TOKEN_ID:TOKEN_SECRET>"
}
}
}
}The access token determines which environment the server acts on and what it's allowed to do, so treat this configuration like any other secret.
These days, most LLM clients directly support remote MCP servers (rather than locally installed ones), so you shouldn't have much trouble getting set up. That said, there are still some clients (particularly older versions) that don't have built-in remote MCP support. For those situations, you have two options:
If you run into issues or have questions: