STAMP

v1.0.0Data Science & MLstable

Solid Tumor Associative Modeling in Pathology

agentsbioimage-analysisbioinformaticsdeep-learningdigital-pathology
Share:
119
Stars
0
Downloads
0
Weekly
0/5

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

Perform AI-assisted histopathology and digital pathology analysis.
Analyze biomedical images using deep learning and AI techniques.
Generate visualization heatmaps for solid tumor analysis and research.
KatherLab

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 29, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx stamp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 ~/.triton
2

Install 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 STAMP
3

Install 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]
4

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_project
5

Preprocess 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.yaml
6

Train 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.yaml
7

Configure 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.

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.

Quick Config Preview

{ "mcpServers": { "stamp": { "command": "npx", "args": ["-y", "stamp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides