
Hatchbox
com.pulsemcpPublished by pulsemcp.comv0.1.3Updated Oct 24, 2026
MCP server for Hatchbox Rails hosting — env var inspection, deploys, and process monitoring.
Overview
A local MCP server for Hatchbox Rails hosting that lets an assistant read, set and delete app environment variables and trigger or check deployments.
- What you can do
- Read environment variables from the Hatchbox server over SSH, listing all of them or fetching one by name (requires the server IP to be configured). Set or update environment variables, and delete one or more of them (requires read-only mode to be turned off). Trigger a deployment, optionally for a specific commit SHA, and check the status of a deployment by activity ID.
- When to use it
- Useful when you host Rails applications on Hatchbox and want to inspect or change environment variables and run deployments from a chat assistant instead of the dashboard. Best suited to development or staging work, or to read-only inspection of production.
- Requirements
- Runs locally via npx, so Node.js is needed. Requires HATCHBOX_API_KEY, HATCHBOX_ACCOUNT_ID, HATCHBOX_APP_ID and HATCHBOX_DEPLOY_KEY. Reading environment variables additionally needs WEB_SERVER_IP_ADDRESS and SSH access to the server with a private key at SSH_KEY_PATH; HATCHBOX_APP_NAME filters processes when several apps share a server. Write operations need READONLY set to false; deployments are on by default and can be disabled with ALLOW_DEPLOYS.
Installation
In SourceWeft
- Open Hatchbox in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Hatchbox MCP Server
An MCP server for Hatchbox - Rails hosting made simple for small businesses.
Overview
This MCP server provides tools to interact with Hatchbox's API, allowing you to manage environment variables and deployments for your Rails applications directly from your AI assistant.
Key Features
- Environment Variable Management:
- View all environment variables (via SSH)
- Get specific environment variables (via SSH)
- Set and update environment variables
- Delete environment variables
- Deployment Control: Trigger deployments and check their status
- Security Features:
- Read-only mode by default
- Configurable deployment permissions
- SSH-based secure access for reading env vars
- Secure Authentication: Uses API keys and SSH keys for secure access
Installation
Configuration
Environment Variables
Required Variables
HATCHBOX_API_KEY: Your Hatchbox API key for authenticationHATCHBOX_ACCOUNT_ID: Your Hatchbox account IDHATCHBOX_APP_ID: Your Hatchbox application IDHATCHBOX_DEPLOY_KEY: Your deployment webhook key
Optional Variables for SSH Access
WEB_SERVER_IP_ADDRESS: IP address of your Hatchbox server (enables getEnvVars and getEnvVar tools)SSH_KEY_PATH: Path to SSH private key (defaults to ~/.ssh/id_rsa)HATCHBOX_APP_NAME: App name to filter processes if multiple apps on server (see example below)
Security Configuration
READONLY: Set tofalseto enable write operations (default:true)ALLOW_DEPLOYS: Set tofalseto disable deployment operations (default:true)
You can find these values in your Hatchbox dashboard:
- API key: Account settings
- Account ID: Visible in the URL when viewing your account
- App ID: Visible in the URL when viewing your application
- Deploy key: Application deployment settings
- Server IP: Your server's public IP address (for SSH access)
SSH Setup (Optional - for reading env vars)
To enable the getEnvVars and getEnvVar tools, you need SSH access to your Hatchbox server:
-
Add your SSH public key to the deploy user on your Hatchbox server:
-
Test SSH access:
-
Configure the MCP server with your server's IP address (see configuration below)
Multiple Apps on Same Server
If you have multiple Rails applications running on the same Hatchbox server, you'll need to specify the HATCHBOX_APP_NAME to identify which app's environment variables to read:
The app name should match the name shown in your Hatchbox dashboard. This filters the process list to find the correct puma process for your specific application.
Claude Desktop Configuration
Add the server to your Claude Desktop configuration file:
macOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%\Claude\claude_desktop_config.json
Tools
Environment Variables
getEnvVars
Get all environment variables from the Hatchbox server via SSH.
Requirements: WEB_SERVER_IP_ADDRESS must be configured.
Parameters: None
Example:
getEnvVar
Get a specific environment variable from the Hatchbox server via SSH.
Requirements: WEB_SERVER_IP_ADDRESS must be configured.
Parameters:
name(string, required): The name of the environment variable to retrieve
Example:
setEnvVar
Set or update an environment variable.
Requirements: READONLY must be set to false.
Parameters:
name(string, required): The environment variable namevalue(string, required): The environment variable value
Example:
deleteEnvVars
Delete one or more environment variables.
Requirements: READONLY must be set to false.
Parameters:
names(array of strings, required): Array of environment variable names to delete
Example:
Deployments
triggerDeploy
Trigger a new deployment for your application.
Requirements: ALLOW_DEPLOYS must be set to true (default).
Parameters:
sha(string, optional): Specific commit SHA to deploy (latest if not provided)
Example:
checkDeploy
Check the status of a deployment.
Requirements: ALLOW_DEPLOYS must be set to true (default).
Parameters:
activityId(string, required): The deployment activity ID returned from triggerDeploy
Example:
Usage Examples
Here are some example queries you can use with Claude:
Reading Environment Variables (requires WEB_SERVER_IP_ADDRESS)
-
View all environment variables: "Show me all environment variables"
-
Get a specific variable: "What is the value of RAILS_ENV?"
Writing Environment Variables (requires READONLY=false)
-
Set an environment variable: "Set the RAILS_ENV to production"
-
Delete environment variables: "Delete the OLD_VAR and UNUSED_VAR environment variables"
Deployments (requires ALLOW_DEPLOYS=true)
-
Deploy the latest code: "Deploy the latest commit to Hatchbox"
-
Deploy a specific commit: "Deploy commit abc123def456 to Hatchbox"
-
Check deployment status: "Check the status of deployment activity 12345"
Security Notes
API Security
- Store your API keys securely and never commit them to version control
- The server only has access to the Hatchbox accounts and applications that your API key can access
SSH Security
- SSH access exposes ALL environment variables including secrets
- Ensure your SSH key is properly secured
- Consider using a dedicated read-only SSH key if possible
- Only configure WEB_SERVER_IP_ADDRESS if you trust the MCP client with your secrets
Permission Modes
- Read-only mode (default): Prevents accidental modifications to your production environment
- Deployment control: Can be disabled separately from write operations
- Configure permissions based on your security requirements:
- Development:
READONLY=false,ALLOW_DEPLOYS=true - Staging:
READONLY=false,ALLOW_DEPLOYS=true - Production:
READONLY=true,ALLOW_DEPLOYS=false(recommended)
- Development:
- All API communications are encrypted using HTTPS
Development
This server is part of the PulseMCP organization's collection of MCP servers. For development instructions and contribution guidelines, see the main repository.
License
This project is licensed under the MIT License.
Source: experimental/hatchbox/README.md at commit 0ed34de
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts