Skip to main content

What is MCP?

MCP (Model Context Protocol) is how agents access external tools. An MCP server exposes a set of tools (functions) that the agent can call during a run. muxAI manages which MCP servers each agent can access.

Built-in servers

muxAI ships with several MCP servers out of the box: Built-in servers are registered in config/mcp-registry.json and automatically available when an agent uses Built-in MCP mode.

Custom servers

Add your own MCP servers through the MCP Servers page. Two transport types are supported:

stdio

Runs as a local process. You provide the command and arguments. The agent communicates over stdin/stdout.Example: a Python script that wraps a proprietary API.

HTTP

Connects to a remote server via URL. Optionally include authentication headers.Example: an MCP server running on another machine or cloud service.

Adding a custom server

Paste a standard MCP config JSON block. muxAI parses it, shows a preview, and imports all servers at once.

MCP modes

Each agent is configured with one of two MCP modes: Built-in mode is recommended. It prevents global MCP servers from leaking into agent runs and ensures reproducible behavior.

How it works at runtime

When an agent runs in Built-in mode, muxAI:
  1. Reads the built-in registry (config/mcp-registry.json)
  2. Loads custom servers from the database
  3. Merges them into a single MCP config JSON
  4. Passes it to the Claude CLI via --mcp-config <path> --strict-mcp-config
The agent can only call tools from servers in that config. Nothing else.

Guides

Add a Custom MCP Server

Connect an existing MCP server through the portal UI. No code changes required.

Build a Built-in MCP Server

Create a new MCP server package that ships with your muxAI installation.