STAMP
Solid Tumor Associative Modeling in Pathology
What is STAMP?
STAMP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to solid tumor associative modeling in pathology
Solid Tumor Associative Modeling in Pathology
This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Solid Tumor Associative Modeling in Pathology
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx stampConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use STAMP
STAMP (Solid Tumor Associative Modeling in Pathology) is an end-to-end weakly-supervised deep-learning pipeline for identifying image-based biomarkers from histopathology whole-slide images without requiring pixel-level annotations. Published in Nature Protocols (2024), it covers the full workflow from slide preprocessing and feature extraction through model training, cross-validation, and explainability heatmaps. It integrates with the Model Context Protocol so AI agents can orchestrate STAMP pipelines, inspect results, and automate analysis tasks across local machines and HPC clusters.
Prerequisites
- Python 3.13 and the uv package manager (version 0.8.5 or later)
- A CUDA-capable GPU for training (CPU-only mode is supported but slow)
- OpenCV system libraries: libgl1-mesa-glx (Ubuntu 20.04) or libgl1 / libglx-mesa0 (Ubuntu 22.04+)
- Whole-slide image files in a supported format (e.g. .svs, .tiff)
- An MCP-compatible AI client (e.g. Claude Desktop) for agent-driven workflows
Install system dependencies
STAMP requires OpenCV system libraries before Python packages can be installed. Clear the Triton cache if you have previously installed conflicting versions.
# Ubuntu 22.04+
sudo apt install libgl1 libglx-mesa0
# Clear Triton cache if needed
rm -rf ~/.tritonInstall uv and clone the repository
uv is the recommended dependency manager. Clone the STAMP repo and let uv handle the Python environment.
pip install uv
git clone https://github.com/KatherLab/STAMP.git
cd STAMPInstall STAMP and its dependencies
Use uv to install the project in the current environment. Choose the CUDA variant for GPU support or cpu for CPU-only mode.
# GPU (CUDA)
uv pip install -e .[cuda]
# CPU only
uv pip install -e .[cpu]Initialize a STAMP project
Create a new configuration file for your analysis project. This generates a YAML config you can edit to point at your slide directory and labels.
stamp init --output-dir ./my_projectPreprocess and encode slides
Run tile extraction and feature encoding on your whole-slide images. STAMP supports 20+ foundation models including Virchow-v2, UNI-v2, TITAN, and COBRA.
stamp preprocess --config ./my_project/config.yaml
stamp encode_slides --config ./my_project/config.yamlTrain a model and generate heatmaps
After encoding, train a classification or survival model and produce explainability heatmaps for auditing.
stamp train --config ./my_project/config.yaml
stamp heatmaps --config ./my_project/config.yamlConfigure the MCP server for agent access
Add STAMP's MCP server to your AI client configuration to enable conversational pipeline orchestration.
{
"mcpServers": {
"stamp": {
"command": "uv",
"args": ["run", "stamp", "mcp-server"],
"cwd": "/path/to/STAMP"
}
}
}STAMP Examples
Client configuration
MCP config for Claude Desktop to access STAMP's agent interface.
{
"mcpServers": {
"stamp": {
"command": "uv",
"args": ["run", "stamp", "mcp-server"],
"cwd": "/path/to/STAMP"
}
}
}Prompts to try
Use natural language to orchestrate histopathology analysis pipelines via the MCP agent interface.
- "Preprocess all slides in /data/cohort1 and encode them with the UNI-v2 model"
- "Train a survival prediction model using the encoded features in ./my_project"
- "Generate explainability heatmaps for the top 5 most predictive tiles"
- "Run cross-validation and show me the AUROC scores"
- "Deploy the trained model on the test cohort and export predictions"Troubleshooting STAMP
ImportError for OpenCV or libGL at startup
Install the missing system library: sudo apt install libgl1 libglx-mesa0. On Ubuntu 20.04 use libgl1-mesa-glx instead.
CUDA out-of-memory errors during slide encoding
Reduce the batch size in your config.yaml (look for batch_size under the encode_slides section) and ensure no other GPU-heavy processes are running.
Triton compilation errors on first GPU run
Clear the Triton cache with rm -rf ~/.triton and re-run. This is a common issue when multiple PyTorch versions have been installed previously.
Frequently Asked Questions about STAMP
What is STAMP?
STAMP is a Model Context Protocol (MCP) server that solid tumor associative modeling in pathology It connects AI assistants to external tools and data sources through a standardized interface.
How do I install STAMP?
Follow the installation instructions on the STAMP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with STAMP?
STAMP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is STAMP free to use?
Yes, STAMP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
STAMP Alternatives — Similar Data Science & ML Servers
Looking for alternatives to STAMP? Here are other popular data science & ml servers you can use with Claude, Cursor, and VS Code.
Ultrarag
★ 5.6kA Low-Code MCP Framework for Building Complex and Innovative RAG Pipelines
RocketRide
★ 3.1k📇 🏠 - MCP server that exposes RocketRide AI pipelines as t
Aix Db
★ 2.1kAix-DB 基于 LangChain/LangGraph 框架,结合 MCP Skills 多智能体协作架构,实现自然语言到数据洞察的端到端转换。
NeMo Data Designer
★ 1.9k🎨 NeMo Data Designer: Generate high-quality synthetic data from scratch or from seed data.
PaperBanana
★ 1.7kOpen source implementation and extension of Google Research’s PaperBanana for automated academic figures, diagrams, and research visuals, expanded to new domains like slide generation.
MiniMax
★ 1.5kBridges MiniMax AI capabilities to the Model Context Protocol, enabling AI agents to perform image understanding, text-to-image generation, and speech synthesis. It provides a standardized interface for accessing MiniMax's core tools via JSON-RPC.
Browse More Data Science & ML MCP Servers
Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up STAMP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use STAMP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.