medmlx
Health Pass
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 26 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Python API, CLI and MCP server for native medical imaging models on Apple Silicon
MedMLX
One Python API, command line and MCP server for native medical imaging on Apple Silicon.
Run TotalSegmentator, nnU-Net, MedSAM2, SynthSeg and more through their independent MLX runtimes.

Apple Silicon · Metal · Python 3.13 · uv
This README describes the 0.4.2 release. The
PyPI documentation describes the same release;
source-only features are tracked in the release notes.
Install
Install the latest published CLI and MCP server with all model families:
uv tool install --python 3.13 "medmlx[all,mcp]"
For a Python project, use uv add "medmlx[all,mcp]" instead.
Choose segment, generate or vision instead of all for a smaller install.
The segment extra includes SAM 3 image and video support; generate includes
NV-Reason-CT and the weight-free FDG PET adapter. Model weights download
automatically on first use and keep their own terms. MedGemma uses a provisional bridge to a
separate MedVLM environment; checkpoint inference and numerical accuracy are
unqualified. See the
bridge setup and limits.
For unreleased runtime changes, use the locked source workspace described in
the MCP setup guide. The dependency definitions
record the runtime versions used by that workspace.
Run a model
medmlx describe mlx-segment-ct
medmlx readiness mlx-segment-ct --arguments arguments.json --root /path/to/work
medmlx run mlx-segment-ct --arguments arguments.json --root /path/to/work
For models with automatic assets, omit weights_path: the runner downloads its
configured Hub repository or model files, reuses the cached folder afterwards,
and records its revision in the run details. For your own weights, pass a local
folder as weights_path. MedGemma and MRSegmentator currently require local
weights; multi-model workflows can require separate asset paths.
describe shows each model's arguments. readiness checks the runtime and Metal
without downloading weights. Optionally pre-download installed model assets for
offline use with medmlx setup --all --progress; workflows with multiple assets
require manual setup.
See automatic weights and readiness.
import json
from pathlib import Path
import medmlx
arguments = json.loads(Path("arguments.json").read_text())
result = medmlx.run("mlx-segment-ct", arguments=arguments, root="/path/to/work")
For an MCP client, use medmlx serve --root /path/to/work as its stdio command.
Disconnecting the client cancels its running jobs. See the
MCP guide for client
setup, tools and a complete job workflow. For checkpoint conversion and
development, see conversion
and core.
The package also includes
Reason-CT with nodule tools:
model-selected detector and MedSAM2 calls, spatially grounded masks and a local
CT review page. It requires the reason-tools extra and model assets.
License
Apache-2.0. See third-party notices.
Runtimes and model weights retain their own terms.
For research and education. Outputs require human review.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found