MedMCP: An Open Agentic Ecosystem for Medical Imaging Workflows
MedMCP lets clinicians, radiologists, and researchers run validated medical imaging tools by describing what they need in plain language, with no command line, Python environments, or library APIs.
It runs on-premise: a locally served model plans the work, tested tools do the computation, and no imaging data, patient metadata, or results leave your infrastructure unless you choose to connect an outside service.
[!WARNING] MedMCP is under active development and not licensed for clinical use.
Quick start
Set MEDMCP_WORKSPACE to the folder that holds your imaging data (any absolute path) and start MedMCP:
bashMEDMCP_WORKSPACE="$HOME/medmcp-data" \ docker compose -f oci://ghcr.io/medmcp/compose:latest up -d
Then open http://localhost:8100.
- Requirements: Linux, an NVIDIA GPU (≥ 24 GB VRAM recommended) with driver ≥ R570, and Docker with the NVIDIA Container Toolkit.
- Stop:
docker compose -f oci://ghcr.io/medmcp/compose:latest down - Update: click Update now when the workspace announces a new release, or re-run the start command with
--pull always. - Pin a version: replace
latestwith a release tag such asv0.3.0. Release tags are never moved. - Data on another drive: bind-mount it into the workspace on the host (
sudo mount --bind /media/$USER/DISK "$MEDMCP_WORKSPACE/DISK"). It then shows in the explorer and every tool can read it, and the workspace stays the one place provenance and replay record.
To build from source or run without Docker, see CONTRIBUTING.md. For a quick impression, watch the launch trailer.
Features
- Chat & agent: ask for an analysis in plain language; the agent picks and runs the tools.
- File explorer and image viewer: browse your data and view medical images (
.nii.gz,.mgz,.nrrd, ...) with segmentation and map overlays, a label legend and intensity windows, plus other files (.pdf,.csv, ...). Label names come from the<name>_labels.csvtable a stack writes beside its<name>_dsegsegmentation; the viewer has no label-name table of its own. - Workflows: turn a chat into a workflow you can replay on new data and share.
- Tool stacks: install new imaging capabilities from the UI.
- Model choice: switch between seven local models, or optionally use a cloud model with your own API key.
Security
- You approve every action: writing or editing a file, fetching a URL, or running a command with side effects needs a click each time. There is no "always allow".
- Local by default: the server listens on localhost only,
web_searchis disabled,web_fetchrequires approval, and tool stacks run without network access. - Outside services are opt-in: external MCP servers and a cloud model stay off until you switch them on, and a banner shows for as long as they are in use.
- Signed releases: published images are signed, and the workspace verifies them before it updates or installs a stack.
The details, how to verify a release yourself, and how to report a vulnerability are in SECURITY.md.
Contributing
We welcome community contributions.
See CONTRIBUTING.md to set up a development environment and submit a pull request.
Contributors
This project follows the all-contributors specification — contributions of any kind are welcome!
Acknowledgements
MedMCP builds on a lot of open-source work, in particular mistral-vibe and the Agent Client Protocol, FastAPI, React, Vite, Niivue, Ollama, and Meta's Muse Glimmer.
The complete list of bundled components and their licenses is in THIRD_PARTY_NOTICES.md; model and base-layer attributions are in NOTICE.
License
MedMCP is released under the Apache License 2.0.
See NOTICE for attribution that downstream redistributors must retain.




