ChatSpatial
MCP server for spatial transcriptomics analysis with 60+ integrated methods
ChatSpatial
MCP server for spatial transcriptomics analysis via natural language
Before
import scanpy as sc
import squidpy as sq
adata = sc.read_h5ad("data.h5ad")
sc.pp.filter_cells(adata, min_genes=200)
sc.pp.normalize_total(adata)
sc.pp.log1p(adata)
sc.pp.highly_variable_genes(adata)
sc.tl.pca(adata)
sc.pp.neighbors(adata)
# ... 40 more lines
After
"Load my Visium data and identify
spatial domains"
Loaded 3,456 spots, 18,078 genes
Identified 7 spatial domains
Generated visualization
Quick Start
Using Claude Code / Codex / OpenCode? Just paste this:
Install ChatSpatial following https://github.com/cafferychen777/ChatSpatial/blob/main/INSTALLATION.md
# 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.
Use
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
| Category | Methods |
|---|---|
| Spatial Domains | SpaGCN, STAGATE, GraphST, 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 |
| Trajectory & Velocity | CellRank, Palantir, DPT, scVelo, VeloVI |
| Spatial Statistics | Moran's I, Local Moran, Geary's C, Getis-Ord Gi*, Ripley's K, Neighborhood Enrichment |
| Enrichment | GSEA, ORA, Enrichr, ssGSEA, Spatial EnrichMap |
| Spatial Genes | SpatialDE, SPARK-X |
| Integration | Harmony, BBKNN, Scanorama, scVI |
| Other | CNV Analysis, Spatial Registration |
60+ methods across 15 categories. Supports 10x Visium, Xenium, Slide-seq v2, MERFISH, seqFISH.
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}
}
Related Servers
Rhombus MCP Server
An MCP server for the Rhombus API, offering advanced security and surveillance features.
Jilebi
A secure, extensible MCP runtime with JS plugins
MCP GameBoy Server
Allows Large Language Models to interact with a GameBoy emulator via the serverboy MCP server.
SwitchBot MCP Server
Control SwitchBot devices interactively using the SwitchBot API.
tip.md x402 + CDP
An MCP server for the tip.md platform that enables AI agents to facilitate crypto tipping using x402 payment collection and CDP automatic disbursement.
MCP Goodnews
An MCP application that delivers curated positive and uplifting news stories using NewsAPI and Cohere LLM.
ImmoStage Virtual Staging
AI virtual staging for real estate — stage rooms, beautify floor plans, classify images, generate property descriptions
ThreatByte-MCP
ThreatByte-MCP is a deliberately vulnerable, MCP-based case management web app. It mirrors a realistic SOC analyst workflow with a server-rendered UI and a real MCP server. The MCP tools are intentionally vulnerable for training and demonstration.
Drainbrain
AI-powered Solana token rug pull detection with ML ensemble scoring, honeypot detection, and temporal rug stage prediction.
Rami Levy
An MCP server for interacting with the Rami Levy online grocery store API.