Skip to main content
Glama

âš ī¸ Important Notice: This repository is no longer maintained. Please visit SCMCPHub for the latest version of MCP servers.

SCMCP

An MCP server for scRNA-Seq analysis with natural language!

đŸĒŠ What can it do?

  • IO module like read and write scRNA-Seq data with natural language

  • Preprocessing module,like filtering, quality control, normalization, scaling, highly-variable genes, PCA, Neighbors,...

  • Tool module, like clustering, differential expression etc.

  • Plotting module, like violin, heatmap, dotplot

  • cell-cell communication analysis

Related MCP server: SCMCP

❓ Who is this for?

  • Anyone who wants to do scRNA-Seq analysis natural language!

  • Agent developers who want to call scanpy's functions for their applications

🌐 Where to use it?

You can use scmcp in most AI clients, plugins, or agent frameworks that support the MCP:

  • AI clients, like Cherry Studio

  • Plugins, like Cline

  • Agent frameworks, like Agno

đŸŽŦ Demo

A demo showing scRNA-Seq cell cluster analysis in a AI client Cherry Studio using natural language based on scmcp

https://github.com/user-attachments/assets/93a8fcd8-aa38-4875-a147-a5eeff22a559

đŸŽī¸ Quickstart

Install

Install from PyPI

pip install scmcp

you can test it by running

scmcp run

run scnapy-server locally

Refer to the following configuration in your MCP client:

"mcpServers": {
  "scmcp": {
    "command": "scmcp",
    "args": [
      "run"
    ]
  }
}

run scnapy-server remotely

Refer to the following configuration in your MCP client:

run it in your server

scmcp run --transport sse --port 8000

Then configure your MCP client, like this:

http://localhost:8000/sse

🤝 Contributing

If you have any questions, welcome to submit an issue, or contact me(hsh-me@outlook.com). Contributions to the code are also welcome!

Available Tools

52 tools
calculate_qc_metricsC

Calculate quality control metrics(common metrics: total counts, gene number, percentage of counts in ribosomal and mitochondrial) for AnnData.

Inputs: expr_type, var_type, qc_vars, percent_top, +3 more.

cccC

Cell-cell communication analysis with one method (cellphonedb, cellchat,connectome, natmi, etc.)

Inputs: groupby (required), method, resource_name, expr_prop, +13 more.

ccc_circle_plotC

Visualize cell-cell communication network using a circular plot.

Inputs: uns_key, groupby, source_key, target_key, +22 more.

ccc_dot_plotC

Visualize cell-cell communication interactions using a dotplot.

Inputs: uns_key, specificity_cutoff, colour, size, +13 more.

ccc_rank_aggregateC

Get an aggregate of ligand-receptor scores from multiple Cell-cell communication methods.

Inputs: groupby (required), resource_name, expr_prop, min_cells, +9 more.

check_geneA

Check if genes exist in adata.var_names. This tool should be called before gene expression visualizations or color by genes.

Inputs: var_names.

combatC

ComBat function for batch effect correction

Inputs: key, covariates.

dendrogramC

Hierarchical clustering dendrogram

Inputs: groupby (required), n_pcs, use_rep, var_names, +5 more.

diffmapC

Diffusion Maps for dimensionality reduction

Inputs: n_comps, neighbors_key, random_state.

dptC

Diffusion Pseudotime (DPT) analysis

Inputs: n_dcs, n_branchings, min_group_size, allow_kendall_tau_shift, +1 more.

draw_graphC

Force-directed graph drawing for visualization

Inputs: layout, init_pos, root, random_state, +4 more.

embedding_densityC

Calculate the density of cells in an embedding

Inputs: basis, groupby, key_added, components.

filter_cellsC

Filter cells based on counts and numbers of genes expressed.

Inputs: min_counts, min_genes, max_counts, max_genes.

filter_genesC

Filter genes based on number of cells or counts

Inputs: min_counts, min_cells, max_counts, max_cells.

filter_rank_genes_groupsC

Filter out genes based on fold change and fraction of genes

Inputs: key, groupby, use_raw, key_added, +4 more.

highly_variable_genesC

Annotate highly variable genes

Inputs: layer, n_top_genes, min_disp, max_disp, +8 more.

ingestC

Map labels and embeddings from reference data to new data

Inputs: obs, embedding_method, labeling_method, neighbors_key.

leidenC

Leiden clustering algorithm for community detection

Inputs: resolution, random_state, key_added, directed, +6 more.

list_obsB

List key columns in adata.obs. It should be called before other tools need obs key column names input

Inputs: no named parameters.

list_varA

list key columns in adata.var. it should be called for checking when other tools need var key column names input

Inputs: no named parameters.

log1pC

Logarithmize the data matrix (X = log(X + 1))

Inputs: base, chunked, chunk_size, layer, +1 more.

louvainC

Louvain clustering algorithm for community detection

Inputs: resolution, random_state, key_added, flavor, +5 more.

ls_ccc_methodB

List cell-cell communication method.

Inputs: no named parameters.

marker_gene_overlapC

Calculate overlap between data-derived marker genes and reference markers

Inputs: key, method, normalize, top_n_markers, +2 more.

mark_varA

Determine if each gene meets specific conditions and store results in adata.var as boolean values.for example: mitochondrion genes startswith MT-.the tool should be call first when calculate quality control metrics for mitochondrion, ribosomal, harhemoglobin genes. or other qc_vars

Inputs: var_name, pattern_type, patterns, gene_class.

merge_adataD

merge multiple adata

Inputs: axis, join, merge, uns_merge, +5 more.

neighborsC

Compute nearest neighbors distance matrix and neighborhood graph

Inputs: n_neighbors, n_pcs, use_rep, knn, +6 more.

normalize_totalC

Normalize counts per cell to the same total count

Inputs: target_sum, exclude_highly_expressed, max_fraction, key_added, +4 more.

pagaD

Partition-based graph abstraction

Inputs: groups, use_rna_velocity, model, neighbors_key.

pcaC

Principal component analysis

Inputs: n_comps, layer, zero_center, svd_solver, +4 more.

pl_dotplotC

Plot dot plot of expression values per gene for each group.

Inputs: groupby (required), figsize, color_map, palette, +25 more.

pl_embeddingC

Scatter plot for user specified embedding basis (e.g. umap, tsne, etc).

Inputs: basis (required), figsize, color_map, palette, +38 more.

pl_heatmapD

Heatmap of the expression values of genes.

Inputs: groupby (required), figsize, color_map, palette, +20 more.

pl_highly_variable_genesC

plot highly variable genes; Plot dispersions or normalized variance versus means for genes.

Inputs: figsize, color_map, palette, vmax, +8 more.

pl_matrixplotC

matrixplot, Create a heatmap of the mean expression values per group of each var_names.

Inputs: groupby (required), figsize, color_map, palette, +21 more.

pl_pcaD

Scatter plot in PCA coordinates. default figure for PCA plot

Inputs: figsize, color_map, palette, vmax, +26 more.

pl_pca_variance_ratioC

Plot the PCA variance ratio to visualize explained variance.

Inputs: figsize, color_map, palette, vmax, +8 more.

pl_rank_genes_groups_dotplotC

Plot ranking of genes(DEGs) using dotplot visualization. Defualt plot DEGs for rank_genes_groups tool

Inputs: groupby (required), figsize, color_map, palette, +20 more.

pl_scatterC

Plot a scatter plot of two variables, Scatter plot along observations or variables axes.

Inputs: figsize, color_map, palette, vmax, +19 more.

pl_stacked_violinC

Plot stacked violin plots. Makes a compact image composed of individual violin plots stacked on top of each other.

Inputs: figsize, color_map, palette, vmax, +18 more.

