MCP Integration
Deploy and manage eggs directly from AI agents via Model Context Protocol.
Claude Code Plugin
The fastest way to get started. Run these two commands in Claude Code:
/plugin marketplace add EscapeVelocityOperations/hatch-cli
/plugin install hatch@hatchThen just ask Claude to deploy — no separate install or auth step required.
The first tool call that needs auth (e.g. deploy_app) prompts you to run the login tool, which opens a browser for sign-in or account creation. Alternatives: set HATCH_TOKEN, or run hatch login in a terminal.
Manual setup
If you're not using Claude Code, add the Hatch MCP server to your agent configuration manually:
{
"mcpServers": {
"hatch": {
"command": "hatch",
"args": ["mcp"]
}
}
}Available MCP tools
The Hatch MCP server exposes these tools for AI agents:
Platform
get_platform_info— Supported frameworks, artifact format, platform constraintshealth_check— Platform health checkget_started— Auth status, CLI version, and recommended next action (works unauthenticated)login— Authenticate: opens a browser for sign-in or account creationcheck_auth— Check authentication statusApp lifecycle
list_apps— List all deployed apps with status and URLscreate_app— Create a new appdeploy_app— Deploy a pre-built directory (creates app if needed)get_app_details— Detailed app info including deployment historyget_status— App running statusrestart_app— Restart an appdelete_app— Delete an appLogs
get_logs— Application logsget_build_logs— Build logsEnvironment variables
set_env— Set an environment variableget_env— List environment variables (pass show_secrets: true to unmask)set_env_var— Set a single env var (alias for set_env)list_env_vars— List env vars (alias for get_env, supports show_secrets)bulk_set_env— Set multiple env vars at oncedelete_env— Delete an environment variableDatabase & storage
add_database— Provision PostgreSQLget_database_url— Get DATABASE_URLadd_storage— S3-compatible bucketDomains
add_domain— Add custom domainlist_domains— List domainsremove_domain— Remove domainEnergy
check_energy— Account energy statusget_app_energy— Per-app energy and usageboost_app— Boost an app with extra energyCLI alternative
You can also deploy via the CLI using hatch deploy. See the Getting Started guide or the Ask Your Agent page for agent-optimized deployment instructions.
