ngff-zarr-mcp

v0.17.0
ngff-zarr-mcp Checked 12 hours ago Published 1 month ago

Model Context Protocol server for OME-Zarr image conversion

A multi-language implementation of the Open Microscopy Environment (OME) Next Generation File Format (NGFF) Zarr specification. This repository contains multiple packages implementing NGFF-Zarr support: More information about command line usage, the Python API, and library features can be found in our documentation.

Summary extracted from the README.

ngff-zarr

PyPI - Version PyPI - Python Version Python CI Testing npm - Version Typescript CI Testing MCP CI Testing DOI Documentation Status


A multi-language implementation of the Open Microscopy Environment (OME) Next Generation File Format (NGFF) Zarr specification.

Repository Structure

This repository contains multiple packages implementing NGFF-Zarr support:

  • py/ - Python package (ngff-zarr) - A lean and kind NGFF-Zarr implementation
  • ts/ - TypeScript/JavaScript package (@fideus-labs/ngff-zarr) - Universal OME-Zarr for Node.js and browsers
  • mcp/ - Model Context Protocol (MCP) server (ngff-zarr-mcp) for AI integration

Python Package (py/)

The main Python package provides:

✨ Features

  • Minimal dependencies
  • Work with arbitrary Zarr store types
  • Lazy, parallel, and web ready -- no local filesystem required
  • Process extremely large datasets
  • Conversion of most bioimaging file formats
  • Multiple downscaling methods
  • Supports Python>=3.11
  • Reads OME-Zarr v0.1 to v0.6 into simple Python data classes with Dask arrays
  • Optional OME-Zarr data model validation during reading
  • Writes OME-Zarr v0.4 to v0.6
  • v0.6 adds RFC-5 coordinate systems and transformations
  • Reads and writes the opt-in development version 0.9.dev1, which adopts RFC-3 (expanded axis count, names, types and order)
  • Sharded Zarr stores
  • Zarr I/O backed by zarrista / Rust zarrs (Python) or zarrita (TypeScript) -- no zarr-python dependency; OME-Zarr 0.4 (Zarr v2) outputs stay readable by zarr-python 2 and 3, and 0.5+ (Zarr v3) by zarr-python 3
  • Anatomical orientation metadata (RFC-4)
  • OME-Zarr Zip (.ozx) file support for single-file OME-Zarr datasets (RFC-9)
  • High Content Screening (HCS) support for plate and well data
  • Model Context Protocol (MCP) server for AI agent integration

📖 Documentation

More information about command line usage, the Python API, and library features can be found in our documentation.

TypeScript/JavaScript Package (ts/)

The TypeScript package provides universal OME-Zarr support for modern JavaScript environments:

✨ Features

  • 📘 TypeScript-first with full type definitions
  • 📦 Universal compatibility - Works in Node.js and browsers
  • 🔍 Type-safe with Zod schema validation
  • 🗂️ OME-Zarr v0.4, v0.5, and v0.6 support: reads all three and writes v0.5 and v0.6 (v0.6 adds RFC-5 coordinate systems and transformations), plus the opt-in development version 0.9.dev1 which adopts RFC-3 (expanded axis count, names, types and order)
  • 🌐 Web ready - No filesystem dependencies, works with remote stores
  • 🏗️ Mirrors Python API - Familiar interfaces for Python users
  • 📚 Lazy loading - Efficient handling of large datasets

📦 Installation

# Node.js / npm
npm install @fideus-labs/ngff-zarr

# Browser (CDN)
import * as ngffZarr from "https://esm.sh/@fideus-labs/ngff-zarr";

📖 Documentation

See the TypeScript documentation for detailed usage, API reference, and examples.

MCP Server (mcp/)

The Model Context Protocol server enables AI assistants like Claude to interact with NGFF-Zarr files. See the MCP documentation for setup and usage instructions.

Contributing

Contributions are welcome and appreciated! 🎉 The development guide covers environment setup, the pull request workflow, commit message conventions, and the development commands for each package. Please also read our Code of Conduct.

Thanks to everyone who has contributed code, documentation, bug reports, and ideas (emoji key). To add someone, comment @all-contributors please add @<username> for <contributions> on an issue or pull request.

Citation

If you use ngff-zarr in your work, please cite the SciPy Proceedings paper:

McCormick, M., Soltwedel, J., Vierdag, W.-M., Boussot, V., & Moore, J. (2026). ngff-zarr: A Lean and Kind OME-Zarr Toolkit for Bioimaging. In Proceedings of the 25th Python in Science Conference (pp. 295-302). https://doi.org/10.25080/gewj5574

@inproceedings{mccormick2026ngffzarr,
  title     = {ngff-zarr: A Lean and Kind OME-Zarr Toolkit for Bioimaging},
  author    = {McCormick, Matt and Soltwedel, Johannes and Vierdag, Wouter-Michiel and Boussot, Valentin and Moore, Josh},
  booktitle = {Proceedings of the 25th Python in Science Conference},
  pages     = {295--302},
  year      = {2026},
  doi       = {10.25080/gewj5574},
}

The same reference is in CITATION.cff, which GitHub shows as "Cite this repository".

See also

License

ngff-zarr is distributed under the terms of the MIT license.