MCP-Slicer

MCP-Slicer is an MCP server that connects 3D Slicer to AI model clients such as Claude Desktop and Cline through the Model Context Protocol. Medical researchers, biomedical imaging specialists, and healthcare software developers use it to interact with 3D Slicer scenes using natural language instructions. The server interfaces with the 3D Slicer Web Server to inspect scene nodes, execute custom Python commands inside the active application session, and retrieve visual feedback across multiple viewports. By providing access to MRML nodes, users can query active markup geometries, inspect slice measurements, and generate complex synthetic shapes such as models and spheres within the 3D environment. In addition, MCP-Slicer exposes real-time screen-capture capabilities for full application layouts, individual red, yellow, and green slice viewports, and dedicated 3D camera angles. These capabilities enable reasoning loops where an LLM issues code, evaluates the visual results, and refines downstream tasks without manual UI intervention. Because arbitrary code execution is enabled in the host runtime, the tool is primarily designated for local research, prototyping, and developer workflows.

Category: Design, Media & Creative

Tags: 3d-modeling, 3d-slicer, image-processing, medical-imaging

Visit MCP-Slicer

How to install and configure MCP-Slicer

  1. Ensure 3D Slicer version 5.8 or newer and Python 3.13 or newer are installed. 2. Install the uv package manager on your system. 3. Open 3D Slicer, navigate to the Slicer Web Server module, verify required interfaces are checked, and start the web server. 4. To configure Claude Desktop, open claude_desktop_config.json via Settings > Developer > Edit Config, and add the following entry: json { "mcpServers": { "slicer": { "command": "uvx", "args": ["mcp-slicer"] } } } 5. For Cline, add the same slicer definition into your Cline MCP configuration. 6. Restart your MCP client and confirm list_nodes, execute_python_code, and capture_screenshot appear in the tools menu.

What you can do with MCP-Slicer

  • Inspecting scene nodes: Query and filter active MRML nodes in 3D Slicer to inspect markup line lengths, angles, coordinates, and scene hierarchy properties. - Executing procedural modeling: Run Python scripts inside 3D Slicer using natural language prompts to programmatically render geometric shapes, markups, or inscribed objects. - Capturing viewport feedback: Capture real-time screenshots of the full application window, specific red, yellow, or green slice planes, or oriented 3D views. - Running autonomous feedback loops: Allow AI agents to reason about medical scenes, execute Python adjustments, and visually evaluate viewport screenshots to iterate autonomously.

Key facts

  • https://github.com/zhaoyouj/mcp-slicer
  • Design, Media & Creative, Other & General Purpose
  • 3d-modeling, 3d-slicer, image-processing, medical-imaging

Part of MCP Servers

Related MCP servers

  • MCP MD2PDF Server — MCP MD2PDF Server is an MCP server that enables automated conversion of Markdown documents into formatted PDF files with full…
  • MCP Media Processing Server — MCP Media Processing Server is an MCP server that connects AI assistants like Claude Desktop to local media manipulation utilities,…
  • MCP Media Player — MCP Media Player is an MCP server that exposes playback controls for Home Assistant media players to AI agents. It…
  • MCP Marvel Rivals — MCP Marvel Rivals is an MCP server that provides access to Marvel Rivals game data through a standardized interface. It…
  • MCP Music Analysis — MCP Music Analysis is an MCP server that enables AI clients like Claude to inspect and process sound recordings using…
  • MCP Notify Server — MCP Notify Server is an MCP server that sends desktop notifications accompanied by audio alerts when AI agents complete tasks.…

What can MCP-Slicer do?

MCP-Slicer enables model clients to interact directly with 3D Slicer. It exposes tools to inspect and filter MRML nodes and properties, execute arbitrary Python code directly within the running Slicer session, and capture real-time screenshots of slice views or 3D camera angles for AI visual inspection.

How do I install MCP-Slicer?

Installation requires Python 3.13 or newer, 3D Slicer 5.8 or newer, and the uv package manager. You configure your client, such as Claude Desktop, to run the command uvx with the argument mcp-slicer. You must also start the Slicer Web Server module within 3D Slicer before connecting.

Which MCP clients work with MCP-Slicer?

MCP-Slicer works with MCP-compliant clients including Claude Desktop and Cline. Any development environment or agent interface that supports configuring local command-based Model Context Protocol servers can launch the server through the uvx execution command.

Is MCP-Slicer safe for production use?

No, MCP-Slicer is explicitly not recommended for production use. The execute_python_code tool permits the execution of arbitrary Python code inside your running 3D Slicer runtime, which provides significant control but poses security risks if connected without human oversight or used on untrusted networks.

Is MCP-Slicer open source?

Yes, MCP-Slicer is open source and licensed under the MIT license. Its codebase is hosted on GitHub, where developers can inspect the implementation, review integrations with the 3D Slicer Web Server, submit issue reports, and contribute pull requests.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories