Skip to content

MedMLX: native medical imaging models on Apple Silicon

Native medical imaging on Apple Silicon, built with MLX. Segmentation, detection, synthesis and CT reasoning, running locally on your Mac.

Website · Hugging Face · Python API, CLI & MCP

Get started

Requires Apple Silicon, Metal, Python 3.13 and uv. Install MedMLX, then segment a CT scan in a working folder:

uv tool install --python 3.13 "medmlx[all,mcp]"
mkdir -p ~/medmlx-work && cd ~/medmlx-work && cp /path/to/ct.nii.gz .
medmlx run mlx-segment-ct --arg image_path=ct.nii.gz output_dir=segment-ct

The mask is written to ~/medmlx-work/segment-ct/. Weights download on first use. medmlx models lists every model and medmlx describe <model> shows its inputs; the setup guide covers offline weights.

MedMLX outputs across CT, PET/CT, radiographs, endoscopy and MRI

Models

Segmentation

Repository Task Input
totalsegmentator-mlx Whole-body anatomy (TotalSegmentator v2) CT
mlx-segment-ct Automatic and point-prompted anatomy (VISTA-3D) CT, MRI
nnunet-mlx Organs, lesions and brain tumors (nnU-Net v2) CT, PET/CT, brain MRI
synthseg-mlx Brain segmentation and parcellation Brain MRI, CT
musclemap-mlx 113 muscle and bone structures (MuscleMap) MRI, CT
swin-unetr-mlx 13 abdominal organs Contrast CT
segresnet-mlx Renal arteries, veins, ureters, tumors and parenchyma Multiphase CT
unest-mlx Kidney cortex, medulla and collecting system CT
flexray-mlx Radiograph anatomy X-ray
flexible-unet-mlx Surgical tools Endoscopy

Prompted segmentation

Repository Task Input
medsam2-mlx Box, point or mask prompts with propagation (MedSAM2) 3D volumes, video frames
biomedparse-mlx Text prompts (BiomedParse v2) 3D volumes, 2D images
sam3-mlx Text, box or point prompts (SAM 3) 2D images, video frames

Detection, reasoning and language

Repository Task Input
lung-nodule-mlx Lung nodule detection (MONAI RetinaNet) Chest CT
mlx-reason-ct CT reports and question answering (NV-Reason-CT) CT
med-vlm-mlx Image-to-text (MedGemma) 2D images

Synthesis

Repository Task Input
mlx-generate-ctmr Synthetic 3D CT and MRI (NV-Generate) Label maps
lesiondiffusion-mlx Synthetic lesions CT and organ mask
fdg-pet-ct-mlx Synthetic FDG PET CT and organ labels

Features

Repository Task Input
radimagenet-mlx Radiology image embeddings (RadImageNet) 2D images
mlx-radiomics Radiomics features and voxel maps Image and label mask

Code, model weights and datasets retain their own licenses; see each repository’s notices.

Community

Pinned Loading

  1. medmlx medmlx Public

    Python API, CLI and MCP server for native medical imaging models on Apple Silicon

    Python 29 2

  2. medsam2-mlx medsam2-mlx Public

    Prompted lesion and organ segmentation with MedSAM2 in native MLX on Apple Silicon

    Python

  3. mlx-reason-ct mlx-reason-ct Public

    3D CT reports and question answering with NVIDIA NV-Reason-CT in native MLX on Apple Silicon

    Python

  4. mlx-segment-ct mlx-segment-ct Public

    Automatic and prompted CT segmentation with NVIDIA VISTA-3D in native MLX on Apple Silicon

    Python

  5. totalsegmentator-mlx totalsegmentator-mlx Public

    Whole-body CT segmentation with TotalSegmentator v2 in native MLX on Apple Silicon

    Python

  6. sam3-mlx sam3-mlx Public

    Text- and geometry-prompted image segmentation with SAM 3 in native MLX on Apple Silicon

    Python 1

Repositories

Showing 10 of 24 repositories

Top languages

Loading…

Most used topics

Loading…