STAMP
by KatherLab
Overview
Enable LLM agents to orchestrate and interact with STAMP's computational pathology tools for whole-slide image analysis, biomarker prediction, model training, and inference.
Installation
python server.pyEnvironment Variables
- MAX_JOBS
- XDG_CACHE_HOME
- PYTORCH_CUDA_ALLOC_CONF
Security Notes
The server uses `subprocess.run()` to execute `stamp` CLI commands, with the `mode` and `config` parameters directly derived from user input (LLM agent calls). This creates a critical command injection vulnerability where a malicious actor or agent could craft inputs to execute arbitrary system commands, potentially leading to data exfiltration, system compromise, or denial of service. While `_resolve_path` attempts to restrict file system access for `read_file` and `list_files`, it does not mitigate the risk from `subprocess.run` in `_run_stamp` which can bypass file system restrictions entirely. The `stamp` CLI itself may have further vulnerabilities not audited here.
Similar Servers
consult7
Consult7 is an MCP server enabling AI agents to analyze extensive file collections (like codebases) using large context window models via OpenRouter, exceeding typical agent context limits.
mineru-tianshu
An enterprise-grade AI data preprocessing platform that converts unstructured data (documents, images, audio, video, bioinformatics formats) into AI-ready structured Markdown and JSON formats.
imgenx
AI image and video generation and processing, functioning as a command-line tool or MCP server.
VibeGraphics
Generates theme-driven, AI-powered infographics and micro-animations from GitHub repository content (README, source code).