Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
ChatSpatial logo

ChatSpatial

cafferychen777/ChatSpatial
40 starsv1.0.3STDIORegistry activeMITUpdated 2026-06-15Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add chatspatial -- uvx chatspatial

Summary

MCP server for spatial transcriptomics analysis with 60+ integrated methods covering cell annotation, deconvolution, spatial statistics, and visualization.

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add chatspatial -- uvx chatspatial

Claude Desktop

Add this to claude_desktop_config.json under Settings → Developer → Edit Config:

{
  "mcpServers": {
    "chatspatial": {
      "command": "uvx",
      "args": [
        "chatspatial"
      ]
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "chatspatial": {
      "command": "uvx",
      "args": [
        "chatspatial"
      ]
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "chatspatial": {
      "command": "uvx",
      "args": [
        "chatspatial"
      ]
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI — run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add chatspatial -- uvx chatspatial

# or add to ~/.codex/config.toml:
[mcp_servers.chatspatial]
command = "uvx"
args = ["chatspatial"]

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "chatspatial": {
        "command": "uvx",
        "args": [
          "chatspatial"
        ]
      }
    }
  }
}

README.md

<div align="center">

ChatSpatial

MCP server for spatial transcriptomics analysis via natural language

![Paper](https://doi.org/10.64898/2026.02.26.708361) ![MLGenX @ ICLR 2026](https://openreview.net/forum?id=xZ814yNaUW) ![ENAR 2026](https://www.enar.org/meetings/spring2026/) ![IBC 2026](https://www.ibc2026.org/home) ![CI](https://github.com/cafferychen777/ChatSpatial/actions/workflows/ci.yml) ![PyPI](https://pypi.org/project/chatspatial/) ![Python 3.11-3.13](https://www.python.org/downloads/) ![License: MIT](https://opensource.org/licenses/MIT) ![Docs](https://docs.cafferyang.com/) ![Docker](https://github.com/users/cafferychen777/packages/container/package/chatspatial)

</div>

<p align="center"> <img src="assets/images/overview.jpg" alt="ChatSpatial Overview" width="900"> </p>

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 65 spatial transcriptomics methods across 15 analytical categories. The tools are the stable natural-language interface; the methods are the analysis backends selected through tool parameters.

---

Start Here

  1. Install ChatSpatialInstallation Guide for Python/uv setup, or Docker Guide for the GHCR image
  2. Configure your MCP clientConfiguration Guide
  3. Run your first analysisQuick Start

Docker quick start:

docker pull ghcr.io/cafferychen777/chatspatial:v1.2.10

Minimal example prompt:

Load /absolute/path/to/spatial_data.h5ad and show me the tissue structure

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 65 methods across 15 analytical categories, exposed through 20 MCP tools. Supports 10x Visium, Xenium, Slide-seq v2, MERFISH, seqFISH.

| Category | Example methods | |----------|---------| | Data Loading & Preprocessing | Scanpy I/O, QC, Normalization, HVG, PCA, Neighbors | | Visualization | Spatial plots, Embedding plots, Gene expression overlays | | Spatial Domain Identification | SpaGCN, STAGATE, GraphST, BANKSY, Leiden, Louvain | | Deconvolution | FlashDeconv, Cell2location, RCTD, DestVI, Stereoscope, SPOTlight, Tangram, CARD | | Cell-Cell Communication | LIANA+, CellPhoneDB, CellChat (cellchat_r), FastCCC | | Cell Type Annotation | Tangram, scANVI, CellAssign, mLLMCelltype, scType, SingleR | | Differential Expression | Wilcoxon, t-test, Logistic Regression, pyDESeq2 | | Trajectory Inference | CellRank, Palantir, DPT | | RNA Velocity | scVelo, VeloVI | | Spatial Statistics | Moran's I, Local Moran, Geary's C, Getis-Ord Gi*, Ripley's K, Co-occurrence, Neighborhood Enrichment, Centrality Scores, Local Join Count, Network Properties | | Enrichment Analysis | GSEA, ORA, Enrichr, ssGSEA, Spatial EnrichMap | | Spatially Variable Genes | SpatialDE, SPARK-X, FlashS | | Multi-sample Integration | Harmony, BBKNN, Scanorama, scVI | | CNV Analysis | InferCNVPy, Numbat | | Spatial Registration | PASTE, STalign |

---

Documentation

| Guide | Use this when... | |-------|------------------| | Installation | You need to install ChatSpatial in a Python environment | | Docker | You want a reproducible container runtime or local dependency resolution fails | | Configuration | You need exact MCP client syntax or the runtime path model | | Quick Start | ChatSpatial is installed and you want the first successful analysis | | Concepts | You need to choose an analysis strategy from a biological question | | Examples | You want copy-pasteable natural-language workflow prompts | | Methods Reference | You need canonical tool names, method names, parameters, and defaults | | Troubleshooting | Setup, data loading, or analysis behavior is not working | | Full Docs | You want the complete documentation site |

---

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.

---

Contributing

Documentation improvements, bug reports, and new analysis methods are all welcome. See CONTRIBUTING.md.

<div align="center">

MIT License · GitHub · Issues

</div>

<!-- mcp-name: io.github.cafferychen777/chatspatial -->

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.