Skip to main content
Glama

MCP-Slicer - 3Dスライサーモデルコンテキストプロトコル統合

英語|简体中文

Pythonバージョン ライセンス: MIT PyPIバージョン

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

特徴

  1. list_nodes: スライサーMRMLノードを一覧表示およびフィルタリングし、そのプロパティを表示します。

  2. execute_python_code: スライサー環境でPythonコードを実行する

インストール

前提条件

  • 3Dスライサー5.8以降

  • Python 3.13以降

  • UVパッケージマネージャー

Macをお使いの場合は、uvをインストールしてください。

brew install uv

Windowsの場合

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

その後

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

それ以外の場合、インストール手順はウェブサイトに掲載されています: Install uv

⚠️まずUVをインストールしてください

デスクトップ統合のクロード

Claude > 設定 > 開発者 > 構成の編集 > claude_desktop_config.json に移動して、以下を追加します。

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

クライン積分

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

使用法

クロードの設定を確認する

オープンスライサーウェブサーバー

  1. スライサーウェブサーバーモジュールを開き、

  2. 必要なインターフェースがチェックされていることを確認する

  3. サーバーを起動します

- list_nodes

スライサーシーンに現在存在するマークアップノードの名前、長さ(線の場合)、角度(角度の場合)をリストします。

- Pythonコードを実行する

スライサー シーンで 8 cm の半透明の緑色の立方体を描画し、その頂点をマークしてから、その中に内接する赤い球体を描画します。

技術的な詳細

既存のSlicer Web Serverインターフェースを活用します。技術的な詳細については、 Slicer Web Serverユーザーガイドをご覧ください。

制限事項とセキュリティに関する考慮事項

  • execute_python_codeツールを使用すると、3D Slicer で任意の Python コードを実行できます。これは強力ですが、潜在的に危険です。

    ⚠️ 本番環境での使用は推奨されません。

  • 複雑な操作は、小さなステップに分割する必要がある場合があります。

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

免責事項

これはサードパーティの統合プロジェクトであり、3D Slicer チームによって開発されたものではありません。

Deploy Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Provides an interface between AI assistants and Tripo AI via Model Context Protocol, enabling generation of 3D assets from natural language and importing them to Blender.
    Last updated -
    16
    174
    MIT License
    • Linux
    • Apple
  • -
    security
    -
    license
    -
    quality
    A server that integrates Blender with local AI models via the Model Context Protocol, allowing users to control Blender using natural language prompts for 3D modeling tasks.
    Last updated -
    55
    • Linux
    • Apple
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that enables AI assistants to analyze images using OpenRouter vision models through a simple interface.
    Last updated -
    4
    1
    1
    MIT License
    • Apple
  • -
    security
    A
    license
    -
    quality
    Connects creative applications like Blender and Adobe Creative Suite to AI models through the Model Context Protocol, enabling AI-driven creation, manipulation, and automation within these tools.
    Last updated -
    10
    MIT License
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhaoyouj/mcp-slicer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server