
一个MCP服务器(`ms-data-parser`)读取MS-DIAL的二进制脂质组学输出,并以LLM能够推理的形式将其暴露。
概览
一个MCP服务器(ms-data-parser)读取MS-DIAL的二进制脂质组学输出,并以LLM能够推理的形式将其暴露在大语言模型中。 MS-DIAL 将对齐结果写成压缩后的 MessagePack 和自定义二进制 blob。这些数据在图形界面外无法读取,且体积过大,无法粘贴到聊天中。该服务器解析它们,运行标准的脂质组学,服务器端分析,并返回简明的摘要——因此,像 Claude Desktop、Claude Code 或本地 WebUI 这样的大型语言模型客户端可以在不看到原始矩阵的情况下进行完整分析。 - — 比对结果、每次测量峰值列表、去卷积的MS/MS谱图以及提取的离子色谱图。- — 预处理和质量控制(归一化、空白减法、QC-RSD滤波、漂移修正)、PCA以及使用BH-FDR进行的两组微分分析。- — 图在服务器上渲染为PNG格式,而非作为坐标列表发送,完整结果表在导出前保持会话状态。
概述(AI 翻译)
一台MCP服务器(ms-data-parser)读取MS-DIAL的二进制脂质组学输出和
让他们以一种能够推理的方式接触到大型语言模型。
MS-DIAL 将其对齐结果写成压缩后的 MessagePack 和自定义的二进制 blob。 它们在图形界面外无法读取,而且太大,无法粘贴到聊天中。本服务器 解析它们,运行标准的脂质组学,服务器端分析,返回 Compact 摘要——例如像Claude Desktop、Claude Code或本地WebUI这样的LLM客户端可以 在从未见过原始矩阵的情况下进行完整分析。
它的作用
- 解析MS-DIAL二进制 — 比对结果,按测量峰值列表, 去卷曲的MS/MS光谱,以及提取的离子色谱图。
- 在服务器端运行分析 — 预处理和质量控制(归一化,空白 减法、QC-RSD滤波、漂移校正)、PCA和两组微分 与BH-FDR进行分析。
- 将结果排除在上下文窗口之外 — 图块在服务器上渲染为PNG 与其以坐标列表形式发布,完整结果表仍保持会话状态 直到导出。
- 积累知识 — 提供文献笔记和可重复使用的分析手册
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Lipidmix with LLM
An MCP server (ms-data-parser) that parses MS-DIAL’s binary lipidomics outputs, runs the analyses
server-side, and returns compact summaries, so an LLM client (Claude Desktop, Claude Code, a local WebUI)
can drive an analysis without seeing the raw matrices.
What it does
- Parses MS-DIAL binaries — alignment results, per-measurement peak lists, deconvoluted MS/MS spectra, extracted ion chromatograms.
- Runs the analysis server-side — preprocessing and QC (normalization, blank subtraction, QC-RSD filtering, drift correction), PCA, differential analysis with BH-FDR.
- Keeps results out of the context window — plots are rendered to PNG on the server; full result tables stay in session state until exported.
- Records the analysis — objectives and reports go to
reports/in the analysis folder (next to the raw data and MS-DIAL output, never under the clone;data/is untracked). - Can drive MS-DIAL itself — two entries meet at an MS-DIAL analysis folder: read one MS-DIAL has
written (e.g. in the GUI), or build one from raw data with MS-DIAL Console. Given a folder, the server
uses existing MS-DIAL output if present; with raw files only, it runs Console per polarity
(
pipeline_run), checks each analysis folder against its mzTab-M, and opens the result withload_dataset(pipeline_path=..., polarity=...).
Supported inputs
| Format | Contents |
|---|---|
.arf |
Alignment result, per-sample peaks. Main source for cross-sample comparison and PCA. |
.arf2 |
Alignment result, spot representatives. Dataset-wide catalog and annotations. |
.dcl |
Deconvoluted MS/MS spectra (MS-DIAL’s own binary format, not MessagePack). |
.EIC.aef |
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
Run the setup script once from the repository root. It uses uv when
available (uv also fetches Python) and otherwise a standard venv with Python 3.13+; dependency
versions are pinned by uv.lock.
powershell -ExecutionPolicy Bypass -File setup.ps1 # Windows
sh setup.sh # macOS / Linux
It creates .venv/, checks that every dependency imports, copies lipidmix.local.toml from the example
if missing, writes .mcp.json for Claude Code, and prints the snippet for Claude Desktop’s
claude_desktop_config.json. Existing .mcp.json and lipidmix.local.toml are never overwritten;
differences are reported.
There is no default data directory or environment variable; pass the MS-DIAL output folder to the client:
Load the dataset in
/path/to/your/msdial/outputand show me its samples and groups.
That calls load_dataset, which picks the latest alignment batch, opens it as the current dataset, and
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →