Skip to main content
Glama

顺势疗法

使用自然语言进行 scRNA-Seq 分析的 MCP 服务器!

🪩 它能做什么?

  • IO 模块,例如使用自然语言读取和写入 scRNA-Seq 数据

  • 预处理模块,如过滤、质量控制、标准化、缩放、高度可变基因、PCA、邻居等。

  • 工具模块,如聚类、差异表达等。

  • 绘图模块,例如小提琴图、热图、点图

  • 细胞间通讯分析

Related MCP server: SCMCP

❓ 这是给谁的?

  • 任何想要进行 scRNA-Seq 分析自然语言的人!

  • 想要为其应用程序调用 scanpy 函数的代理开发人员

🌐 在哪里使用它?

您可以在大多数支持 MCP 的 AI 客户端、插件或代理框架中使用 scmcp:

  • AI客户端,例如Cherry Studio

  • 插件,例如 Cline

  • 代理框架,例如 Agno

🎬 演示

演示 AI 客户端 Cherry Studio 中使用基于 scmcp 的自然语言进行 scRNA-Seq 细胞聚类分析

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

🏎️ 快速入门

安装

从 PyPI 安装

pip install scmcp

你可以通过运行来测试它

scmcp run

在本地运行 scnapy-server

在您的 MCP 客户端中参考以下配置:

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

远程运行 scnapy-server

在您的 MCP 客户端中参考以下配置:

在您的服务器上运行它

scmcp run --transport sse --port 8000

然后配置您的 MCP 客户端,如下所示:

http://localhost:8000/sse

🤝 贡献

如有任何疑问,欢迎提交 issue,或联系我 ( hsh-me@outlook.com )。也欢迎您为代码做出贡献!

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
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • 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.
      2
      -