ChatSpatial
MCP server for spatial transcriptomics analysis with 60+ integrated methods
ChatSpatial replaces ad-hoc LLM code generation with schema-enforced orchestration — the LLM selects methods and parameters from a curated registry instead of writing arbitrary code, ensuring reproducible results across sessions and platforms. It exposes 60+ spatial transcriptomics methods as MCP tools that any compatible client can call.
Quick Start
Using Claude Code / Codex / OpenCode? Just paste this:
Install ChatSpatial following https://github.com/cafferychen777/ChatSpatial/blob/main/INSTALLATION.md
Manual installation
# Install uv (recommended - handles complex dependencies)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create environment and install
python3 -m venv venv && source venv/bin/activate
uv pip install chatspatial
# Configure (use your venv Python path)
claude mcp add chatspatial /path/to/venv/bin/python -- -m chatspatial server
Works with any MCP-compatible client — not just Claude. Use with OpenCode, Codex, or any client supporting Model Context Protocol. Configure your preferred LLM (Qwen, DeepSeek, Doubao, etc.) as the backend.
See Installation Guide for detailed setup including virtual environments and all MCP clients.
Usage
Talk to ChatSpatial in natural language:
Load /path/to/spatial_data.h5ad and show me the tissue structure
Identify spatial domains using SpaGCN
Find spatially variable genes and create a heatmap
Capabilities
60+ methods across 11 categories. Supports 10x Visium, Xenium, Slide-seq v2, MERFISH, seqFISH.
| Category | Methods |
|---|---|
| Spatial Domains | SpaGCN, STAGATE, GraphST, BANKSY, Leiden, Louvain |
| Deconvolution | FlashDeconv, Cell2location, RCTD, DestVI, Stereoscope, SPOTlight, Tangram, CARD |
| Cell Communication | LIANA+, CellPhoneDB, CellChat, FastCCC |
| Cell Type Annotation | Tangram, scANVI, CellAssign, mLLMCelltype, scType, SingleR |
| Differential Expression | Wilcoxon, t-test, Logistic Regression, pyDESeq2 |
| Trajectory & Velocity | CellRank, Palantir, DPT, scVelo, VeloVI |
| Spatial Statistics | Moran's I, Local Moran, Geary's C, Getis-Ord Gi*, Ripley's K, Co-occurrence, Neighborhood Enrichment, Centrality Scores |
| Enrichment | GSEA, ORA, Enrichr, ssGSEA, Spatial EnrichMap |
| Spatial Genes | SpatialDE, SPARK-X, FlashS |
| Integration | Harmony, BBKNN, Scanorama, scVI |
| Other | CNV Analysis (InferCNVPy, Numbat), Spatial Registration (PASTE, STalign) |
Documentation
| Guide | Description |
|---|---|
| Installation | Virtual environment setup, all platforms |
| Quick Start | 5-minute first analysis |
| Examples | Step-by-step workflows |
| Methods Reference | All 20 tools with parameters |
| Full Docs | Complete reference |
Citation
If you use ChatSpatial in your research, please cite:
@article{Yang2026.02.26.708361,
author = {Yang, Chen and Zhang, Xianyang and Chen, Jun},
title = {ChatSpatial: Schema-Enforced Agentic Orchestration for Reproducible and Cross-Platform Spatial Transcriptomics},
elocation-id = {2026.02.26.708361},
year = {2026},
doi = {10.64898/2026.02.26.708361},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2026/03/01/2026.02.26.708361},
journal = {bioRxiv}
}
ChatSpatial orchestrates many excellent third-party methods. Please also cite the original tools your analysis used. For example, if you ran spatial domain identification with SpaGCN, cite both ChatSpatial and SpaGCN. Each method's original publication can be found in its documentation or GitHub repository.
Contributing
ChatSpatial is open to contributions! Whether it's bug reports, new analysis methods, documentation improvements, or feature requests — all are welcome. See CONTRIBUTING.md for guidelines.
相關伺服器
Time MCP Server
Provides current time and timezone conversion capabilities using IANA timezone names, with automatic system timezone detection.
ADM1 MCP Server
Control anaerobic digestion modeling (ADM1) using natural language.
MCP Cat Language Server
A server that translates Chinese text into cute cat language expressions.
xmcp.dev
The TypeScript framework for building & shipping MCP servers
Image
Fetch and process images from URLs, local file paths, and numpy arrays, returning them as base64-encoded strings.
CryptoAPIs MCP Simulate
MCP server for dry-run EVM transaction simulation via Crypto APIs
MCP Trader Server
An MCP server for stock and cryptocurrency analysis with technical analysis tools.
MCP-HA-Connect
A production-ready Model Context Protocol (MCP) server for Home Assistant integration with AI assistants like Claude.
Chia Health MCP Server
Chia Health MCP Server — Patient workflow integration for a licensed US telehealth platform. Browse GLP-1 medications (semaglutide, tirzepatide), peptide therapies (sermorelin, NAD+, glutathione), and longevity treatments. Check eligibility, complete intake, sign consents, and manage treatment plans. 30 tools, HIPAA-compliant. All prescriptions evaluated by licensed US healthcare providers and delivered from FDA-regulated pharmacies across 50 states + DC.
KSeF
MCP server for Poland's national e-invoicing system KSeF (Krajowy System e-Faktur). Provides 12 tools for complete KSeF API integration including session management, invoice querying/submission, export generation, and system monitoring. Built with Rust for reliability and performance. Perfect for Polish businesses automating e-invoicing processes and developers building KSeF compliance tools.