pymol-cursor-mcp
pymol-cursor-mcp
Управляйте PyMOL из Cursor с помощью Model Context Protocol (MCP). Описывайте структуры и стили простым языком; ассистент вызывает PyMOL через XML‑RPC (run_command, run_python, pymol_get).
Этот проект содержит документацию и инструменты для рабочего процесса, ориентированного на Cursor. Тот же MCP-сервер работает с Claude Code, если вы предпочитаете этот CLI.
Вдохновение: nagarh/pymol-claude-code (PyMOL + MCP для Claude Code). Этот репозиторий расширяет данную идею портативной конфигурацией Cursor, проверками, скриптами и инструкциями по установке.
Архитектура (анимированная)
Тот же стиль диаграммы, что и в исходном flow.svg, обновленный для Cursor (голубой узел). Использует анимацию SVG/CSS (animateMotion, keyframes). Если ваш предварительный просмотр Markdown выглядит статичным, откройте flow.svg напрямую на GitHub для просмотра анимации.
Related MCP server: MikroTik Cursor MCP
Что вы получаете
Компонент | Назначение |
| MCP-сервер (stdio) → PyMOL XML‑RPC |
| Регистрирует MCP-сервер |
| Подсказки для агента по использованию инструментов PyMOL |
| Запуск PyMOL с флагом |
| Проверка работоспособности: venv + импорт MCP + RPC к PyMOL |
| Пример скрипта PyMOL (метки / карман) |
| Анимированная диаграмма архитектуры (в том же стиле, что и в исходном репозитории) |
Быстрая установка
git clone https://github.com/truong128/pymol-cursor-mcp.git
cd pymol-cursor-mcp
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -U pip
pip install -r requirements.txt
deactivateУстановите PyMOL (рекомендуется conda‑forge), затем запустите RPC:
conda activate pymol_mcp # your env with pymol-open-source
pymol -RИли: ./scripts/start_pymol_for_mcp.sh (после chmod +x).
В Cursor: Open Folder → этот репозиторий → Settings → MCP → подтвердите, что pymol подключен → при необходимости перезапустите Cursor.
python3 verify_stack.pyДолжно вывести: OK: MCP import + PyMOL RPC at http://localhost:9123
Полная пошаговая инструкция: INSTALL.md
Ежедневное использование
Терминал:
pymol -Rили задача VS Code/Cursor: “PyMOL: start with XML-RPC”.Cursor: Чат / Агент с открытой папкой.
Запрос: например, “Fetch 1hvr, cartoon on protein, sticks on ligand.”
Сводка изменений по сравнению с исходным “Claude Code only”
Тема | Здесь |
IDE | Cursor основной; |
RPC URL | Переменная окружения |
Пути |
|
Windows |
|
Проверка |
|
Запуск PyMOL |
|
Устранение неполадок
MCP отключен: см. Output → MCP Logs в Cursor; пересоздайте
venv; откройте корень репозитория как рабочую область.Ошибки PyMOL / отсутствие
.dylib: установите PyMOL из conda-forge в выделенное окружение (см. INSTALL.md).Удаленно/HPC: запускайте MCP там, где работает ваш редактор; используйте туннелирование RPC (
PYMOL_RPC_URL, SSH-R) — подробности в INSTALL.md.
Авторы
Идея PyMOL MCP и оригинальный сервер: pymol-claude-code — Hemant Nagar.
Упаковка и документация для Cursor: truong128.
Лицензия
MIT — см. LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Run, debug, and triage tests from your IDE using natural language, no dashboard switching, no manual data transfers. The TestMu AI (formerly LambdaTest) MCP Server is a single remote server exposing four tool suites: HyperExecute — analyze your project, generate YAML configs and test runner commands, then monitor jobs and sessions. Automation — pull a TestID's details plus command, network, and console logs into one chat for instant root-cause analysis. Includes mobile app upload. SmartUI — explain pixel, layout, DOM, and perceptual changes in a visual regression run, with context-aware React/HTML/CSS fixes. Accessibility — audit any public URL or a local React app against WCAG and get ready-to-apply remediation steps. Connects over https://mcp.lambdatest.com/mcp using OAuth 2.1 — no API keys in your config. One-click install in Cursor; works with Claude, GitHub Copilot, Cline, and any MCP client. Tests execute on the TestMu AI cloud: 3,000+ browsers and 10,000+ real devices.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables control of VMD2 for molecular dynamics analysis through natural language, allowing users to load structures, set representations, measure distances, compute RMSD, and render images without Tcl scripting.8-
- AlicenseNot gradedqualityCmaintenanceEnables natural language management of MikroTik routers through Cursor IDE by translating requests into RouterOS commands via API or SSH.4MIT
- AlicenseAqualityDmaintenanceEnables natural language control of UCSF ChimeraX for protein structure visualization, editing, and analysis through MCP clients.393MIT
- AlicenseCqualityBmaintenanceA Model Context Protocol server that lets you drive PyMOL with natural language, enabling structure loading, analytical views, measurements, and protein exploration through AI assistants.13517MIT