MCPStack
Stack & Orchestrate MCP Tools — The Scikit-Learn-Pipeline Way , For LLMs
claude mcp add --transport stdio mcp-pipeline-mcpstack uvx mcpstack \ --env DESCRIPTION="Python package name for the MCPStack server"
How to use
MCPStack is a Python-based orchestrator that lets you build and run pipelines of MCP tools in a scikit-learn-like workflow for LLMs. You can stack multiple MCP tools into a single pipeline, expose only the tools you want the LLM to access, and execute the pipeline in convenient environments such as Claude Desktop or through programmatic Python APIs. The CLI (mcpstack) provides utilities to list available tools, inspect presets (preconfigured pipelines), create new pipelines, configure individual tools, and run pipelines with a chosen configuration. Tools are auto-registered via entry points, so once MCPStack is installed, you can add desired tools to your environment and MCPStack will recognize them automatically. The workflow supports both interactive usage and programmatic composition, enabling reproducible experiments with presets or custom tool chains.
How to install
Prerequisites:
- Python 3.9 or newer
- Either uv (recommended) or pip for installation
Installation options:
- Using UV (recommended):
uv add mcpstack
- Using pip:
pip install mcpstack
Post-installation steps (optional but recommended):
- Install pre-commit hooks to ensure code quality:
- UV:
uv run pre-commit install - Pip:
pre-commit install
- UV:
Notes:
- MCPStack is the orchestrator that discovers MCP tools via
project.entry-points.["mcpstack.tools"]and auto-registers them when installed in your environment. - You can install additional MCP tools into the same environment to expand the available tooling in your pipelines.
Additional notes
Tips and tips-to-remember:
- The CLI workflow revolves around
mcpstackexecuted viauv run mcpstack(or globally installedmcpstack). - Use
tools <tool_name> configureto customize a tool before adding it to a pipeline, and thenpipelineto assemble or run it. - Presets offer ready-to-run pipelines to reproduce experiments quickly.
- If you encounter environment issues, ensure your Python environment has access to your MCP tools' dependencies and that entry points are correctly registered.
- For reproducible results, save pipelines with the programmatic API or via CLI, then re-run with the same configuration.
- MCPStack emphasizes security by letting you expose only the tools you include in your pipeline; this constrains the LLM's tool access accordingly.
Related MCP Servers
fastmcp
🚀 The fast, Pythonic way to build MCP servers and clients.
mcp-agent
Build effective agents using Model Context Protocol and simple workflow patterns
protocols-io
An MCP server that enables MCP clients like Claude Desktop to interact with data from protocols.io.
litemcp
A minimal, lightweight client designed to simplify SDK adoption into MCP
MCP-Mathematics
A comprehensive Model Context Protocol (MCP) server that turns any AI assistant into a powerful mathematical computation engine.
customgpt
Open source MCP server for CustomGPT.ai