metadata
title: medpy MCP Service
emoji: π§
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
license: mit
medpy MCP Service
This deployment package exposes MedPy medical-image processing capabilities through FastMCP. It supports local stdio usage (Claude Desktop / CLI) and HTTP transport for Docker/HuggingFace Spaces.
Available tools
health_checkβ dependency and adapter statuslist_modulesβ list loaded MedPy moduleslist_symbolsβ inspect public module symbolsimage_infoβ inspect shape/dtype/spacing from an imageanisotropic_diffusionβ denoise and save imageotsu_segmentationβ threshold and save binary maskcompute_overlap_metricsβ Dice/Jaccard/Precision/Recallbounding_boxβ non-zero mask bounding box
Local stdio usage
Run from the deployment root:
cd medpy/mcp_output
export MCP_TRANSPORT=stdio
python start_mcp.py
Or:
python medpy/mcp_output/mcp_plugin/main.py
HTTP usage (Docker / HF Spaces)
Docker entrypoint runs:
python medpy/mcp_output/start_mcp.py
with environment:
MCP_TRANSPORT=httpMCP_PORT=7860
The MCP HTTP endpoint is available at:
https://<host>/mcp
Build and run with scripts
- Bash:
./run_docker.sh - PowerShell:
./run_docker.ps1
Both scripts read port mapping from port.json (fixed to 7860 for HF Spaces compatibility).