
ChatSpatial
io.github.cafferychen777由 GitHub 账号 cafferychen777 发布v1.6.0更新于 Oct 24, 2026
Schema-enforced spatial transcriptomics analysis with 20 tools and 67 methods via MCP
概览
本地 MCP 服务器,让助手通过 20 个工具调用 67 种方法,执行受 schema 约束的空间转录组分析。
- 可以做什么
- 加载与预处理空间数据(Scanpy 读写、QC、标准化、HVG、PCA、近邻)
- 绘制空间坐标图、嵌入图与基因表达叠加图
- 识别空间域、反卷积细胞类型、注释细胞类型、差异表达分析
- 运行细胞通讯、轨迹推断、RNA 速率、CNV 与多样本整合方法
- 计算空间统计、空间可变基因、富集分析与空间配准
- 适用场景
- 适合处理空间转录组数据(Visium、Xenium、Slide-seq、MERFISH、seqFISH),并希望助手以可复现、参数化的方式执行分析流程,而不是临时生成脚本的场景。
- 运行要求
- 以 PyPI 包形式通过 uvx 在本地以 stdio 运行,需先安装 uv。标准安装包含核心方法;可选 full 扩展提供更多 Python 方法族,R 后端需另行配置。也提供 Docker 镜像。未声明认证或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 ChatSpatial,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ChatSpatial
MCP server for spatial transcriptomics analysis via natural language
[Paper] [MLGenX @ ICLR 2026] [ENAR 2026] [IBC 2026] [CI] [PyPI] [Python 3.11-3.14] [License: MIT] [Docs] [Docker]
ChatSpatial replaces ad-hoc LLM code generation with schema-enforced orchestration. Instead of generating arbitrary scripts, the LLM selects tools and parameters from a curated registry, making spatial transcriptomics workflows more reproducible across sessions and clients.
ChatSpatial exposes 20 schema-validated MCP tools that orchestrate 67 spatial transcriptomics methods across 13 analytical categories. The tools are the stable natural-language interface; the methods are the analysis backends selected through tool parameters.
The server implements MCP 2026-07-28 through the official Python SDK v2 and
continues to serve 2025-11-25 clients through SDK-managed protocol negotiation.
STDIO remains the secure local default; Streamable HTTP is available for
explicitly configured HTTP deployments.
Start Here
Install uv once, then
register ChatSpatial without creating or managing a Python environment:
Codex:
Claude Code:
uvx creates an isolated environment on first launch and reuses its cache on
later launches. Restart the MCP client after adding the server.
The command above installs the standard runtime. To make all 15 composable Python method families available in the same isolated MCP environment, use:
full includes CellRank, FastCCC, the maintained spatial-domain and
registration backends, annotation, enrichment, and the other portable Python
families. R bridges, AESTETIK, and rctd-py remain separate because they have
system, platform, or large-runtime requirements. See the installation guide
before enabling those families.
Then:
- Run your first analysis — Quick Start
- Choose optional method families or a persistent environment — Installation Guide
- Configure another MCP client — Configuration Guide
- Reproduce the manuscript key results without an LLM — Reproduction image
Docker quick start:
Minimal example prompt:
The Quick Start provides a downloadable sample and a
Leiden workflow that runs with the standard installation. Its sample has spatial
coordinates but no H&E image. SpaGCN requires the optional spatial-domains extra.
If you use Docker, mount host data to /data and prompt with the container path, for example /data/spatial_data.h5ad.
ChatSpatial works with any MCP-compatible client — Claude Code, Claude Desktop, Codex, OpenCode, and other MCP-capable tools.
Capabilities
Current coverage includes 67 methods across 13 analytical categories, exposed through 20 MCP tools. Supports 10x Visium, Xenium, Slide-seq v2, MERFISH, seqFISH.
Documentation
Reproducibility
Each release publishes a reproduction image under the -repro tag. It
re-executes the DLPFC spatial-domain and OSCC CARD deconvolution tool calls
recorded during the manuscript experiments, without calling any LLM, and
compares the results with the reported values:
reproducibility/ contains the image definition
and describes what it checks. The experiment and analysis scripts for the
manuscript are in
ChatSpatial-Reproducibility.
Citation
If you use ChatSpatial in your research, please cite:
ChatSpatial orchestrates many excellent third-party methods. Please also cite the original tools your analysis used.
Contributing
Documentation improvements, bug reports, and new analysis methods are all welcome. See CONTRIBUTING.md.
来源:README.md,提交 30eb958
工具
0版本历史
6- v1.6.0最新Oct 20, 2026
- v1.5.10Oct 12, 2026
- v1.5.9Oct 10, 2026
- v1.5.7Oct 9, 2026
- v1.5.5Oct 9, 2026
- v1.5.3Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分