Mux MCP Server
Published
At a glance
- Category
- Content & storage
- GitHub repository
- muxinc/mux-ts
- Watch out for
- Mux notes that the server does not treat destructive operations specially; what it can do depends on the token or environment you authorize, so use a Read-only token if the agent should change nothing.
Mux ships an official MCP server for its video and data platform. The quickest route is the hosted endpoint at https://mcp.mux.com, which signs you in with OAuth through the Mux dashboard. The same server is published as the npm package @mux/mcp, with its source in the packages/mcp-server folder of Mux's TypeScript SDK repo, so you can also run it yourself over stdio or as a Streamable HTTP server.
The design is unusual. Rather than one tool per API endpoint, it uses what Mux calls Code Mode: the agent gets a docs search tool and a code tool, writes TypeScript against the Mux SDK, and receives whatever that code returns or prints. On the hosted server each execute call runs in a fresh sandbox owned by Mux, with network access limited to Mux API hosts. Locally, code runs in an isolated Deno sandbox by default.
Because the agent can call almost anything in the SDK, the reach is wide. Mux lists Video (assets, direct uploads, playback IDs, tracks, live streams), Data (metrics, dimensions, real-time monitoring, views, exports), Mux Robots jobs and workflows, signing keys and webhook verification.
How it connects
Your AI app
An assistant or agent that supports MCP
Mux MCP Server
Runs as
- npx (Node.js)
- Remote (HTTP)
Gives the agent
- Docs search
- SDK code execution
- Video assets and live streams
- Mux Data analytics
- Mux Robots
- Keys and webhooks
Mux
Signs in with
- OAuth / browser sign-in
- Token
What it can do
- Docs search
- search_docs queries documentation for the Mux API and SDKs so the agent can look up a method before calling it.
- SDK code execution
- execute runs TypeScript the agent writes against the Mux SDK and hands back the returned or printed output.
- Video assets and live streams
- Through execute the agent can work with assets, direct uploads, playback IDs, tracks and live streams.
- Mux Data analytics
- The agent can pull metrics, dimensions, video views, real-time monitoring and exports, for questions like which country performed best last month.
- Mux Robots
- Robots jobs, workflows and directives are reachable, so an agent can run a job that generates chapters for an asset.
- Keys and webhooks
- System calls such as whoami and signing key management are available, along with verifying and unwrapping webhook payloads.
Setting it up
For a client that supports remote servers and OAuth, add an MCP server (a "connector" in Claude and Claude Code) with the URL https://mcp.mux.com, then log in to dashboard.mux.com and pick the environment to authorize. Clients without OAuth can send an access token from Settings > Access Tokens as Basic auth: base64-encode TOKEN_ID:TOKEN_SECRET and put it in an "Authorization": "Basic ..." header alongside "url": "https://mcp.mux.com". To run it locally, use npx -y @mux/mcp@latest with MUX_TOKEN_ID and MUX_TOKEN_SECRET set; the README also lists MUX_WEBHOOK_SECRET, MUX_SIGNING_KEY, MUX_PRIVATE_KEY and MUX_AUTHORIZATION_TOKEN. In Claude Code that is claude mcp add mux_mcp_api --env MUX_TOKEN_ID="..." MUX_TOKEN_SECRET="..." -- npx -y @mux/mcp. Cursor users add the same npx command in Cursor Settings > Tools & MCP > New MCP Server, and VS Code users add it to mcp.json via MCP: Open User Configuration. Passing --transport=http runs your own copy as a Streamable HTTP server on the port set by --port.
claude mcp add --transport http mux https://mcp.mux.comIf the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Find the most recently uploaded video and return its playback URL.
- List all video assets in an environment with their current status.
- Generate a subtitles track for a given asset ID.
- Run a Mux Robots job to create chapters for a video, or summarize it and suggest tags.
- Answer analytics questions such as the most common playback errors or top videos by view count.
Limitations and things to watch
- Mux notes that the server does not treat destructive operations specially; what it can do depends on the token or environment you authorize, so use a Read-only token if the agent should change nothing.
- Local code execution needs Deno; where the optional deno dependency cannot install, such as on Alpine, you must set DENO_PATH to Deno 2.9 or newer.
- When self-hosting over HTTP, callers can override credentials and code tool permissions through x-stainless-mcp-client-* headers unless you start it with --no-client-header-overrides.
- Older clients without built-in remote MCP support need the local install or mcp-remote to connect.
Sources
Written from the project's own documentation, checked November 2026.
- mux.com /docs/integrations/mcp-server
- github.com /muxinc/mux-ts
- github.com /muxinc/mux-ts/tree/main/packages/mcp-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.