MCP server for scvi-tools - deep probabilistic analysis of single-cell omics data
Project description
scvi-tools-mcp
An MCP (Model Context Protocol) server that gives LLMs structured access to scvi-tools knowledge: model documentation, tutorials, API reference, workflow templates, and community FAQ.
No runtime model execution — pure knowledge layer. Works with Claude Desktop, Cursor, and any MCP-compatible client.
Quick Start
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"scvi-tools": {
"command": "uvx",
"args": ["scvi-tools-mcp"]
}
}
}
Cursor / other clients
{ "command": "uvx", "args": ["scvi-tools-mcp"] }
Local install
pip install scvi-tools-mcp
scvi-tools-mcp
Tools
| Tool | Description |
|---|---|
recommend_model |
Rank models by task and data type — start here |
get_model_overview |
Full model description, use cases, inputs, outputs |
get_model_parameters |
Key __init__ and train() parameters with defaults |
get_setup_anndata_guide |
Exact setup_anndata() call + required obs/var fields |
validate_data_requirements |
Pass/fail checklist for your AnnData against a model |
list_tutorials |
Browse tutorials by category |
get_tutorial |
Paginated tutorial content (code + prose, no outputs) |
search_tutorials |
Keyword search across all tutorials |
get_api_reference |
Signature + docstring for any public class or function |
search_api |
Search public symbols by keyword |
get_workflow_template |
Step-by-step code template for an analysis task |
get_downstream_guide |
Guide for DE, clustering, embedding, label transfer |
get_faq |
Curated FAQ from docs, GitHub issues, and Discourse |
search_knowledge |
Cross-search all knowledge (catch-all) |
Knowledge Sources
All knowledge is baked into the package as Markdown files at build time. No network calls at tool-call time.
| Directory | Content |
|---|---|
knowledge/models/ |
One .md per model — description, use case, parameters |
knowledge/tutorials/ |
60+ tutorials converted from .ipynb (code + prose only) |
knowledge/api/ |
Extracted class signatures and docstrings |
knowledge/user_guide/ |
Narrative documentation from the scvi-tools user guide |
knowledge/faq/github_issues.md |
Top GitHub issues snapshot |
knowledge/faq/discourse_threads.md |
Discourse forum thread snapshot |
Knowledge Refresh (CI)
Three monthly GitHub Actions jobs keep knowledge current — each opens a PR if a diff is found:
| Workflow | Schedule | What it does |
|---|---|---|
refresh_knowledge.yaml |
1st of month | Re-scrapes GitHub issues + Discourse threads |
sync_tutorials.yaml |
1st of month | Fetches new .ipynb from scvi-tools, converts to .md |
sync_model_knowledge.yaml |
1st of month | Checks CHANGELOG, regenerates model docs for changed models |
All workflows also support workflow_dispatch for manual runs.
Development
git clone https://github.com/ori-kron-wis/scvi-tools-mcp
cd scvi-tools-mcp
pip install -e ".[dev]"
pytest
Rebuild knowledge manually
# Convert tutorials from a local scvi-tools checkout
python scripts/convert_notebooks.py /path/to/scvi-tools/docs/tutorials/notebooks \
src/scvi_tools_mcp/knowledge/tutorials
# Extract API docs (requires scvi-tools installed)
pip install -e ".[scvi]"
python scripts/extract_api_docs.py
# Re-scrape external knowledge
python scripts/scrape_external.py
Adding a new model
- Run
scripts/extract_api_docs.pyafter updating scvi-tools. - Add the model name to
MODEL_NAMESinsrc/scvi_tools_mcp/tools/_constants.py. - Add requirements to
MODEL_REQUIREMENTSin_data_prep.pyif needed.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scvi_tools_mcp-0.1.0.tar.gz.
File metadata
- Download URL: scvi_tools_mcp-0.1.0.tar.gz
- Upload date:
- Size: 422.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7660d5a17d4d7909cb7ddb16d4e1a752525abdada574595e85c206f3767503d
|
|
| MD5 |
ad5018ad9f5f39d4c95c50247b5abcee
|
|
| BLAKE2b-256 |
25c15f923f5deb5829a14698bf6c1bf97f187d2f553ea8471ea5be09965b48ff
|
Provenance
The following attestation bundles were made for scvi_tools_mcp-0.1.0.tar.gz:
Publisher:
release.yaml on YosefLab/scvi-tools-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scvi_tools_mcp-0.1.0.tar.gz -
Subject digest:
e7660d5a17d4d7909cb7ddb16d4e1a752525abdada574595e85c206f3767503d - Sigstore transparency entry: 1780652069
- Sigstore integration time:
-
Permalink:
YosefLab/scvi-tools-mcp@e35aaa8048e5ddf43b4dc2b26424935a60ef75f9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/YosefLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e35aaa8048e5ddf43b4dc2b26424935a60ef75f9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file scvi_tools_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scvi_tools_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 588.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe03b08ddda7ea0b171a7fa0f9861b1ee0ffb3c321c1e14afdc644dfb4cbc9f4
|
|
| MD5 |
f908a1cad7a75f2a2c691e4b76c53497
|
|
| BLAKE2b-256 |
0c1ff304d62fd134de69be2a16b60b66b2a35140ad107bc1125cf6c5bbeb4233
|
Provenance
The following attestation bundles were made for scvi_tools_mcp-0.1.0-py3-none-any.whl:
Publisher:
release.yaml on YosefLab/scvi-tools-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scvi_tools_mcp-0.1.0-py3-none-any.whl -
Subject digest:
fe03b08ddda7ea0b171a7fa0f9861b1ee0ffb3c321c1e14afdc644dfb4cbc9f4 - Sigstore transparency entry: 1780653114
- Sigstore integration time:
-
Permalink:
YosefLab/scvi-tools-mcp@e35aaa8048e5ddf43b4dc2b26424935a60ef75f9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/YosefLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e35aaa8048e5ddf43b4dc2b26424935a60ef75f9 -
Trigger Event:
push
-
Statement type: