stackkit-mcp program is a local MCP server named stackkit. Your AI agent
starts it on the computer that holds your homelab workspace. By default the
agent can read: it can look up the docs and check status, verification, drift,
logs and backups. It can change something only after you turn on a write gate,
and then you still approve what it does.
Before you start
- A homelab you installed with the StackKits installer, for example from
Install in 10 minutes. The workspace
folder is
~/my-homelabin this guide. stackkit-mcpnext tostackkiton yourPATH. The installer places both there. If you only need the tools, install them with the installer from Choose a kit:
stackkit-mcp sits next to a stackkit of the same release. Update both
together.
To print a ready-to-paste config for your host from the installed release:
claude or cursor instead of codex for those hosts.
Claude Code
Add the server for the current project and check it:/mcp command shows the server status. The same entry
in a project .mcp.json file:
Codex
Add this block to~/.codex/config.toml, or to .codex/config.toml in a
trusted project. The cwd key sets the workspace the tools act on:
codex mcp list, or open /mcp in the Codex terminal interface.
Source: Codex MCP documentation.
Cursor
Add this to.cursor/mcp.json in the project, or to ~/.cursor/mcp.json for
every project:
Name the workspace
The tools act on the workspace in the folder where the server starts. Only Codex lets you set that folder in its config. For Claude Code and Cursor, name the folder in your first prompt. The lifecycle tools take abase_dir input for it.
ChatGPT
ChatGPT adds a custom MCP server through a public HTTPS endpoint or through OpenAI’s Secure MCP Tunnel, not by launching a local program. Sostackkit-mcp
cannot be added to ChatGPT directly the way it is added to the three hosts
above. OpenAI documents that the tunnel client can reach a local stdio server. This guide does not cover either path and has not tested
stackkit-mcp with them. Do not expose a StackKits MCP endpoint directly to the
public internet. See the OpenAI pages
Connect and test your plugin
and Secure MCP Tunnel.
Try it
Start your agent and send this prompt:Let the agent change something
Without any setting, the agent cannot change your homelab. You have two ways to allow changes. Prefer the second. Write gate for everything. SetSTACKKIT_MCP_ALLOW_WRITE=true in the
environment of the server, for example with the Claude Code option --env, the
Codex [mcp_servers.stackkit.env] table or the Cursor env object. The
changing tools then appear. Each call must still name the exact operation and
carry an explicit owner approval, so tell the agent to ask you before it makes
that call. The server cannot tell your approval from the agent’s own, which is
why the second way is safer.
One credential per agent, with your approval for every change. Create a
credential for this agent from the workspace, then start the server with it:
STACKKIT_MCP_AGENT_CREDENTIAL_FILE to that file and add
--agent-workspace with the workspace folder to the server arguments. In
Codex:
STACKKIT_MCP_ALLOW_WRITE is ignored. Every changing call
is refused with an approval request until you approve that exact call in your
own terminal:
