Mux

com.mux由 mux.com 发布官方发布者v12.8.0更新于 Oct 27, 2026

The official MCP Server for the Mux API

已验证Streamable HTTP可网页运行开发者工具媒体与设计

概览

AI 生成的概览

Mux 官方 MCP 服务器,让助手查询 Mux API 文档并在沙箱中运行 TypeScript SDK 代码来管理视频资产与播放。

可以做什么
  • 搜索 Mux API 与 SDK 文档
  • 在隔离沙箱中编写并执行 TypeScript SDK 代码以调用 Mux API
  • 把沙箱代码打印或返回的内容作为工具结果回传
  • 以 stdio 本地运行,或作为远程 Streamable HTTP 服务器运行
适用场景
适合希望助手通过官方 API 处理 Mux 账户事务(如查看或修改视频资产、直播与播放设置)而不必手动操作控制台的场景,也适合在写代码时查询 Mux SDK 用法。
运行要求
需要远程端点,或通过 npx 运行 npm 包(Node.js)。必须提供 Mux 访问令牌 ID 与密钥(MUX_TOKEN_ID、MUX_TOKEN_SECRET),也可改用 OAuth 或 Authorization 头。签名播放 ID 可选 MUX_SIGNING_KEY 与 MUX_PRIVATE_KEY。本地代码执行需要 Deno(自动安装或用 DENO_PATH 指定);远程沙箱模式需要 CODE_SANDBOX_URL 与 CODE_SANDBOX_API_KEY。
安装前请注意
服务器持有 Mux API 凭据并能操作你的 Mux 账户,其运行的代码可能创建、修改或删除资产等资源。私钥(MUX_PRIVATE_KEY)与签名密钥属敏感机密。默认情况下 HTTP 调用方可通过请求头覆盖客户端环境值与代码工具权限,公开部署应使用 --no-client-header-overrides 关闭。远程沙箱模式会把代码发送给第三方服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mux,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.mux%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "mux": {
      "type": "http",
      "url": "https://mcp.mux.com/"
    }
  }
}

README

Mux TypeScript MCP Server

Installation

Direct invocation

You can run the MCP Server directly via npx:

sh
export MUX_TOKEN_ID="my token id"export MUX_TOKEN_SECRET="my secret"export MUX_WEBHOOK_SECRET="My Webhook Secret"export MUX_SIGNING_KEY="My Jwt Signing Key"export MUX_PRIVATE_KEY="My Jwt Private Key"export MUX_AUTHORIZATION_TOKEN="my authorization token"npx -y @mux/mcp@latest

Via MCP Client

There is a partial list of existing clients at modelcontextprotocol.io. If you already have a client, consult their documentation to install the MCP server.

For clients with a configuration JSON, it might look something like this:

json
{  "mcpServers": {    "mux": {      "command": "npx",      "args": ["-y", "@mux/mcp"],      "env": {        "MUX_TOKEN_ID": "my token id",        "MUX_TOKEN_SECRET": "my secret",        "MUX_WEBHOOK_SECRET": "My Webhook Secret",        "MUX_SIGNING_KEY": "My Jwt Signing Key",        "MUX_PRIVATE_KEY": "My Jwt Private Key",        "MUX_AUTHORIZATION_TOKEN": "my authorization token"      }    }  }}

Cursor

If you use Cursor, you can install the MCP server by using the button below. You will need to set your environment variables in Cursor's mcp.json, which can be found in Cursor Settings > Tools & MCP > New MCP Server.

[Add to Cursor]

VS Code

If you use MCP, you can install the MCP server by clicking the link below. You will need to set your environment variables in VS Code's mcp.json, which can be found via Command Palette > MCP: Open User Configuration.

Open VS Code

Claude Code

If you use Claude Code, you can install the MCP server by running the command below in your terminal. You will need to set your environment variables in Claude Code's .claude.json, which can be found in your home directory.

claude mcp add mux_mcp_api --env MUX_TOKEN_ID="my token id" MUX_TOKEN_SECRET="my secret" MUX_WEBHOOK_SECRET="My Webhook Secret" MUX_SIGNING_KEY="My Jwt Signing Key" MUX_PRIVATE_KEY="My Jwt Private Key" MUX_AUTHORIZATION_TOKEN="my authorization token" -- npx -y @mux/mcp

Code Mode

This MCP server is built on the "Code Mode" tool scheme. In this MCP Server, your agent will write code against the TypeScript SDK, which will then be executed in an isolated sandbox. To accomplish this, the server will expose two tools to your agent:

  • The first tool is a docs search tool, which can be used to generically query for documentation about your API/SDK.

  • The second tool is a code tool, where the agent can write code against the TypeScript SDK. The code will be executed in a sandbox environment without web or filesystem access. Then, anything the code returns or prints will be returned to the agent as the result of the tool call.

Using this scheme, agents are capable of performing very complex tasks deterministically and repeatably.

Execution modes

By default (--code-execution-mode=local), code runs on the MCP server machine in an isolated Deno sandbox. Setting --code-execution-mode=remote (or the MCP_SERVER_CODE_EXECUTION_MODE environment variable) sends code to a remote code sandbox service instead, configured with:

  • --code-sandbox-url / CODE_SANDBOX_URL: URL of the sandbox service. Required in remote mode.
  • --code-sandbox-api-key / CODE_SANDBOX_API_KEY: API key for the sandbox service, sent as a Bearer token. Required in remote mode.

Local mode runs the code under Deno, which the package installs for itself through its optional deno dependency. Where that cannot install — a blocked binary download, npm install --omit=optional, or a platform Deno does not ship an npm build for, such as Alpine — set DENO_PATH to a Deno 2.9 or newer executable. The same variable applies to mcp-code-runner below. The desktop bundle (.mcpb) never includes Deno; its settings expose DENO_PATH for the same purpose.

Request headers a caller may send

Over the HTTP transport, x-stainless-mcp-client-envs lets a caller supply client environment values (for example credentials) and x-stainless-mcp-client-permissions lets it adjust code tool permissions. Both are honored by default so a trusted proxy in front of the server can use them. A public deployment whose callers must not do either should start the server with --no-client-header-overrides (or pass clientHeaderOverrides: false in mcpOptions when embedding streamableHTTPApp).

Running code outside the server

The package also installs a mcp-code-runner bin for sandbox services that execute caller code in their own VM. It runs one request through the same Deno worker as local execution mode: feed it {"code": ..., "client_opts": ...} as JSON on stdin or as a file argument; it writes one {is_error, result, log_lines, err_lines} JSON line to stdout and Deno's own output to stderr. The network grant is the set of hosts the SDK calls (the client's base URL plus the media hosts some endpoints use), as in local execution mode.

Running remotely

Launching the client with --transport=http launches the server as a remote server using Streamable HTTP transport. The --port setting can choose the port it will run on, and the --socket setting allows it to run on a Unix socket.

Authorization can be provided via the Authorization header using the Basic or Bearer scheme.

Additionally, authorization can be provided via the following headers:

HeaderEquivalent client optionSecurity scheme
x-mux-token-idtokenIdaccessToken
x-mux-token-secrettokenSecretaccessToken
x-mux-authorization-tokenauthorizationTokenauthorizationToken

A configuration JSON for this server might look like this, assuming the server is hosted at http://localhost:3000:

json
{  "mcpServers": {    "mux": {      "url": "http://localhost:3000",      "headers": {        "Authorization": "Basic <auth value>"      }    }  }}

来源:packages/mcp-server/README.md,提交 59af362

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v12.8.0最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分