Skip to content
Mux MCP Server

Mux MCP Server

by Mux
Released
1 views
v15.3.0
Apache-2.0

Summary

Official MCP server for the Mux video API, built on a code-execution scheme: the agent writes TypeScript against the SDK and runs it in a Deno sandbox.

Features

  • Code Mode: two tools — docs search and a TypeScript code tool — instead of one per endpoint
  • Agent-written code runs in an isolated Deno sandbox, no filesystem, host-scoped network
  • Remote hosted server at mcp.mux.com with OAuth, or local stdio via npx
  • Covers assets, live streams, playback IDs, signing keys, webhooks and Mux Data
  • Local or remote execution mode, plus an mcp-code-runner bin for external sandboxes

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the environment variables with your own values.
  3. Restart the agent — the "Mux MCP Server" tools will be available.
{
  "mcpServers": {
    "mux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mux/mcp"
      ],
      "env": {
        "MUX_TOKEN_ID": "<your token id>",
        "MUX_TOKEN_SECRET": "<your token secret>"
      }
    }
  }
}

Description

Mux is the video API behind a large share of the web's on-demand and live playback: you POST an asset, it transcodes, stores and serves it, and Mux Data reports on how playback actually went. This is the company's own MCP server for that API, published from the mux-ts SDK monorepo and released to npm as @mux/mcp.

Its design is unusual and worth understanding before you install it. Rather than exposing one MCP tool per API endpoint — which for an API this size would flood an agent's context — it uses Stainless's Code Mode scheme and exposes exactly two tools: a documentation search tool for querying the SDK surface, and a code tool where the agent writes TypeScript against the Mux SDK. That code executes in an isolated Deno sandbox with no filesystem access and network access granted only to the hosts the SDK calls. One tool call can therefore create an asset, poll for readiness, attach a playback ID and pull its view metrics, rather than five separate round trips.

Sandboxing runs locally by default, under a Deno runtime the package installs for itself; DENO_PATH points at your own binary where that install cannot work (Alpine, --omit=optional, blocked downloads). Setting --code-execution-mode=remote hands execution to an external sandbox service instead. A companion mcp-code-runner binary runs a single request through the same worker for platforms that execute caller code in their own VM.

Two ways to connect. Locally, npx -y @mux/mcp with MUX_TOKEN_ID and MUX_TOKEN_SECRET from your Mux dashboard, plus optional MUX_SIGNING_KEY and MUX_PRIVATE_KEY if your workflow needs signed playback IDs. Remotely, Mux hosts the server at https://mcp.mux.com, which authenticates over OAuth or an HTTP Basic header built from the same token pair. Apache-2.0.

Related MCP Servers

MCP: ripwire

by Red Hat

New

Red Hat's zero-dependency C++23 code-context engine — ranked call graphs and blast-radius analysis, indexing a repo in under half a second with no server and no database.

MCP: Graft

by Trail

New

Builds a searchable markdown graph of your repo so coding agents stop re-exploring it on every task — reported 42% fewer tokens and 46% fewer tool calls.

New

Expo's official remote MCP server — searches Expo docs, installs compatible SDK packages, triggers and monitors EAS builds, and drives iOS/Android simulators.

MCP: Hugging Face

by Hugging Face

New

Hugging Face's official MCP server — search the Hub's models, datasets and Spaces, read repository files, and call thousands of Gradio applications as tools from one remote endpoint.

Browse all MCP servers →