Quickstart
Run Godelgate locally with the built-in demo server and connect your first MCP client.
This guide runs Godelgate on your machine with a built-in demo server, connects Claude Code to it, and shows the gate blocking a data leak.
#Requirements
- Node.js 22.13 or newer
- An MCP client that supports Streamable HTTP, such as Claude Code, Cursor, VS Code or Codex
#1. Install and build
npm install
npm run build#2. Start the gate
The sample godelgate.yaml connects a built-in demo server named acme with fake CRM, web and email tools, and defines one user, alice, whose key comes from ALICE_KEY.
export ALICE_KEY=$(openssl rand -hex 16)
export GODELGATE_ADMIN_TOKEN=$(openssl rand -hex 16)
npm startYou should see:
[godelgate] connected acme: 4 tools
[godelgate] listening on :8080 (MCP endpoint /mcp, dashboard /app)If you don't set
GODELGATE_ADMIN_TOKEN, Godelgate generates a random admin token for that run and prints it at startup.
#3. Open the dashboard
Go to http://localhost:8080/app and sign in with your admin token. The Tools tab lists the four demo tools as acme__read_customers, acme__fetch_url, acme__send_email and acme__get_time, each pinned.
#4. Connect Claude Code
claude mcp add --transport http godelgate http://localhost:8080/mcp \
--header "Authorization: Bearer $ALICE_KEY"Other clients are covered in Connect your clients.
#5. Watch it work
Continue with See it work to trigger the lethal-trifecta block and an approval, and watch both appear live in the dashboard.
#Next steps
- Connect your own servers: MCP servers
- Label tools for containment: Lethal-trifecta containment
- Write rules: Policy rules
- Put it on a server: Deployment