Skip to content
esc
Start typing to search the docs
Navigate Open

MCP server

The Rerun MCP server lets an agent, such as Claude Code or Codex, inspect recordings in a running Viewer, change its layout, and query a catalog. This page shows how to install it and what the agent can do with it.

Install the MCP server

The Model Context Protocol (MCP) server comes with the Rerun CLI. If you need the CLI, install it with Python or choose another installation method.

pip install rerun-sdk

To register the server with Claude Code, run the following command.

claude mcp add rerun -- rerun mcp

For Codex, use this command.

codex mcp add rerun -- rerun mcp

For other MCP clients, set the command to rerun and the argument to mcp (stdio). Open a recording in the Viewer, or ask the agent to start one with rerun --headless to work without a display.

What the MCP server can access

The MCP server gives your agent access to two things:

To choose a catalog or Viewer at startup, see the CLI options. You can also use the agent panel inside the Viewer.

Catalog tools

Use the catalog tools to find and query data across recordings. You can connect directly to a catalog without opening the Viewer. If you connect to a local Viewer, its catalog is the default.

Ask “Which recordings contain lidar data?” to explore datasets and segment properties, or “What was the peak speed in each run?” to query recorded values with SQL.

The agent can also list the catalog servers you added in the Viewer or with rerun servers add <url>, and pick one to connect to. The web Viewer cannot offer that list, since it keeps its servers in the browser rather than in Rerun's config directory.

The agent can also create and rename datasets, upload or register .rrd recordings into them, and register a table blueprint for a dataset's segment table, optionally as its default. Ask “Upload /data/run_42.rrd into a new dataset called runs”. These tools never delete or replace data, and the agent asks you before every change, since changes are shared with everyone using the catalog. To keep the agent read-only, start the server with rerun mcp --catalog-read-only, or set "Catalog servers" to "Read only" in the agent panel's settings.

Viewer tools

Your agent can use the viewer tools to set up your viewer, or answer questions about the data you are working with.

A blueprint describes how the Viewer displays your data. Ask “Put the two cameras side by side, with the 3D view below them”. The agent can apply the layout to your open recording, and you can undo the edit in the Viewer.

The agent can trace how coordinate frames connect at the current time. Try “Show me how the left camera connects to the robot base”.

To set a default style across a view, ask the agent to change its component defaults.

To highlight one entity, ask “Make the lidar points red in the 3D view”. The override affects only that view and takes precedence over the recorded color. See Customize views.

An agent can filter rows, rearrange columns, or show recordings as cards with camera previews. See Configure table blueprints.

The agent can read and change the Viewer's app settings, such as the memory limit, the timestamp format, and the video decoder options. Try “Raise the memory limit to 8 GiB”. The Viewer saves the change, so it outlives the session. The agent cannot read or change secrets, such as the Mapbox access token.