ZM

zhaoyouj/mcp-slicer

Developer tools

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

45 stars 6 forks 品質 64 トレンド 20

3D Slicerの統合のためのモデルコンテキストプロトコルサーバー

概要

MCP-Slicer は、Claude Desktop や Cline などのモデルクライアントとモデルコンテキストプロトコル (MCP) を接続し、3D Slicer の直接やり取りと制御を可能にします。 この統合により、自然言語を用いた医療画像処理、シーン作成、操作ができます。 1. : Slicer MRML ノードをリストおよびフィルタリングし、プロパティを表示 2. : Slicer 環境でPythonコードを実行 3. : Slicerビューのリアルタイムスクリーンショットをキャプチャ - フルアプリケーションウィンドウ(モジュールパネルを含む) - 個々のスライスビュー(赤/黄色/緑) - 3Dレンダリングビュー - 視覚フィードバックで完全なREACTループを有効にします - 3D Slicer 5.8 または newer - Python 3.13 または newer - uv パッケージマネージャ それ以外のインストール手順は、ウェブサイト上にあります: uvをインストール Claude > 設定 > 開発者 > 編集 Config > claude desktop config.json に移動して、次のようになります。 対応するスライサツールがClaudeデスクトップアプリに追加されていることを確認してください

概要(AI 翻訳)

日本語 | English

MCP-Slicer は、Claude Desktop や Cline などのモデルクライアントとモデルコンテキストプロトコル (MCP) を接続し、3D Slicer の直接やり取りと制御を可能にします。 この統合により、自然言語を用いた医療画像処理、シーン作成、操作ができます。

##特徴

1.list nodes:Slicer MRMLノードの一覧とフィルタリングとプロパティの表示

2.execute python code:Slicer環境でPythonコードを実行

3。 capture screenshot: Slicerビューのリアルタイムスクリーンショットをキャプチャ

  • 完全な適用窓(モジュールのパネルを含む)
  • 個々のスライスビュー(赤/黄色/緑)
  • 3Dレンダリングビュー
  • 視覚フィードバックとの完全なREACTループを有効にします

インストール

前提条件

  • 3Dスライサー5.8またはnewer
  • Python 3.13 または newer
  • uvパッケージマネージャ

Macでいる場合は、UVをインストールしてください

Windowsの場合

そしてそれから

それ以外のインストール手順は、ウェブサイト上にあります: uvをインストール

※注2 まずはUVをインストールしてください**

デスクトップの統合のための###Claude

Claude > 設定 > 開発者 > 編集 Config > claude desktop config.json に移動して、次のようになります。

##Cline インターグレーション

使用法

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

README

以下は原文 README の抜粋です。原文を見る。

MCP-Slicer - 3D Slicer Model Context Protocol Integration

English | 简体中文

MCP-Slicer connects 3D Slicer with model clients like Claude Desktop or Cline through the Model Context Protocol (MCP), enabling direct interaction and control of 3D Slicer. This integration allows for medical image processing, scene creation, and manipulation using natural language.

Features

  1. list_nodes: List and filter Slicer MRML nodes and view their properties

  2. execute_python_code: Execute Python code in the Slicer environment

  3. capture_screenshot: Capture real-time screenshots of Slicer views

    • Full application window (including module panels)
    • Individual slice views (Red/Yellow/Green)
    • 3D rendering view
    • Enables complete REACT loop with visual feedback

Installation

Prerequisites

  • 3D Slicer 5.8 or newer
  • Python 3.13 or newer
  • uv package manager

If you’re on Mac, please install uv as

brew install uv

On Windows

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

and then

set Path=C:\Users\nntra\.local\bin;%Path%

Otherwise installation instructions are on their website: Install uv

⚠️ Please install UV first

Claude for Desktop Integration

Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:

{
  "mcpServers": {
    "slicer": {
      "command": "uvx",
      "args": ["mcp-slicer"]
    }
  }
}

Cline Intergration

{
  "mcpServers": {
    "slicer": {
      "command": "uvx",
      "args": ["mcp-slicer"]
    }
  }
}

Usage

Check Claude Settings

Make sure you see the corresponding slicer tools added to the Claude Desktop App

Open Slicer Web Server

  1. Open the Slicer Web Server module,
  2. ensure the required interfaces are checked,
  3. then start the server

Examples

- list_nodes

GitHub で README 全文を見る

インストール

uvx mcp-slicer
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "slicer": { "command": "uvx", "args": ["mcp-slicer"] } } }