Hatch is the package manager for managing Model Context Protocol (MCP) servers with environment isolation, multi-type dependency resolution, and multi-host deployment. Deploy MCP servers to Claude Desktop, VS Code, Cursor, Kiro, Codex, and other platforms with automatic dependency management.
The canonical documentation is at docs/index.md and published at https://hatch.readthedocs.io/en/latest/.
- Environment Isolation — Create separate, isolated workspaces for different projects without conflicts
- Multi-Type Dependency Resolution — Automatically resolve and install system packages, Python packages, Docker containers, and Hatch packages
- Multi-Host Deployment — Configure MCP servers on multiple host platforms
- Package Validation — Ensure packages meet schema requirements before distribution
- Development-Focused — Optimized for rapid development and testing of MCP server ecosystems
Hatch supports deployment to the following MCP host platforms:
- Claude Desktop — Anthropic's desktop application for Claude with native MCP support
- Claude Code — Claude integration for VS Code with MCP capabilities
- VS Code — Visual Studio Code with the MCP extension for tool integration
- Cursor — AI-first code editor with built-in MCP server support
- Kiro — Kiro IDE with MCP support
- Codex — OpenAI Codex with MCP server configuration support
- LM Studio — Local LLM inference platform with MCP server integration
- Google Gemini CLI — Command-line interface for Google's Gemini model with MCP support
pip install hatch-xclamVerify installation:
hatch --versiongit clone https://github.com/CrackingShells/Hatch.git
cd Hatch
pip install -e .# Create an isolated environment
hatch env create my_project
# Switch to it
hatch env use my_project
# Create a package template
hatch create my_mcp_server --description "My MCP server"
# Validate the package
hatch validate ./my_mcp_serverPackage-First Deployment (Recommended) — Add a Hatch package and automatically configure it on Claude Desktop and Cursor:
hatch package add ./my_mcp_server --host claude-desktop,cursorDirect Configuration (Advanced) — Configure arbitrary MCP servers on your hosts:
# Remote server example: GitHub MCP Server with authentication
export GIT_PAT_TOKEN=your_github_personal_access_token
hatch mcp configure github-mcp --host gemini \
--httpUrl https://api.github.com/mcp \
--header Authorization="Bearer $GIT_PAT_TOKEN"
# Local server example: Context7 via npx
hatch mcp configure context7 --host vscode \
--command npx --args "-y @upstash/context7-mcp"- Full Documentation — Complete reference and guides
- Getting Started — Quick start for users
- CLI Reference — All commands and options
- Tutorials — Step-by-step guides from installation to package authoring
- MCP Host Configuration — Deploy to multiple platforms
- Developer Docs — Architecture, implementation guides, and contribution guidelines
- Troubleshooting — Common issues and solutions
We welcome contributions! See the How to Contribute guide for details.
- Fork and clone the repository
- Install dependencies:
pip install -e .andnpm install - Create a feature branch:
git checkout -b feat/your-feature - Make changes and add tests
- Use conventional commits:
npm run commitfor guided commits - Run tests:
wobble - Create a pull request
We use Conventional Commits for automated versioning. Use npm run commit for guided commit messages.
- Search existing GitHub Issues
- Read Troubleshooting for common problems
- Check Developer Onboarding for setup help
This project is licensed under the GNU Affero General Public License v3 — see LICENSE for details.
