developer-tools

3D Slicer

by zhaoyouj

3D Slicer bridges medical professionals with advanced image analysis and Python tools; a unique alternative to Prusa Sli

Bridges medical professionals with 3D Slicer's medical imaging platform, enabling MRML node listing and direct Python code execution for advanced image analysis and visualization tasks.

github stars

26

Direct 3D Slicer integrationReal-time visual feedback with screenshotsNatural language control of medical imaging

best for

  • / Medical researchers analyzing imaging data
  • / Healthcare professionals automating Slicer workflows
  • / Developers building medical imaging applications
  • / AI-assisted medical image analysis

capabilities

  • / List and filter MRML nodes in 3D Slicer
  • / Execute Python code directly in Slicer environment
  • / Capture screenshots of slice views and 3D renderings
  • / Control medical image processing workflows remotely
  • / Manipulate 3D medical imaging scenes

what it does

Connects AI assistants to 3D Slicer for medical image analysis, enabling remote control and visualization of medical imaging workflows through natural language commands.

about

3D Slicer is a community-built MCP server published by zhaoyouj that provides AI assistants with tools and capabilities via the Model Context Protocol. 3D Slicer bridges medical professionals with advanced image analysis and Python tools; a unique alternative to Prusa Sli It is categorized under developer tools. This server exposes 3 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install 3D Slicer in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

3D Slicer is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

logo # MCP-Slicer - 3D Slicer Model Context Protocol Integration [English](README.md) | [简体中文](README_zh.md) [![Python Version](https://img.shields.io/badge/python-3.13%2B-blue.svg)](https://www.python.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![PyPI version](https://img.shields.io/pypi/v/mcp-slicer.svg)](https://pypi.org/project/mcp-slicer/) ![PyPI - Downloads](https://img.shields.io/pypi/dm/mcp-slicer) 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** ```bash brew install uv ``` **On Windows** ```bash powershell -c "irm https://astral.sh/uv/install.ps1 | iex" ``` and then ```bash set Path=C:\Users ntra\.local\bin;%Path% ``` Otherwise installation instructions are on their website: [Install uv](https://docs.astral.sh/uv/getting-started/installation/) **⚠️ Please install UV first** ### Claude for Desktop Integration Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following: ```json { "mcpServers": { "slicer": { "command": "uvx", "args": ["mcp-slicer"] } } } ``` ### Cline Intergration ```json { "mcpServers": { "slicer": { "command": "uvx", "args": ["mcp-slicer"] } } } ``` ## Usage ### Check Claude Settings Image Make sure you see the corresponding slicer tools added to the Claude Desktop App Image Image ### Open Slicer Web Server 1. Open the Slicer Web Server module, 2. ensure the required interfaces are checked, 3. then start the server Image ## Examples ### - list_nodes > What Markups nodes are in the Slicer scene now, list their names, what is their length if it is a line, and what is its angle if it is an angle Image ### - execute python code > Draw a translucent green cube of 8 cm in the Slicer scene, mark its vertices, and then draw a red sphere inscribed in it. example_code_execute_en ### - capture_screenshot > Capture the current state of Slicer to provide visual feedback to AI **Usage examples:** - `capture_screenshot()` - Capture full application window - `capture_screenshot(view_type="slice", view_name="red")` - Capture Red slice view - `capture_screenshot(view_type="3d", camera_axis="A")` - Capture 3D view from anterior This enables a complete REACT loop where AI can: 1. **Reason** about what to do 2. **Act** using `execute_python_code` 3. **Observe** the result using `capture_screenshot` ## Technical Details Utilizes existing Slicer Web Server interfaces. For technical details, please see [Slicer web server user guide](https://slicer.readthedocs.io/en/latest/user_guide/modules/webserver.html) ## Limitations & Security Considerations - The `execute_python_code` tool allows running arbitrary Python code in 3D Slicer, which is powerful but potentially dangerous. **⚠️ Not recommended for production use.** - Complex operations may need to be broken down into smaller steps. ## Contributing Contributions are welcome! Feel free to submit Pull Requests. ## Disclaimer This is a third-party integration project, not developed by the 3D Slicer team.

FAQ

What is the 3D Slicer MCP server?
3D Slicer is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for 3D Slicer?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    3D Slicer is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated 3D Slicer against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: 3D Slicer is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    3D Slicer reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend 3D Slicer for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: 3D Slicer surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    3D Slicer has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, 3D Slicer benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired 3D Slicer into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    3D Slicer is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.