media
Mux MCP, CLI, and Lua Integration for AI Agents
Mux integration docs for AI agents: MCP gateway setup, Mux CLI commands, Lua API reference, credentials, and function schemas.
7 functions 5 read 2 write Bearer token auth
Mux for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
mux- route_slug
mux- package
mux- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Mux CLIHeadless setup and direct function calls. Mux MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Mux MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mux.
Claude Code Mux MCP setup for Claude Code. Cursor Mux MCP setup for Cursor. Codex Mux MCP setup for Codex. OpenAI Agents Mux MCP setup for OpenAI Agents SDK. Claude Agent SDK Mux MCP setup for Claude Agent SDK. Vercel AI SDK Mux MCP setup for Vercel AI SDK. LangChain Mux MCP setup for LangChain. LangGraph Mux MCP setup for LangGraph. CrewAI Mux MCP setup for CrewAI. MCP clients Mux MCP setup for Generic MCP Clients.
Mux CLI Matrix
Use these pages for direct Mux CLI workflows in scripts, CI, cron, and agent wrappers.
CI Mux CLI for CI. Cron Jobs Mux CLI for cron jobs. Shell Scripts Mux CLI for shell scripts. Headless Automation Mux CLI for headless automation. Coding Agents Mux CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
mux.mux_list_assets | Read read | 2 | List video assets stored in Mux. Returns a paginated list of assets with their IDs, status, duration, and playback information. |
mux.mux_get_asset | Read read | 1 | Retrieve details of a specific video asset by its ID, including status, playback IDs, duration, and tracks. |
mux.mux_create_asset | Write write | 2 | Create a new video asset in Mux from an input URL. The asset is ingested and encoded asynchronously. Optionally set a playback policy (public or signed). |
mux.mux_list_live_streams | Read read | 2 | List live streams in Mux. Returns a paginated list of live streams with their IDs, status, stream key, and playback information. |
mux.mux_get_live_stream | Read read | 1 | Retrieve details of a specific live stream by its ID, including status, stream key, playback IDs, and reconnect window. |
mux.mux_create_live_stream | Write write | 2 | Create a new live stream in Mux. Returns the stream key and playback information. Optionally set playback policy and asset creation settings. |
mux.mux_get_current_user | Read read | 0 | Get realtime viewer data from Mux Data, including current viewer counts across all properties and views. |