Open-source MCP server · Mass spectrometry
Ask your AI assistant about your mass spectrometry data.
MSMCP puts your own data in front of an AI client — Claude, Zed, or any other MCP host. Ask it to open an mzML, MGF or imzML file, check a precursor mass against a formula, compute isotope and adduct patterns, score an MS/MS spectrum against your MSP library, or summarise QC across a run.
The model reasons. The tools compute.
MCP — the Model Context Protocol — is the open standard that lets an assistant call tools and read files it is given. MSMCP is the mass spectrometry end of it.
- 14 tools
- mzML · MGF · imzML
- stdio, local only
- no credentials
- MIT
Run it now
git clone https://github.com/janusson/MSMCP.git
cd MSMCP
uv sync
uv run msmcp
How the peaks stay out of the prompt
- 1experiment.mzML — 220 peaks, parsed in the server process. mzML, MGF and imzML are read locally; vendor formats are refused with conversion guidance.
- 2load_spectrum(…) returns metadata and a reference.
- 3
reference =
"ptr:spectrum:264a5ae9…"
An opaque, random, expiring handle — never an address, an id or a path.
- 4Every later tool dereferences it server-side: validate_precursor · compute_cosine · generate_qc_summary · search_library
The model carries references, job IDs and verdicts — never spectra.