ChimeraX MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ChimeraX MCP Serverload 6VXX, highlight residue A:501, and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ChimeraX MCP Server
Talk to proteins in natural language. This MCP server connects AI coding tools (Claude Code, Cursor, VS Code, etc.) to UCSF ChimeraX, letting you load, edit, visualize, and analyze protein structures through conversation -- no manual ChimeraX commands needed.
Just say "open 6VXX, mutate A:501 to Lys, color by hydrophobicity, and take a screenshot" and watch ChimeraX do it in real time.
This project is in early development and actively looking for contributors. Bug reports, feature requests, and pull requests are very welcome -- check out the issues page or open a PR!
Demos
Load & Visualize
"Load 3LJ5, show only chain A, make it publication-ready with rainbow coloring and transparent surface"

Mutate Residue
"Open 6VXX, zoom to residue A:501, highlight it, mutate Thr to Lys, show nearby residues"

Electrostatic & Hydrophobicity Surfaces
"Load 1AKI, show surface, color by electrostatic potential, then switch to hydrophobicity"

Features
39 tools covering structure loading, editing, visualization, measurement, selection, and video recording
Auto-launches ChimeraX -- no manual setup needed, just install and go
Works with any MCP client -- Claude Code, Cursor, Windsurf, VS Code Copilot, Cline, OpenCode, Continue, Claude Desktop
Built-in agent instructions -- AI agents automatically learn ChimeraX spec syntax and common workflows
Security hardened -- command injection prevention, dangerous command blocking, script path validation
Accepts flexible input -- both
A:48and/A:48spec formats, both 1-letter and 3-letter amino acid codesVideo recording -- capture sessions as MP4, record turntable spins
Run custom scripts -- execute
.cxcand.pyscripts with path validation
Prerequisites
UCSF ChimeraX installed (download)
Python 3.10+
ChimeraX will be launched automatically when the first tool is called. No need to start it manually or enable the REST API yourself.
Open ChimeraX and run in its command line:
remotecontrol rest start port 8765To use a custom ChimeraX install location, set the CHIMERAX_BIN environment variable:
export CHIMERAX_BIN="/path/to/ChimeraX"Installation
pip install chimerax-mcpFrom GitHub (latest dev):
pip install git+https://github.com/mahynotch/chimerax-mcp.gitFrom source (development):
git clone https://github.com/mahynotch/chimerax-mcp.git
cd chimerax-mcp
pip install -e .MCP Configuration
After installing, add the server to your AI coding tool:
claude mcp add -s user chimerax -- chimerax-mcpEdit config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"chimerax": {
"command": "chimerax-mcp",
"args": []
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"chimerax": {
"command": "chimerax-mcp",
"args": []
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"chimerax": {
"command": "chimerax-mcp",
"args": []
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"chimerax": {
"type": "stdio",
"command": "chimerax-mcp"
}
}
}Use the "Edit MCP Settings" button in the Cline panel, or edit directly:
macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonWindows:
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
{
"mcpServers": {
"chimerax": {
"command": "chimerax-mcp",
"args": [],
"disabled": false
}
}
}Add to ~/.config/opencode/opencode.json or project opencode.json:
{
"mcp": {
"chimerax": {
"type": "local",
"command": ["chimerax-mcp"],
"enabled": true
}
}
}Add to .continue/config.yaml:
mcpServers:
- name: chimerax
type: stdio
command: chimerax-mcpQuick Start
Once configured, just talk naturally:
"Open 6VXX, color by chain, show surface, zoom to residue A:501"
The AI will call MCP tools sequentially and ChimeraX renders each step in real time:
open_structure("6VXX")-- fetches the structure from RCSBcolor_structure("#1", "chain")-- colors each chain differentlyshow_surface("#1")-- displays the molecular surfacezoom_to("/A:501")-- centers the view on residue 501 of chain A
Available Tools (39)
Structure (6)
Tool | Description |
| Open PDB ID, file path, or URL |
| Close one or all models |
| Save to PDB/mmCIF/mol2 |
| List all open models |
| Get amino acid sequence for a chain |
| Execute a |
Editing (4)
Tool | Description |
| Swap residue using Dunbrack rotamer library |
| Delete atoms or residues |
| Add hydrogens (protonate) |
| Run energy minimization |
Visualization (18)
Tool | Description |
| Color by scheme ( |
| Coulombic ESP (red=negative, blue=positive) |
| Molecular Lipophilicity Potential |
| Show molecular surface with optional transparency |
| Hide molecular surface |
| Show ribbon/cartoon |
| Show stick representation |
| Hide atoms |
| Zoom camera to a selection |
| Set background color |
| Add text labels to residues |
| Remove all labels |
| Reset to default camera view |
| Save PNG screenshot |
| Begin recording session as video |
| Stop recording and save to MP4/WebM/MOV |
| Rotate model around an axis |
| Record a full turntable spin video |
Measurement (6)
Tool | Description |
| Distance between two atoms (Angstroms) |
| Bond angle from three atoms (degrees) |
| Structural alignment with RMSD |
| Residues within N Angstroms of selection |
| B-factor values for selection |
| Buried solvent-accessible surface area |
Selection (5)
Tool | Description |
| Select by ChimeraX specifier |
| Select within distance |
| Select entire chain |
| Invert current selection |
| Save selection under a reusable name |
Security
Commands are sanitized before being sent to ChimeraX:
Command injection blocked --
;and newlines rejected (ChimeraX uses these as command separators)Dangerous commands blocked --
exec,shell,systemare rejectedScript execution validated --
run_scriptonly accepts existing.cxc/.pyfiles with path validationLocal-only -- REST API listens on
127.0.0.1only, not exposed to the network
Testing
Run the full test suite (53 tests) against a live ChimeraX instance:
pip install pytest
python -m pytest tests/test_live.py -vSecurity tests run without ChimeraX. Live tests auto-skip if ChimeraX is not available.
For AI Agents: Auto-Install
If a user asks you to install this MCP server, follow these steps:
Install the package:
pip install chimerax-mcpRegister the MCP server (detect the user's tool and run the appropriate command):
Tool | Command |
Claude Code |
|
Cursor | Add to |
VS Code | Add to |
For Cursor / VS Code / others, create or update the config file with:
{
"mcpServers": {
"chimerax": {
"command": "chimerax-mcp"
}
}
}Restart the AI tool to load the new MCP server.
Verify with a test call:
open_structure("1aki")
Important: Before proceeding, confirm with the user that UCSF ChimeraX is installed on their machine. If not, direct them to https://www.cgl.ucsf.edu/chimerax/download.html -- the server auto-launches ChimeraX but cannot install it.
Disclaimer
This project is not affiliated with, endorsed by, or sponsored by UCSF or the RBVI team. "ChimeraX" is a trademark of the University of California. This server communicates with ChimeraX through its public REST API and contains no ChimeraX source code.
Users are responsible for complying with ChimeraX's license terms. ChimeraX is free for academic and non-commercial use; commercial use requires a separate license from UCSF.
License
MIT -- see LICENSE
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mahynotch/chimerax-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server