cafferychen777/ChatSpatial
ChatSpatial is an open-source MCP (Model Context Protocol) server that provides a conversational interface to over 60 integrated methods for spatial transcriptomics analysis. It allows researchers and bioinformaticians to interact with complex analysis workflows using natural language through AI assistants like ChatGPT. The server acts as a bridge, translating user prompts into function calls to established computational methods for cell annotation, deconvolution, spatial statistics, and visualization. By enforcing a schema-driven orchestration, it ensures valid parameter combinations and captures errors gracefully, reducing the cognitive load on the user. Under the hood, ChatSpatial leverages a curated collection of Python libraries and tools commonly used in the spatial omics field, such as those for preprocessing, dimensionality reduction, clustering, and spatial pattern detection. It handles data I/O, method execution, and result formatting automatically, presenting outputs in a compact, human-readable manner. The server can be deployed locally or in a containerized environment, making it accessible across platforms. It supports common spatial transcriptomics data formats and can generate visualizations like SVGs for spatial plots. Key features include: over 60 analysis methods covering a broad range of tasks; integration with the MCP ecosystem for seamless AI assistant interaction; schema-validated tool calls to prevent erroneous analysis; support for multiple species (e.g., human, mouse) and data types; and reproducible environments via Docker. The tool is designed to be extensible, allowing addition of new methods as the field evolves.
- Category
- Developer Tools
- Pricing
- Open Source
Problem solved
Spatial transcriptomics researchers face a fragmented landscape of analysis tools, each with its own interface, dependencies, and parameter requirements. This leads to steep learning curves, inefficient workflows, and barriers to multi-method analyses. ChatSpatial solves this by providing a unified, natural language interface that abstracts away complexity, enabling researchers to execute sophisticated analyses without needing to recall exact command syntax or method-specific quirks. It democratizes access to advanced spatial analysis by letting users simply describe what they want to do in plain English.
Use cases
- Performing cell type annotation on spatial transcriptomics datasets using natural language commands
- Running deconvolution algorithms to estimate cell type proportions in spots or regions
- Computing spatial autocorrelation statistics (e.g., Moran's I) to identify gene expression patterns
- Generating spatial visualizations like heatmaps or scatter plots on tissue images
- Combining multiple analysis steps into a pipeline by simply describing the desired outcome to an AI assistant
- Exploratory analysis where a researcher iteratively asks questions about the data and gets immediate results
Audience
- Developers
- Data Scientists
- Researchers
Pros
- Integrates 60+ established methods, reducing tool fragmentation
- Conversational AI interface lowers the barrier for non-programmers
- Open-source and self-hosted, offering full data privacy and customization
- Schema-enforced orchestration prevents common parameter errors
- Docker support ensures reproducible and easy deployment
Cons
- Limited to spatial transcriptomics, not general-purpose bioinformatics
- Requires technical setup (Python environment, possibly Docker) to run locally
- Dependency on external packages may lead to large installations and potential version conflicts
Official website: https://github.com/cafferychen777/ChatSpatial
Canonical LambdaBase page: https://www.lambdabase.com/tools/cafferychen777-chatspatial