
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 分