
Hatchbox
com.pulsemcp由 pulsemcp.com 发布v0.1.3更新于 Oct 24, 2026
MCP server for Hatchbox Rails hosting — env var inspection, deploys, and process monitoring.
概览
面向 Hatchbox Rails 托管的本地 MCP 服务器,让助手读取、设置和删除应用环境变量,并触发或查看部署。
- 可以做什么
- 通过 SSH 读取 Hatchbox 服务器上的环境变量,可列出全部或按名称获取单个变量(需配置服务器 IP)。设置或更新环境变量,以及删除一个或多个环境变量(需关闭只读模式)。触发部署,可指定提交 SHA,并按活动 ID 查询部署状态。
- 适用场景
- 适用于在 Hatchbox 上托管 Rails 应用、希望通过对话助手而非控制面板查看或修改环境变量并执行部署的场景。更适合开发或预发布环境,或对生产环境做只读检查。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js。需要 HATCHBOX_API_KEY、HATCHBOX_ACCOUNT_ID、HATCHBOX_APP_ID 和 HATCHBOX_DEPLOY_KEY。读取环境变量还需配置 WEB_SERVER_IP_ADDRESS,并用 SSH_KEY_PATH 指定的私钥通过 SSH 访问服务器;多个应用共用服务器时用 HATCHBOX_APP_NAME 过滤进程。写操作需将 READONLY 设为 false;部署默认开启,可用 ALLOW_DEPLOYS 关闭。
安装
在 SourceWeft 中
- 打开 控制台中的 Hatchbox,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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.
来源:experimental/hatchbox/README.md,提交 0ed34de
工具
0版本历史
1- v0.1.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分