Get started

Install MedMLX with one command, then run models on your Mac.

  1. Install uv

    MedMLX needs macOS 14.0 or later on Apple Silicon. It uses uv to install Python 3.13 and its packages. If uv --version already works, skip this step.

    Install uv
    curl -LsSf https://astral.sh/uv/install.sh | sh

    With Homebrew, use brew install uv instead. Open a new terminal window afterwards.

  2. Install MedMLX

    This installs the medmlx command, its MCP server and every model family.

    Install MedMLX
    uv tool install --python 3.13 "medmlx[all,mcp]"

    For a smaller install, use segment, generate or vision instead of all. For a Python project, use uv add "medmlx[all,mcp]". If your shell cannot find medmlx, run uv tool update-shell and open a new terminal window.

  3. Run a model

    describe lists the arguments a model takes. Save yours in arguments.json. readiness checks that the model can run, without downloading anything. run downloads the weights the first time, then runs the model.

    Run
    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

    To download weights ahead of time for offline use:

    Download weights
    medmlx setup --all --progress

    MedGemma runs in a separate med-vlm-mlx environment and needs local weights. MRSegmentator also needs local weights. Pass the folder as weights_path.

  4. Connect an AI agent (optional)

    An MCP client can list, check and run models for you. Give this command to your client as the server to start. The folder must already exist:

    MCP server
    medmlx serve --root /path/to/work

Choose a model

Each model card explains its inputs, outputs, downloads and practical requirements.

  • nnU-NetSegmentation of liver and pancreas CT, brain tumor MRI and PET/CT lesions.
  • TotalSegmentatorIdentify 117 organs and other body structures in CT scans.
  • MedSAM2Lesion or organ segmentation from a box, point or mask prompt, tracked through the volume.
  • BioMedParseText-prompted 3D segmentation with Microsoft BioMedParse v2.