offstack mcp exposes the Offstack local AWS simulator to AI coding agents over the Model Context Protocol. The agent can start a simulator on ephemeral ports, inspect it, snapshot and reset its state, diff the cost impact of a change, and export audit findings -- all through MCP tool calls instead of hand-run shell commands.
Protocol versions supported: 2025-03-26 and 2024-11-05 (JSON-RPC 2.0).
Quickstart
Start the server by hand to check it works:
# stdio (what an editor spawns for you)
offstack mcp --transport stdio
# or a long-lived HTTP server
offstack mcp --transport http --port 8765
# POST http://127.0.0.1:8765/mcp JSON-RPC
# GET http://127.0.0.1:8765/healthz liveness
From a source checkout, run python start.py mcp (or python -m mcp_server.cli).
Tools
| Tool | What it does |
|---|---|
offstack_start_sandbox | Launch a managed simulator on ephemeral ports; waits for /healthz. |
offstack_stop_sandbox | Stop one sandbox (or all when sandbox_id is empty). |
offstack_snapshot | save / restore / list / delete snapshots, or reset. |
offstack_inspect | GET a read-only /_offstack/api/*, /healthz, /readyz path. |
offstack_cost_diff | Diff two cost states; returns JSON + Markdown, applies budget gates. |
offstack_run_audit | Export events as SARIF or Markdown. |
offstack_import_aws | Capture real AWS state and replay it into a sandbox. |
offstack_simulate | Run compliance scenarios (when compliance.simulator is present). |
Resources: offstack://docs/ai-manual (the LLM-optimised service reference) and offstack://profiles (named service profiles + dependency closure).
Editor setup
Claude Code
Add the server with the CLI, or drop the snippet into the project's MCP config:
claude mcp add offstack -- offstack mcp --transport stdio
The equivalent JSON is in mcp.json:
{
"mcpServers": {
"offstack": {
"command": "offstack",
"args": ["mcp", "--transport", "stdio"]
}
}
}
Cursor
~/.cursor/mcp.json (global) or .cursor/mcp.json (project) -- same mcpServers block as above.
Windsurf
~/.codeium/windsurf/mcp_config.json -- same mcpServers block.
Codex
Add to ~/.codex/config.toml:
[mcp_servers.offstack]
command = "offstack"
args = ["mcp", "--transport", "stdio"]
Antigravity
In the MCP server settings, add a stdio server whose command is offstack with arguments mcp --transport stdio.
A Claude Code plugin
claude-plugin/plugin.json is a plugin manifest that bundles the same server; point your plugin loader at that directory to install it as a plugin rather than a bare server entry.
Notes
- A sandbox always binds ephemeral ports, so it never collides with a
simulator you already have running.
- Every managed sandbox is stopped when the MCP server exits, and its output
is written to <tmp>/offstack-mcp/sandbox-<id>.log (or under --s3-data-dir when you pass one).
offstack_stop_sandboxwith no id stops all sandboxes this server started.
Want a live walkthrough or evaluation setup for Offstack? Message George Vranjesevic or reach out at george@developmentsnapshot.com.