Connects PyMOL to Claude AI through the Model Context Protocol, allowing for conversational structural biology and molecular visualization through natural language commands.
PyMOL-MCP connects PyMOL to Claude AI through the Model Context Protocol (MCP), enabling Claude to directly interact with and control PyMOL. This powerful integration allows for conversational structural biology, molecular visualization, and analysis through natural language.
https://github.com/user-attachments/assets/687f43dc-d45e-477e-ac2b-7438e175cb36
On macOS:
brew install uv
On Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex" set Path=C:\Users\[YourUsername]\.local\bin;%Path%
For other platforms, visit the UV installation guide.
git clone https://github.com/vrtejus/pymol-mcp cd pymol-mcp
Create and activate a Python virtual environment:
python -m venv venv
On macOS/Linux:
source venv/bin/activate
On Windows:
venv\Scripts\activate
With the virtual environment activated:
pip install mcp
claude_desktop_config.json
file{ "mcpServers": { "pymol": { "command": "[Full path to your venv python]", "args": ["[Full path to pymol_mcp_server.py]"] } } }
For example:
{ "mcpServers": { "pymol": { "command": "/Users/username/pymol-mcp/venv/bin/python", "args": ["/Users/username/pymol-mcp/pymol_mcp_server.py"] } } }
Note: Use the actual full paths on your system. On Windows, use forward slashes (/) instead of backslashes.
pymol-mcp-socket-plugin/__init__.py
fileIn PyMOL:
In Claude Desktop:
Here are some examples of what you can ask Claude to do:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!