ChimeraX docs icon

Command: mcp

Usage:
mcp setuphost claude | cursor | vscode | all ]

Usage:
mcp startport ]

Usage:
mcp info

Usage:
mcp stop

The mcp command enables ChimeraX to be controlled by an MCP-capable AI assistant — for example Claude Desktop, Cursor, or VS Code with GitHub Copilot — using the Model Context Protocol (MCP) developed by Anthropic. Running ChimeraX from an AI assistant was first implemented by Alexis Rohou at Genentech and subsequently incorporated into ChimeraX as the mcp command. See also: remotecontrol, Claude Chat to Operate ChimeraX

Set Up Claude Desktop to Control ChimeraX

  1. Install Claude Desktop for Mac or Windows (not available for other platforms), start it, and create a free account.
  2. Start ChimeraX and enter command mcp setup to generate the configuration file needed for Claude Desktop to control ChimeraX.
  3. Quit Claude Desktop and ChimeraX. Make sure to use Claude menu File / Exit when quitting; due to a bug in Claude Desktop (version 1.0.1405), closing it with the window frame "X" button leaves hidden Claude subprocesses running that will prevent it from reading the configuration file when restarted.
  4. Restart Claude Desktop and test by giving Claude a natural language request, e.g., “Show me a conotoxin protein in ChimeraX”

Set Up Cursor to Control ChimeraX

  1. Install Cursor and run it at least once so that the ~/.cursor directory is created (this is the same path on Mac, Linux, and Windows).
  2. In ChimeraX, run mcp setup host cursor. This writes ChimeraX's bridge entry into Cursor's global mcp.json.
  3. Restart Cursor (or use Cursor's "Reload MCP servers" action) and ask the chat to perform a ChimeraX action.

Set Up VS Code Copilot to Control ChimeraX

  1. Install VS Code with GitHub Copilot and ensure MCP support is enabled.
  2. In ChimeraX, run mcp setup host vscode. This writes ChimeraX's bridge entry into the user-profile mcp.json in the form expected by VS Code (top-level servers key, with "type": "stdio").
  3. In VS Code, run the command palette action MCP: List Servers to verify that the chimerax server is listed, then start it from there or simply ask Copilot to perform a ChimeraX action.

UCSF Resource for Biocomputing, Visualization, and Informatics / December 2025