MCPStack-Tool-Builder
[Template] To Create MCPStack MCP Tools in ~5 command lines!
claude mcp add --transport stdio mcp-pipeline-mcpstack-tool-builder python mcpstack_tool.py \ --env PYTHONUNBUFFERED="1" \ --env MCPSTACK_TOOL_BUILDER_MODE="development"
How to use
This MCP server entry points to the MCPStack Tool Builder, a Python-based template to accelerate creating MCPStack tools. It provides a scaffolding workflow and a CLI (mcpstack_tool.py) to bootstrap, preview, apply, and validate tool configurations. The server enables you to generate a tool skeleton, customise your tool slug, class name, and environment prefixes, and then integrate the tool into an MCPStack pipeline. Use the CLI through Python (or via UV if you have UV installed) to access commands such as init, preview, apply, and validate. When running, you can invoke the server by executing the configured command and arguments in your environment, for example: python mcpstack_tool.py --help to see available options.
How to install
Prerequisites:
- Python 3.9+ and a working virtual environment
- Git
- Optional: UV (recommended for development workflows)
Step-by-step installation:
-
Clone the repository: git clone https://github.com/MCP-Pipeline/MCPStack-Tool-Builder.git cd MCPStack-Tool-Builder
-
Install dependencies (development mode): pip install -e .[dev]
-
(Optional) Set up development tooling (pre-commit): uv run pre-commit install
or legacy option
pre-commit install
-
Verify installation by listing available commands: python mcpstack_tool.py --help
-
Run the tool workflow via the MCPStack Tool Builder entry (as configured by the MCP config): python mcpstack_tool.py init # start interactive skeleton creation
Prerequisites recap: ensure Python 3.9+ is installed, you have Git access, and you have installed the project in editable/development mode to pick up changes while developing.
Additional notes
Tips and notes:
- This template focuses on quickly scaffolding an MCPStack tool with a CLI that supports init, preview, apply, and validate workflows. Use the init flow to populate tool_slug, class_name, and env_prefix.
- If you prefer running tools via UV, you can adapt the invocation to uv run mcpstack_tool.py or uv run <script> depending on your environment.
- Environment variables can influence tool generation (e.g., MCPSTACK_TOOL_BUILDER_MODE for debugging). Add or adjust env vars in the MCP config as needed.
- When integrating the generated tool into an MCPStack pipeline, remove unnecessary boilerplate to tailor the tool to your specific model/context and ensure you follow the MCPStack documentation for tool interfaces.
- Common issues: missing dependencies, mismatched Python versions, or placeholders not replaced during Apply. Use the Validate command to detect placeholders remaining after generation.
Related MCP Servers
code-mode
š Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.
mcp_server_filesystem
MCP File System Server: A secure Model Context Protocol server that provides file operations for AI assistants. Enables Claude and other assistants to safely read, write, and list files in a designated project directory with robust path validation and security controls.
mcp-manager
CLI tool for managing Model Context Protocol (MCP) servers in one place & using them across them different clients
skill-to
Convert AI Skills (Claude Skills format) to MCP server resources - Part of BioContextAI
MCPStack
Stack & Orchestrate MCP Tools ā The Scikit-Learn-Pipeline Way , For LLMs
Convert-Markdown-PDF
Markdown To PDF Conversion MCP