pl_tracksplotC

tracksplot,compact plot of expression of a list of genes..

Inputs: groupby (required), figsize, color_map, palette, +15 more.

pl_violinC

Plot violin plot of one or more variables.

Inputs: keys (required), figsize, color_map, palette, +22 more.

rank_genes_groupsC

Rank genes for characterizing groups, perform differentially expressison analysis

Inputs: groupby (required), mask_var, use_raw, groups, +9 more.

read_toolC

Read data from various file formats (h5ad, 10x, text files, etc.) or directory path.

Inputs: filename (required), sampleid, backed, sheet, +11 more.

regress_outC

Regress out (mostly) unwanted sources of variation.

Inputs: keys (required), layer, n_jobs.

scaleC

Scale data to unit variance and zero mean

Inputs: zero_center, max_value, layer, obsm, +1 more.

score_genesC

Score a set of genes based on their average expression

Inputs: ctrl_size, gene_pool, n_bins, score_name, +2 more.

score_genes_cell_cycleC

Score cell cycle genes and assign cell cycle phases

Inputs: s_genes (required), g2m_genes (required), gene_pool, n_bins, +3 more.

scrubletC

Predict doublets using Scrublet

Inputs: adata_sim, batch_key, sim_doublet_ratio, expected_doublet_rate, +11 more.

tsneC

t-distributed stochastic neighborhood embedding (t-SNE), for visualizating single-cell data

Inputs: n_pcs, use_rep, perplexity, early_exaggeration, +5 more.

umapC

Uniform Manifold Approximation and Projection (UMAP) for visualization

Inputs: min_dist, spread, n_components, maxiter, +9 more.

write_toolC

Write AnnData objects to file.

Inputs: filename (required), ext, compression, compression_opts.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogâ€Ļ

    TDQS

    C2.7/5.0

    Scored across 52 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific single-cell analysis tasks, but some overlap exists in visualization tools (e.g., pl_dotplot vs ccc_dot_plot) and clustering algorithms (leiden vs louvain) that could cause confusion. Descriptions generally help clarify differences, but the sheer number of tools increases potential for misselection.

    Naming Consistency3/5

    The naming follows mixed conventions: many use verb_noun patterns (filter_cells, calculate_qc_metrics), but others use abbreviations (ccc, pca, tsne) or prefix patterns (pl_ for plotting tools). While readable, the inconsistency between descriptive names and technical abbreviations creates a fragmented naming scheme.

    Tool Count2/5

    With 52 tools, this server is overloaded for a single-cell analysis domain. While comprehensive, the count far exceeds typical well-scoped servers (3-15 tools), making it difficult for agents to navigate and increasing cognitive load. A more modular approach would be more appropriate.

    Completeness5/5

    The tool set provides exceptionally complete coverage of single-cell analysis workflows, including data I/O (read_tool, write_tool), preprocessing (filtering, normalization), analysis (clustering, differential expression, cell-cell communication), and visualization. No obvious gaps exist for core single-cell analysis tasks.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Natural language-driven spatial transcriptomics analysis via MCP. Integrates 60+ methods for preprocessing, visualization, spatial statistics, cell communication, deconvolution, and trajectory analysis.
      20
      139 PyPI
      49
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables scRNA-Seq analysis through natural language, providing tools for data preprocessing, clustering, and biological visualization. It supports both predefined function execution and a flexible code mode powered by a Jupyter backend for automated single-cell transcriptomics workflows.
      16
      BSD 3-Clause
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides a natural language interface for single-cell RNA-Seq analysis using the decoupleR framework. It enables users to perform biological pathway inference, data clustering, and visualization through MCP-compatible AI clients.
      4
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language interaction for scRNA-Seq analysis including preprocessing, clustering, and visualization using the CellRank library. It allows users and agents to perform complex genomic data tasks through standard MCP clients and frameworks.
      13 PyPI
      2
      -