Skip to main content
MCP server CX Codex

hatchbox — Claude Code MCP server: what it does, how to install

Connects your assistant to Hatchbox to manage Rails deployments and inspect or edit environment variables directly from chat.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env HATCHBOX_API_KEY=<HATCHBOX_API_KEY> --env HATCHBOX_ACCOUNT_ID=<HATCHBOX_ACCOUNT_ID> --env HATCHBOX_APP_ID=<HATCHBOX_APP_ID> --env HATCHBOX_DEPLOY_KEY=<HATCHBOX_DEPLOY_KEY> --env WEB_SERVER_IP_ADDRESS=<WEB_SERVER_IP_ADDRESS> --transport stdio hatchbox -- npx -y hatchbox-mcp-server
Open on GitHub

What hatchbox does

The server links AI clients to the Hatchbox platform via its HTTP API and server SSH connections. It triggers application deployments for the latest code or a specified Git commit SHA, checks build progress, and handles application environment keys.

Safety controls are turned on from the start. The default READONLY mode blocks any variable creation or deletion until you explicitly set READONLY=false in the configuration. Reading server variables relies on SSH rather than the API. Without WEB_SERVER_IP_ADDRESS and an authorized SSH key, variable inspection calls will fail.

When several Rails apps share a single server, supply HATCHBOX_APP_NAME. This filters the target Puma processes so the tool reads values from the correct application environment.

What it helps with

  • Trigger a Rails app deploy for a specific Git commit
  • Inspect active environment variables over SSH
  • Track deployment progress using the returned activity ID
  • Update or delete configuration keys in Hatchbox

Example prompts for the agent

  • Check the value of the RAILS_ENV environment variable
  • Deploy commit abc123def456 to Hatchbox and track the activity status
  • Delete the UNUSED_VAR variable from my Rails app settings

How to install hatchbox

Platform CLI

claude mcp add --env HATCHBOX_API_KEY=<HATCHBOX_API_KEY> --env HATCHBOX_ACCOUNT_ID=<HATCHBOX_ACCOUNT_ID> --env HATCHBOX_APP_ID=<HATCHBOX_APP_ID> --env HATCHBOX_DEPLOY_KEY=<HATCHBOX_DEPLOY_KEY> --env WEB_SERVER_IP_ADDRESS=<WEB_SERVER_IP_ADDRESS> --transport stdio hatchbox -- npx -y hatchbox-mcp-server

Replace <…> with your own values. 4 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about hatchbox

How to install hatchbox in Claude Code?

Run `claude mcp add hatchbox -e HATCHBOX_API_KEY=<HATCHBOX_API_KEY> -e HATCHBOX_ACCOUNT_ID=<HATCHBOX_ACCOUNT_ID> -e HATCHBOX_APP_ID=<HATCHBOX_APP_ID> -e HATCHBOX_DEPLOY_KEY=<HATCHBOX_DEPLOY_KEY> -- npx -y hatchbox-mcp-server`. Replace placeholders with your values from Hatchbox settings.

What does the hatchbox MCP server do?

It provides tools to trigger deployments, monitor deployment activities, and view or modify environment variables for Rails apps hosted on Hatchbox.

Why does reading environment variables require SSH?

Hatchbox inspects running process environments directly on the host rather than through its REST API. You must configure WEB_SERVER_IP_ADDRESS and supply an SSH key for those read tools to work.

Similar MCP servers

All MCP servers for DevOps and infrastructure →

From the same set28

onepassword MCP server that reads and writes 1Password vault data via CLI. The agent can pull credentials, create new items, or mint share links. CX Codex +1 ★ 81repo stars monarch-money Links Monarch Money personal finances to your coding agent. Reads accounts, updates budgets, and tracks cashflow through the service's GraphQL endpoint. CX Codex +1 ★ 81repo stars langfuse This MCP server lets an agent inspect Langfuse traces and observations. Use it to debug LLM pipelines and review cost or latency data. CX Codex +1 ★ 81repo stars image-diff Compares two images pixel by pixel, groups the differences into clusters and renders a heatmap. Handy for checking a UI screenshot against its design mock. CX Codex +1 ★ 81repo stars google-flights Search flights, compare fares across travel dates, and look up airport codes. Useful when an agent needs to find a route or compare departure days. CX Codex +1 ★ 81repo stars google-docs Lets your coding agent work with Google Docs: read, create, edit, delete and export files, authorized through OAuth2 or a Workspace service account. CX Codex +1 ★ 81repo stars google-calendar Connects Google Calendar to your coding assistant via Google Workspace domain delegation. Read events, book meetings, and inspect free or busy schedules. CX Codex +1 ★ 81repo stars good-eggs An MCP server that drives a Playwright browser into your Good Eggs account so the agent can search groceries, manage the cart and reorder past purchases. CX Codex +1 ★ 81repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor