ms-data-parser
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ms-data-parserLoad the dataset in LIPIDMIX_DATA_DIR and show me the PCA."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Lipidmix with LLM
An MCP server (ms-data-parser) that reads MS-DIAL's binary lipidomics outputs and
exposes them to an LLM in a form it can actually reason over.
MS-DIAL writes its alignment results as compressed MessagePack and custom binary blobs. They are unreadable outside the GUI, and far too large to paste into a chat. This server parses them, runs the standard lipidomics analyses server-side, and returns compact summaries — so an LLM client such as Claude Desktop, Claude Code, or a local WebUI can drive a full analysis without ever seeing the raw matrices.
What it does
Parses MS-DIAL binaries — alignment results, per-measurement peak lists, deconvoluted MS/MS spectra, and extracted ion chromatograms.
Runs the analysis server-side — preprocessing and QC (normalization, blank subtraction, QC-RSD filtering, drift correction), PCA, and two-group differential analysis with BH-FDR.
Keeps results out of the context window — plots are rendered to PNG on the server rather than shipped as coordinate lists, and full result tables stay in session state until exported.
Accumulates knowledge — literature notes and reusable analysis playbooks are served back to the LLM as MCP resources, so findings compound across sessions.
Can drive MS-DIAL itself (auxiliary) — the main workflow reads output MS-DIAL has already written (for example after processing in the MS-DIAL GUI). Given a folder, the server first checks for such output and goes straight to analysis if it is there. Only when the folder holds raw acquisition files alone does it ask for your permission, then plan and run MS-DIAL Console and load the resulting mzTab-M.
Related MCP server: Excel MCP Server
Supported inputs
Format | Contents |
| Alignment result, per-sample peaks. The main source for cross-sample comparison and PCA. |
| Alignment result, spot representatives. Dataset-wide catalog and annotations. |
| A single measurement's detected peaks. |
| Deconvoluted MS/MS spectra. MS-DIAL's own binary format — not MessagePack. |
| Extracted ion chromatograms. |
mzTab-M 2.0 | Standard exchange format, produced by the MS-DIAL Console path. |
MS-DIAL sidecars (*_tags.xml, .mddata, .mdproject) are read for tags and sample
class assignments where present.
Quick start
Requires Python 3.13+ (developed on 3.14).
python -m pip install -r requirements.txtRegister the server with your MCP client — for example, in .mcp.json:
{
"mcpServers": {
"ms-data-parser": {
"type": "stdio",
"command": "python",
"args": ["/absolute/path/to/Lipidmix_with_LLM/server.py"]
}
}
}Point it at your data and ask the client to start:
export LIPIDMIX_DATA_DIR=/path/to/your/msdial/outputLoad the dataset in
LIPIDMIX_DATA_DIRand show me the PCA.
That calls load_dataset, the entry point: it picks the latest alignment batch, runs the
standard overview, and primes the session for everything that follows.
MS-DIAL Console and reference libraries (optional)
Running MS-DIAL Console from raw data (console_*, pipeline_*) or matching against your own
.msp library (library_load) needs to know where those files live. Copy
lipidmix.example.toml to lipidmix.local.toml next to server.py and fill in the paths
(Windows paths in single quotes). The file is not tracked by git and is read on every call, so
edits take effect without restarting the server. The environment variables MSDIAL_EXE,
MSDIAL_LBM, MSDIAL_MSP_POS and MSDIAL_MSP_NEG still work and take precedence over the file.
If something is missing, the tool's error names the file and the key to fill in.
To run the parsers without an MCP client, see docs/cli.md.
Repository map
server.py is a thin facade that registers tools by import side effect; it must stay at
the repository root because MCP client configs reference it by absolute path. The
implementation lives under metabolomix/.
Package | Responsibility |
| FastMCP instance, configuration, session state, path resolution. Depends on nothing else in the tree. |
| One |
| mzTab-M reader and canonical |
| MS-DIAL Console execution: job planning, running, output collection. |
| Format-independent numerics: preprocessing/QC, PCA, differential analysis, the export contract. |
| Renderer-neutral plot payloads and matplotlib rendering. |
| MS-DIAL-specific sidecars, identification, peak verification. |
| Pure logic for the knowledge and playbook notes. |
| MCP tools not tied to a single input format. |
Documentation
To find out | Read |
The whole system at a glance — every tool's inputs and outputs, the analysis routes, the statistics, and export formats, with diagrams (Japanese) | |
What each MCP tool takes and does | |
What an output field means — row granularity, lipid-name grammar, caveats | docs/output_format/, also served as the MCP resource |
Which functions a tool calls, in what order | |
MessagePack key indices, transcribed from MS-DIAL's | |
Running the parsers from the command line | |
Setting up the local MCP server on a member's machine | |
Working on this repository |
Tests run from the repository root. They need pytest, which is not part of the
runtime dependencies; install it through the development requirements first:
python -m pip install -r requirements-dev.txt
python -m pytest tests -qStatus and caveats
This is a research prototype, developed against one lab's MS-DIAL outputs. Treat the following as known limits rather than surprises:
Version-coupled. The binary readers follow MS-DIAL's internal class layout. A MS-DIAL release that changes those classes will need the key indices in
docs/schema/re-checked.Multi-group ANOVA is deliberately unavailable. MS-DIAL metadata carries no factor-to-level mapping, so the server asks you to carve out two groups explicitly instead of guessing a design.
Identification confidence is reported, not assumed. An MS/MS flag and an actual acquired spectrum are distinguished throughout; check the reported band before claiming an MSI level.
Analysis records live with the data, not the code. Objectives and reports are written to
reports/inside the analysis folder (next to the raw data and MS-DIAL output), never under the clone;data/is untracked.
License
MIT.
This project reads MS-DIAL's output files; it contains no MS-DIAL source code and is not
a derivative of it. The MessagePack key indices in docs/schema/
are transcribed from the [Key(N)] attributes of MS-DIAL's own classes, with the upstream
repository and the commit they were checked against recorded in each file. MS-DIAL
(systemsomicslab/MsdialWorkbench) is
licensed under LGPL-3.0 by its authors.
This server cannot be deployed
Maintenance
Related MCP Connectors
The statistical analyst in your AI chat — validated, citable, re-runnable analysis of your data.
- mcpOAuthio.scispot
Turn any LLM into your lab assistant: search samples, track experiments, analyze data with AI.
Upload spreadsheets, get plain-English analysis with real computed charts and quality scores.
221AI data analyst: ask about your Excel, CSV, GA4 or database data and get charts and dashboards back
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables conversational analysis of CSV and Parquet files through natural language, providing statistics, summaries, data type information, and comprehensive multi-step data analysis.-
- AlicenseCqualityBmaintenanceEnables conversational data analysis of Excel/CSV files through natural language queries, powered by 395 Excel functions via HyperFormula and multi-provider AI. Supports advanced analytics, bulk operations, financial modeling, and large file processing with intelligent chunking.3560 npm38MIT
- AlicenseNot gradedqualityDmaintenanceEnables data analysis and visualization operations such as loading CSV/Excel/JSON files, computing summary statistics, generating charts, and exploring datasets via SSE/HTTP.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to generate publication-quality bioinformatics visualizations (volcano plots, PCA, heatmaps, etc.) directly from raw biological data.MIT