Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-batterworks-hatchdoor": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"HOST=<YOUR_VALUE>",
"-e",
"VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_CACHE_PATH=<YOUR_VALUE>",
"-e",
"HOST_STATE_PATH=<YOUR_VALUE>",
"-e",
"HOST_VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_MODELS_PATH=<YOUR_VALUE>",
"-e",
"HATCHDOOR_DEMO_MODE=<YOUR_VALUE>",
"-e",
"HATCHDOOR_ARCHIVE_PREFIX=<YOUR_VALUE>",
"-e",
"HATCHDOOR_WEB_BEARER_TOKEN=<YOUR_VALUE>",
"-e",
"HATCHDOOR_USAGE_REPORT_ENABLED=<YOUR_VALUE>",
"docker.io/battermanz/hatchdoor:2.8.1"
]
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-batterworks-hatchdoor": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"HOST=<YOUR_VALUE>",
"-e",
"VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_CACHE_PATH=<YOUR_VALUE>",
"-e",
"HOST_STATE_PATH=<YOUR_VALUE>",
"-e",
"HOST_VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_MODELS_PATH=<YOUR_VALUE>",
"-e",
"HATCHDOOR_DEMO_MODE=<YOUR_VALUE>",
"-e",
"HATCHDOOR_ARCHIVE_PREFIX=<YOUR_VALUE>",
"-e",
"HATCHDOOR_WEB_BEARER_TOKEN=<YOUR_VALUE>",
"-e",
"HATCHDOOR_USAGE_REPORT_ENABLED=<YOUR_VALUE>",
"docker.io/battermanz/hatchdoor:2.8.1"
]
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-batterworks-hatchdoor": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"HOST=<YOUR_VALUE>",
"-e",
"VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_CACHE_PATH=<YOUR_VALUE>",
"-e",
"HOST_STATE_PATH=<YOUR_VALUE>",
"-e",
"HOST_VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_MODELS_PATH=<YOUR_VALUE>",
"-e",
"HATCHDOOR_DEMO_MODE=<YOUR_VALUE>",
"-e",
"HATCHDOOR_ARCHIVE_PREFIX=<YOUR_VALUE>",
"-e",
"HATCHDOOR_WEB_BEARER_TOKEN=<YOUR_VALUE>",
"-e",
"HATCHDOOR_USAGE_REPORT_ENABLED=<YOUR_VALUE>",
"docker.io/battermanz/hatchdoor:2.8.1"
]
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-batterworks-hatchdoor": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"HOST=<YOUR_VALUE>",
"-e",
"VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_CACHE_PATH=<YOUR_VALUE>",
"-e",
"HOST_STATE_PATH=<YOUR_VALUE>",
"-e",
"HOST_VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_MODELS_PATH=<YOUR_VALUE>",
"-e",
"HATCHDOOR_DEMO_MODE=<YOUR_VALUE>",
"-e",
"HATCHDOOR_ARCHIVE_PREFIX=<YOUR_VALUE>",
"-e",
"HATCHDOOR_WEB_BEARER_TOKEN=<YOUR_VALUE>",
"-e",
"HATCHDOOR_USAGE_REPORT_ENABLED=<YOUR_VALUE>",
"docker.io/battermanz/hatchdoor:2.8.1"
]
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-batterworks-hatchdoor": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"HOST=<YOUR_VALUE>",
"-e",
"VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_CACHE_PATH=<YOUR_VALUE>",
"-e",
"HOST_STATE_PATH=<YOUR_VALUE>",
"-e",
"HOST_VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_MODELS_PATH=<YOUR_VALUE>",
"-e",
"HATCHDOOR_DEMO_MODE=<YOUR_VALUE>",
"-e",
"HATCHDOOR_ARCHIVE_PREFIX=<YOUR_VALUE>",
"-e",
"HATCHDOOR_WEB_BEARER_TOKEN=<YOUR_VALUE>",
"-e",
"HATCHDOOR_USAGE_REPORT_ENABLED=<YOUR_VALUE>",
"docker.io/battermanz/hatchdoor:2.8.1"
]
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-batterworks-hatchdoor": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"HOST=<YOUR_VALUE>",
"-e",
"VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_CACHE_PATH=<YOUR_VALUE>",
"-e",
"HOST_STATE_PATH=<YOUR_VALUE>",
"-e",
"HOST_VAULT_PATH=<YOUR_VALUE>",
"-e",
"HOST_MODELS_PATH=<YOUR_VALUE>",
"-e",
"HATCHDOOR_DEMO_MODE=<YOUR_VALUE>",
"-e",
"HATCHDOOR_ARCHIVE_PREFIX=<YOUR_VALUE>",
"-e",
"HATCHDOOR_WEB_BEARER_TOKEN=<YOUR_VALUE>",
"-e",
"HATCHDOOR_USAGE_REPORT_ENABLED=<YOUR_VALUE>",
"docker.io/battermanz/hatchdoor:2.8.1"
]
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| HOST | No | The host/interface Hatchdoor binds to. Local source runs default to 127.0.0.1:42824; a non-loopback bind (e.g. 0.0.0.0) requires HATCHDOOR_WEB_BEARER_TOKEN. |
| VAULT_PATH | No | The vault folder Hatchdoor can see inside the container. This is not the location of any particular vault: nothing in it becomes a Vault until you add one, and a fresh install starts with no Vaults. |
| HOST_CACHE_PATH | No | Optional host-side location for the generated SQLite cache, mounted at /data/cache. Defaults beside the Compose project. |
| HOST_STATE_PATH | No | Optional host-side location for the authoritative Vault registry, mounted at /data/state. Must be created and writable by the image's numeric nonroot user (65532) before the first managed-Vault start. |
| HOST_VAULT_PATH | No | Host path to your Markdown vault, mounted at /data/vault. The default mounts an empty vault folder beside the Compose file; uncomment and set it to use an existing vault. |
| HOST_MODELS_PATH | No | Optional host-side location for downloaded search models and the local Gemma terms receipt, mounted at /models. Defaults beside the Compose project. |
| HATCHDOOR_DEMO_MODE | No | Set to true to run a read-only, unauthenticated instance for public browsing. Has no rate limiting of its own, so put a rate-limiting reverse proxy in front before exposing it publicly. |
| HATCHDOOR_ARCHIVE_PREFIX | No | Prefix under which archive actions move notes. |
| HATCHDOOR_WEB_BEARER_TOKEN | No | Bearer token for the web UI and HTTP API. Hatchdoor refuses to start on HOST=0.0.0.0 or another non-loopback bind unless this is set; on refusal it prints a fresh, recoverable token and the .env line to add. |
| HATCHDOOR_USAGE_REPORT_ENABLED | No | Optional telemetry, off unless set to true. Sends the maintainer one small daily report of how the install is set up, and nothing about your notes. |