Skip to main content
Glama

scvi-tools MCP Server

by hyennnnnnn

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

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

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.

  1. ๐ŸŽฏ What can it do?
    1. ๐Ÿ“ฆ Installation
      1. ๐Ÿš€ Quick Start
        1. ๐Ÿ”ง Configuration for Claude Desktop
          1. ๐Ÿ› ๏ธ Available Tools (22 tools)
            1. SCVI (8 tools)
            2. SCANVI (4 tools)
            3. TOTALVI (3 tools)
            4. PEAKVI (3 tools)
            5. Common (2 tools)
          2. ๐Ÿ“ Example Usage
            1. ๐Ÿ“„ License
              1. ๐Ÿ”— Related Projects

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/hyennnnnnn/scvi-mcp'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server