MONAI / README.md
ghh1125's picture
Upload 14 files
a66d269 verified
metadata
title: MONAI MCP Service
emoji: 🔧
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
license: mit

MONAI MCP Service

This deployment package wraps MONAI capabilities as MCP tools using FastMCP. It supports local stdio usage and HTTP MCP endpoint deployment for Docker/HuggingFace Spaces.

Available Tools

  • health_check
  • list_modules
  • list_symbols
  • list_network_architectures
  • create_network
  • build_transform_pipeline
  • call_function
  • create_instance

Detailed tool docs are in MONAI/mcp_output/README_MCP.md.

Local stdio (Claude Desktop / CLI)

cd MONAI/mcp_output
python mcp_plugin/main.py

or:

MCP_TRANSPORT=stdio python start_mcp.py

HTTP MCP endpoint (Docker/HF Spaces)

The Docker entrypoint launches FastMCP directly from:

  • python MONAI/mcp_output/start_mcp.py

Runtime env in container:

  • MCP_TRANSPORT=http
  • MCP_PORT=7860

MCP clients should connect to:

  • https://<your-host>/mcp

Build and Run Docker

./run_docker.sh

On Windows PowerShell:

./run_docker.ps1