MCP Integration
Deploy and manage apps directly from AI agents via Model Context Protocol.
Setup
Add the Hatch MCP server to your agent configuration:
{
"mcpServers": {
"hatch": {
"command": "npx",
"args": ["@hatch/mcp-server"]
}
}
}Available MCP tools
The Hatch MCP server exposes these tools for AI agents:
deploy_appTakes a directory, returns a live URL.
add_databaseProvisions PostgreSQL, injects credentials.
add_storageS3-compatible bucket.
view_logsReturns recent application logs.
check_statusIs it running? Any errors?
set_secretSet environment variables.
connect_domainCustom domain setup.
get_database_urlFor when you need to write DB code.
CLI alternative
You can also deploy via the CLI using git push hatch main. See the Getting Started guide or the Tell Your Agent page for agent-optimized deployment instructions.
