Skip to main content

Natural language interface for scRNA-Seq analysis with Scanpy through MCP.

Project description

Scanpy-MCP

Natural language interface for scRNA-Seq analysis with Scanpy through MCP.

🪩 What can it do?

  • IO module like read and write scRNA-Seq data
  • 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

❓ 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 scanpy-mcp in most AI clients, plugins, or agent frameworks that support the MCP:

  • AI clients, like Cherry Studio
  • Plugins, like Cline
  • Agent frameworks, like Agno

📚 Documentation

scmcphub's complete documentation is available at https://docs.scmcphub.org

🎬 Demo

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

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

🏎️ Quickstart

Install

Install from PyPI

pip install scanpy-mcp

you can test it by running

scanpy-mcp run

run scnapy-mcp locally

Refer to the following configuration in your MCP client:

check path

$ which scanpy 
/home/test/bin/scanpy-mcp
"mcpServers": {
  "scanpy-mcp": {
    "command": "//home/test/bin/scanpy-mcp",
    "args": [
      "run"
    ]
  }
}

run scnapy-mcp remotely

Refer to the following configuration in your MCP client:

run it in your server

scanpy-mcp run --transport shttp --port 8000

Then configure your MCP client in local AI client, like this:


"mcpServers": {
  "scanpy-mcp": {
    "url": "http://localhost:8000/mcp"
  }
}

🤝 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!

Citing

If you use scanpy-mcp in for your research, please consider citing following work:

Wolf, F., Angerer, P. & Theis, F. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol 19, 15 (2018). https://doi.org/10.1186/s13059-017-1382-0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scanpy_mcp-0.5.0.tar.gz (7.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scanpy_mcp-0.5.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file scanpy_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: scanpy_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 7.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scanpy_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 f5dca1dcd6e3ce31fa0eed4e71a470e7392bc7e65777f695cb0b88e056fc1192
MD5 fa24a5b0fed6bed33d520575b1954a5f
BLAKE2b-256 92448475f4b028609f9b04db3cd8931371e2c863b70bb6c1bfb83ab151ffab40

See more details on using hashes here.

Provenance

The following attestation bundles were made for scanpy_mcp-0.5.0.tar.gz:

Publisher: publish.yml on scmcphub/scanpy-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scanpy_mcp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: scanpy_mcp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scanpy_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7962be94dffd94ad2312dffbfe4b46e17bac8448f6fd21d12dc94ac5d2bdb510
MD5 1751efdd6637ee2294556d8c92397b87
BLAKE2b-256 951d826f5e7bab5bfbc55d36f84b15e3b329c7443523b1796c9ace979296cce5

See more details on using hashes here.

Provenance

The following attestation bundles were made for scanpy_mcp-0.5.0-py3-none-any.whl:

Publisher: publish.yml on scmcphub/scanpy-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page