
vrtejus/pymol-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
vrtejus/pymol-mcp - кандидат на сервер MCP, импортированный из https://github.com/vrtejus/pymol-mcp.
Обзор
vrtejus/pymol-mcp - кандидат на сервер MCP, импортированный из https://github.com/vrtejus/pymol-mcp.
Обзор (машинный перевод)
PyMOL-MCP соединяет PyMOL с Claude AI через протокол Model Context Protocol (MCP), позволяя Claude напрямую взаимодействовать и управлять PyMOL. Эта мощная интеграция позволяет вести разговорную структурную биологию, молекулярную визуализацию и анализ с помощью естественного языка.
[[Т0]]
Особенности
- ** Двухстороннее сообщение**: Подключите Claude AI к PyMOL через сервер на основе сокетов
- Интеллектуальный командный парсинг: Обработка естественного языка для команд PyMOL ** Контроль молекулярной визуализации**: Манипулирование представлениями, цветами и видами ** Структурный анализ**: проведение измерений, выравнивания и других анализов Исполнение кода: Запустите произвольный код Python в PyMOL от Claude
Руководство по установке
Предпосылки
PyMOL установлен в вашей системе Клод для рабочего стола Python 3.10 или новее
- Гит
Шаг 1: Установите диспетчер пакетов UV
** На macOS: **
** В Windows: **
Для других платформ посетите руководство по установке УФ-излучения.
Шаг 2: Клонируйте хранилище
Шаг 3: Создайте окружающую среду
Создание и активация виртуальной среды Python:
** На macOS/Linux: **
** В Windows: **
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
PyMOL-MCP: Integrating PyMOL with Claude AI
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
Features
- Two-way communication: Connect Claude AI to PyMOL through a socket-based server
- Intelligent command parsing: Natural language processing for PyMOL commands
- Molecular visualization control: Manipulate representations, colors, and views
- Structural analysis: Perform measurements, alignments, and other analyses
- Code execution: Run arbitrary Python code in PyMOL from Claude
Installation Guide
Prerequisites
- PyMOL installed on your system
- Claude for Desktop
- Python 3.10 or newer
- Git
Step 1: Install the UV Package Manager
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.
Step 2: Clone the Repository
git clone https://github.com/vrtejus/pymol-mcp
cd pymol-mcp
Step 3: Set Up the Environment
Create and activate a Python virtual environment:
python -m venv venv
On macOS/Linux:
source venv/bin/activate
On Windows:
venv\Scripts\activate
Step 4: Install Dependencies
With the virtual environment activated:
pip install mcp
Step 5: Configure Claude Desktop
- Open Claude Desktop
- Go to Claude > Settings > Developer > Edit Config
- This will open the
claude_desktop_config.jsonfile - Add the MCP server configuration:
{
"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.
Step 6: Install the PyMOL Plugin
- Open PyMOL
- Go to Plugin → Plugin Manager
- Click on “Install New Plugin” tab
- Select “Choose file…” and navigate to the cloned repository
- Select the
pymol-mcp-socket-plugin/__init__.pyfile - Click “Open” and follow the prompts to install the plugin
Usage
Starting the Connection
-
In PyMOL:
- Go to Plugin → PyMOL MCP Socket Plugin
- Click “Start Listening”
- The status should change to “Listening on port 9876”
-
In Claude Desktop:
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"pymol": {
"command": "[Full path to your venv python]",
"args": ["[Full path to pymol_mcp_server.py]"]
}
}
}