VP

vrtejus/pymol-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

69 stars 14 forks 品質 63 トレンド 0MIT

vrtejus/pymol-mcp は [https://github.com/vrtejus/pymol-mcp.] からインポートされた MCP サーバー候補です

概要

vrtejus/pymol-mcp は [https://github.com/vrtejus/pymol-mcp.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

PyMOL-MCP は、モデルコンテキストプロトコル(MCP)を介して PyMOL を Claude AI に接続し、Claude が PyMOL を直接やり、制御できるようにします。 この強力な統合により、自然言語による会話構造生物学、分子視覚化、解析ができます。

[https://github.com/user-attachments/assets/687f43dc-d45e-477e-ac2b-7438e175cb36]

##特徴

  • 双方向通信: Claude AI を PyMOL に接続して、ソケットベースのサーバーに接続します。
  • インテリジェントコマンド解析: PyMOL コマンドの自然言語処理
  • 分子可視化制御: 表現、色、ビューの操作
  • 構造解析:測定、アライメント、その他の分析を実行
  • コード実行: Claude から PyMOL で任意の Python コードを実行する

インストールガイド

前提条件

  • お使いのシステムにPyMOLをインストール
  • デスクトップ用クロード
  • Python 3.10 以降
  • ギット

ステップ1:UVパッケージマネージャをインストール

macOSの場合:

Windowsの場合:

他のプラットホームのために、紫外線設置ガイドを訪問して下さい。

ステップ2:リポジトリをクローンする

ステップ3:環境の設定

Python 仮想環境の作成とアクティベート:

macOS/Linuxの場合:

Windowsの場合:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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

  1. Open Claude Desktop
  2. Go to Claude > Settings > Developer > Edit Config
  3. This will open the claude_desktop_config.json file
  4. 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

  1. Open PyMOL
  2. Go to Plugin → Plugin Manager
  3. Click on “Install New Plugin” tab
  4. Select “Choose file…” and navigate to the cloned repository
  5. Select the pymol-mcp-socket-plugin/__init__.py file
  6. Click “Open” and follow the prompts to install the plugin

Usage

Starting the Connection

  1. In PyMOL:

    • Go to Plugin → PyMOL MCP Socket Plugin
    • Click “Start Listening”
    • The status should change to “Listening on port 9876”
  2. In Claude Desktop:

GitHub で README 全文を見る

インストール

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]"] } } }