SciFiReaders.mcp.scifireaders_mcp

SciFiReaders.mcp.scifireaders_mcp#

Model Context Protocol server for SciFiReaders.

The server intentionally exposes a single tool: read_file. It automatically selects the best reader from the package’s registered readers, executes that reader, and can either return serialized dataset content, export it to a NeXus-compatible HDF5 file, or do both.

Functions

available_readers

Advertise the reader classes currently registered by the package.

create_mcp_server

Create the MCP server exposing the discovery and file-reading tools.

list_readers

Return the package's reader registry for discovery and routing.

main

Run the MCP server over stdio.

read_file

Read a file with the appropriate SciFiReaders reader.