ngff-zarr-mcp

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

Model Context Protocol server for OME-Zarr image conversion

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

convert_images_to_ome_zarr

Convert images to OME-Zarr format. dims, scale, translation, units, name and anatomical_orientation set the metadata of image file inputs. An OME-Zarr store input keeps its own metadata, so setting any of them for one is an error. Args: input_paths: List of input image paths (local files, URLs, or S3 URLs) output_path: Output path for OME-Zarr store ome_zarr_version: OME-Zarr version (0.4, 0.5, or 0.6) dims: Ordered NGFF dimensions from {t,z,y,x,c} scale: Scale/spacing for each dimension translation: Translation/origin for…

ParameterTypeDescription
input_paths *array
output_path *string
anatomical_orientation
cache_dir
chunks
chunks_per_shard
compression_codec
compression_level
consolidate_metadataboolean
dims
methodstring
name
ome_zarr_versionstring
overwriteboolean
scale
scale_factors
storage_options
translation
units
use_local_clusterboolean
use_tensorstoreboolean

get_ome_zarr_info

Get detailed information about an OME-Zarr store. Args: store_path: Path to OME-Zarr store (local or URL) Returns: StoreInfo with detailed store information

ParameterTypeDescription
store_path *string

read_ome_zarr_store

Read OME-Zarr data from a store with optional storage options. Args: store_path: Path or URL to OME-Zarr store storage_options: Storage options for remote stores (S3, GCS, etc.) validate: Whether to validate the NGFF metadata Returns: ConversionResult with store information and any detected features

ParameterTypeDescription
store_path *string
storage_options
validateboolean

validate_ome_zarr_store

Validate an OME-Zarr store structure and metadata. Args: store_path: Path to OME-Zarr store (local or URL) Returns: ValidationResult with validation status and any errors/warnings

ParameterTypeDescription
store_path *string

optimize_ome_zarr_store

Optimize an existing OME-Zarr store with new compression/chunking. Args: input_path: Path to input OME-Zarr store output_path: Path for optimized output store compression_codec: New compression codec compression_level: New compression level chunks: New chunk sizes chunks_per_shard: New sharding configuration consolidate_metadata: Write consolidated metadata (default True). Set False for stores destined for a backend that rejects it, such as Icechunk. overwrite: Replace an existing Zarr store at ou…

ParameterTypeDescription
input_path *string
output_path *string
chunks
chunks_per_shard
compression_codec
compression_level
consolidate_metadataboolean
overwriteboolean