scvi-tools MCP Server
Enables deep probabilistic analysis of single-cell omics data using scvi-tools through natural language. Supports SCVI for scRNA-seq analysis, SCANVI for cell type annotation, TOTALVI for multi-modal RNA/protein data, and PEAKVI for scATAC-seq analysis.
README
scvi-tools MCP Server
An MCP (Model Context Protocol) server for deep probabilistic analysis of single-cell omics data using scvi-tools with natural language!
🎯 What can it do?
-
SCVI: Deep generative modeling for scRNA-seq
- Latent representation extraction
- Normalized expression
- Differential expression analysis
- Batch effect correction
-
SCANVI: Semi-supervised cell type annotation
- Transfer learning from labeled to unlabeled cells
- Cell type prediction
-
TOTALVI: Joint RNA and protein (CITE-seq) analysis
- Multi-modal integration
- Protein expression denoising
-
PEAKVI: scATAC-seq analysis
- Chromatin accessibility
- Differential accessibility
📦 Installation
cd /path/to/scvi-mcp
python3 -m venv venv
source venv/bin/activate
pip install -e .
🚀 Quick Start
scvi-mcp run --data /path/to/data.h5ad
🔧 Configuration for Claude Desktop
{
"mcpServers": {
"scvi": {
"command": "/path/to/scvi-mcp/venv/bin/python",
"args": ["-m", "scvi_mcp", "run", "--data", "/path/to/data.h5ad"]
}
}
}
🛠️ Available Tools (22 tools)
SCVI (8 tools)
- scvi_setup_anndata, scvi_create_model, scvi_train_model
- scvi_get_latent_representation, scvi_get_normalized_expression
- scvi_differential_expression, scvi_save_model, scvi_load_model
SCANVI (4 tools)
- scanvi_setup_anndata, scanvi_create_model
- scanvi_from_scvi_model, scanvi_predict
TOTALVI (3 tools)
- totalvi_setup_anndata, totalvi_create_model
- totalvi_get_protein_foreground_prob
PEAKVI (3 tools)
- peakvi_setup_anndata, peakvi_create_model
- peakvi_differential_accessibility
Common (2 tools)
- scvi_get_elbo, scvi_get_reconstruction_error
📝 Example Usage
Basic SCVI workflow:
1. "Setup my data for SCVI analysis with batch correction"
2. "Create an SCVI model with 10 latent dimensions"
3. "Train the SCVI model"
4. "Extract the latent representation and save it to X_scVI"
5. "Run differential expression between cell types"
SCANVI cell type annotation:
1. "Setup SCANVI with cell_type labels, mark Unknown as unlabeled"
2. "Create SCANVI model from my trained SCVI model"
3. "Train SCANVI and predict cell types"
📄 License
MIT License
🔗 Related Projects
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.