Paper2MCP v2 Verified Deliverable

Non-invasive profiling of the tumour microenvironment with spatial ecotypes

期刊:Nature (2026-05-06) · DOI:10.1038/s41586-026-10452-4 · 开源许可:Non-commercial/academic (restricted)

上游仓库:https://github.com/digitalcytometry/spatialecotyper @ d3e6c76b18c8

Pytest: passed MCP Stdio Selftest: passed Relocated Fresh Install: passed

一、一键安装与 MCP 接入(本地 / 远程统一接口)

# 1. 解压并自动构建隔离环境 + 运行真实数据自测
unzip spatial-ecotyper-mcp.zip && cd spatial-ecotyper-mcp
bash install.sh
.venv/bin/python selftest.py

# 2. 接入 Claude Code / Antigravity / Cursor (Stdio MCP)
claude mcp add spatial-ecotyper -- "$PWD/.venv/bin/python" "$PWD/server.py"

# 3. 或启动远程 Streamable HTTP MCP 服务端供团队/网页直接调用
.venv/bin/python server.py --transport http --host 0.0.0.0 --port 8000

二、已验证科学工具清单(4 个工具)

discover_spatial_ecotypes MCP Verified ✓

Discover de novo spatial ecotypes (SEs) from single-cell spatial transcriptomics data using SpatialEcoTyper similarity network fusion and Louvain clustering.

Selftest Summary: Discovered 3 de novo spatial ecotypes across 2907/2937 cells (128 spatial neighborhoods).
Metrics: {"n_cells_input": 2937, "n_cells_assigned": 2907, "n_ecotypes": 3, "n_neighborhoods": 128, "ecotype_counts": {"NewSE1": 1242, "NewSE2": 1162, "NewSE3": 503}}
recover_spatial_ecotypes MCP Verified ✓

Recover the 9 conserved pan-cancer spatial ecotypes (or custom NMF SEs) from single-cell ST or scRNA-seq data and profile consensus SE markers.

Selftest Summary: Recovered 9 spatial ecotypes across 444/1251 cells (assignment rate 35.5%, mean PredScore 0.695).
Metrics: {"n_cells": 1251, "n_assigned_se": 444, "assignment_rate": 0.3549, "mean_pred_score": 0.6953, "n_ecotypes_recovered": 9, "ecotype_counts": {"NonSE": 807, "SE1": 71, "SE2": 1, "SE3": 76, "SE4": 17, "SE5": 55, "SE6": 45, "SE7": 64, "SE8": 103, "SE9": 12}}
validate_spatial_organization MCP Verified ✓

Quantify spatial autocorrelation (normalized Moran's I z-scores) and cell-state spatial colocalization significance for spatial ecotypes.

Selftest Summary: Validated 3 spatial ecotypes across 2907 cells: mean Moran's I z-score = 55.33 (max 66.14); 3/3 SEs significantly colocalized (p < 0.05).
Metrics: {"n_cells": 2907, "n_ecotypes": 3, "n_cell_states": 27, "mean_moran_zscore": 55.325, "max_moran_zscore": 66.138, "n_significant_coloc_ecotypes": 3, "moran_zscores": {"NewSE1": 53.484, "NewSE2": 66.138, "NewSE3": 46.352}, "coloc_pvals": {"NewSE1": 5.635e-10, "NewSE2": 3.144e-08, "NewSE3": 5.896e-08}}
deconvolve_spatial_ecotypes MCP Verified ✓

Deconvolve spatial ecotype abundances from Visium spots or bulk RNA-seq profiles using NMF models, with optional KNN spatial smoothing.

Selftest Summary: Deconvolved 8 spatial ecotypes across 40 spatial spots (with KNN smoothing) using 344 NMF model features.
Metrics: {"n_samples": 40, "n_ecotypes": 8, "n_model_features": 344, "smoothed_spots": true, "sample_level_abundances": {"SE1": 0.1397, "SE3": 0.1019, "SE4": 0.0977, "SE5": 0.1163, "SE6": 0.1209, "SE7": 0.1397, "SE8": 0.1275, "SE9": 0.1563}}

三、实测复现结果图展示

fig1_melanoma1_denovo_se.png
fig2_crc2_recovered_se.png
fig3_melanoma1_colocalization.png