MCP server for spatial transcriptomics analysis via natural language Using Claude Code / Codex / OpenCode? Just paste this: Manual installation See Installation Guide for detailed setup including virtual environments and all MCP clients. 60+ methods across 15 categories. Supports 10x Visium, Xenium, Slide-seq v2, MERFISH, seqFISH. MIT License · GitHub · Issues
Add this skill
npx mdskills install cafferychen777/chatspatialComprehensive spatial transcriptomics MCP server with 60+ analysis methods and clear documentation
1<div align="center">23# ChatSpatial45**MCP server for spatial transcriptomics analysis via natural language**67[](https://github.com/cafferychen777/ChatSpatial/actions/workflows/ci.yml)8[](https://pypi.org/project/chatspatial/)9[](https://www.python.org/downloads/)10[](https://opensource.org/licenses/MIT)11[](https://cafferychen777.github.io/ChatSpatial/)1213</div>1415---1617<table>18<tr>19<td width="50%">2021### Before22```python23import scanpy as sc24import squidpy as sq25adata = sc.read_h5ad("data.h5ad")26sc.pp.filter_cells(adata, min_genes=200)27sc.pp.normalize_total(adata)28sc.pp.log1p(adata)29sc.pp.highly_variable_genes(adata)30sc.tl.pca(adata)31sc.pp.neighbors(adata)32# ... 40 more lines33```3435</td>36<td width="50%">3738### After39```text40"Load my Visium data and identify41 spatial domains"42```4344```45Loaded 3,456 spots, 18,078 genes46Identified 7 spatial domains47Generated visualization48```4950</td>51</tr>52</table>5354---5556## Quick Start5758**Using Claude Code / Codex / OpenCode?** Just paste this:59```60Install ChatSpatial following https://github.com/cafferychen777/ChatSpatial/blob/main/INSTALLATION.md61```6263<details>64<summary>Manual installation</summary>6566```bash67# Install uv (recommended - handles complex dependencies)68curl -LsSf https://astral.sh/uv/install.sh | sh6970# Create environment and install71python3 -m venv venv && source venv/bin/activate72uv pip install chatspatial7374# Configure (use your venv Python path)75claude mcp add chatspatial /path/to/venv/bin/python -- -m chatspatial server76```77</details>7879> **Works with any MCP-compatible client** — not just Claude. Use with [OpenCode](https://opencode.ai/), Codex, or any client supporting [Model Context Protocol](https://modelcontextprotocol.io/). Configure your preferred LLM (Qwen, DeepSeek, Doubao, etc.) as the backend.8081See [Installation Guide](INSTALLATION.md) for detailed setup including virtual environments and all MCP clients.8283---8485## Use8687```text88Load /path/to/spatial_data.h5ad and show me the tissue structure89```9091```text92Identify spatial domains using SpaGCN93```9495```text96Find spatially variable genes and create a heatmap97```9899---100101## Capabilities102103| Category | Methods |104|----------|---------|105| **Spatial Domains** | SpaGCN, STAGATE, GraphST, Leiden, Louvain |106| **Deconvolution** | FlashDeconv, Cell2location, RCTD, DestVI, Stereoscope, SPOTlight, Tangram, CARD |107| **Cell Communication** | LIANA+, CellPhoneDB, CellChat, FastCCC |108| **Cell Type Annotation** | Tangram, scANVI, CellAssign, mLLMCelltype, scType, SingleR |109| **Trajectory & Velocity** | CellRank, Palantir, DPT, scVelo, VeloVI |110| **Spatial Statistics** | Moran's I, Local Moran, Geary's C, Getis-Ord Gi*, Ripley's K, Neighborhood Enrichment |111| **Enrichment** | GSEA, ORA, Enrichr, ssGSEA, Spatial EnrichMap |112| **Spatial Genes** | SpatialDE, SPARK-X |113| **Integration** | Harmony, BBKNN, Scanorama, scVI |114| **Other** | CNV Analysis, Spatial Registration |115116**60+ methods** across 15 categories. **Supports** 10x Visium, Xenium, Slide-seq v2, MERFISH, seqFISH.117118---119120## Documentation121122| Guide | Description |123|-------|-------------|124| [Installation](INSTALLATION.md) | Virtual environment setup, all platforms |125| [Quick Start](docs/quickstart.md) | 5-minute first analysis |126| [Examples](docs/examples.md) | Step-by-step workflows |127| [Methods Reference](docs/advanced/methods-reference.md) | All 20 tools with parameters |128| [Full Docs](https://cafferychen777.github.io/ChatSpatial/) | Complete reference |129130---131132## Citation133134```bibtex135@software{chatspatial2025,136 title={ChatSpatial: Agentic Workflow for Spatial Transcriptomics},137 author={Chen Yang and Xianyang Zhang and Jun Chen},138 year={2025},139 url={https://github.com/cafferychen777/ChatSpatial}140}141```142143<div align="center">144145**MIT License** · [GitHub](https://github.com/cafferychen777/ChatSpatial) · [Issues](https://github.com/cafferychen777/ChatSpatial/issues)146147</div>148149<!-- mcp-name: io.github.cafferychen777/chatspatial -->150
Full transparency — inspect the skill content before installing.