Live Disposable API Gate & MCP Server
Audits public GitHub repositories for exposed secrets through api.github.com, reading repository contents to detect and report leaked credentials.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
CryptGate
Live app: https://cryptgate.keyrook-labs.workers.dev
Demo video (2:13): https://youtu.be/PdQWOC0pXuM
Self-host in 1 command: npx cryptgate serve (npm package)
License: MIT
CryptGate is a temporary, path-locked HTTP proxy and Streamable HTTP MCP server (2025-03-26) for API keys. Instead of putting a raw Stripe, OpenAI, Anthropic, or GitHub key into .env for a coding agent, you store the key encrypted on the server (or locally on 127.0.0.1) and hand out a short-lived proxy URL (/g/<id>/*) and matching MCP endpoint (/g/<id>/mcp).
Incoming requests are checked against strict host, path, and HTTP method allowlists, optionally held open on the server until you click Approve or Deny, stripped of leaked key copies across 8 encodings on the way back, and logged into a signed ECDSA P-256 chain.

Quick try (no login required)
Click Run live walkthrough to create a 15-minute read-only proxy, trigger real blocked probes (
401forged operator token,403%252e%252epath traversal,403DELETE), approve a live paused MCP request (Y/S/N), inspect 6 redacted secret copies, and verify the ECDSA P-256 receipt.Or click Test with npm registry to proxy a real HTTPS request to
registry.npmjs.org.

Related MCP server: nice
Architecture
CryptGate brings six components together around one zero-dependency TypeScript core (@cryptgate/engine, built purely on standard Web APIs URL, TextEncoder, and crypto.subtle) so the same policy engine, 8-encoding redactor, RFC 6238 TOTP generator, and ECDSA P-256 audit chain run on Cloudflare Workers, Node 22, and the browser:
flowchart LR
Agent["Coding Agent / CLI / MCP Client (zero raw .env keys)"] -->|"/g/:id/* or /g/:id/mcp"| Edge["Cloudflare Worker + SQLite Durable Object"]
Edge --> Policy["@cryptgate/engine: SSRF, %252e%252e, Method, 3xx"]
Policy -->|"Blocked"| Deny["401 / 403 / 410 / 423 / 429 Fail-Closed Verdict"]
Policy -->|"Allowed / Hold 45s"| Approve["Human Approval Gate (Y / S / N + 256-bit operatorToken)"]
Crew["Kiro Crew App & Side Panel (/apps/cryptgate)"] <-->|"Live control & receipts"| Approve
Approve -->|"AES-256-GCM decrypt + inject"| Upstream["Target HTTPS API (OpenAI, Anthropic, Stripe, GitHub)"]
Upstream --> Scrub["8-Encoding Redactor + ECDSA P-256 Hash Chain"]
Scrub -->|"Scrubbed response + receipt"| Agentpackages/engine(@cryptgate/engine): zero-dependency security core covering host/path/method allowlists, iterative%252e%252epercent-decoding, SSRF blocking (RFC1918, loopback, cloud metadata) for upstreams and approval webhooks, hard3xxredirect blocking, sanitized static upstream headers, hot policy updates (PATCH /api/gates/:idfor pause/resume, path/method/TTL updates, and live key rotation), 8-encoding response scrubbing (raw, Base64, Base64URL, hex lower/upper, URL-encoded, JSON-escaped, HTTP Basic), RFC 6238 TOTP, ECDSA P-256 hash-chained audit logs, and an offline 14-rule.envscanner with SARIF v2.1.0 export.worker/src/index.ts&wrangler.jsonc: Cloudflare Worker with a SQLite-backed Durable Object (GateCoordinator) encrypting secrets and webhook URLs with AES-256-GCM at rest, holding live HTTP/MCP requests open up to 45s for approval, requiring a one-time 256-bitoperatorToken(X-CryptGate-Operator-Token) on all control-plane routes, purging expired ciphertext via DOalarm(), and keeping an isolate fallback during free-tier quota spikes.web(@cryptgate/web): Light/Dark browser console with 4 tabs (Proxies,Test cases,.env scanner,Kiro app), 1-click provider presets, copyable client configs (curl, Kiro/Cursormcp.json, Claude Code, TypeScript SDK, Python), keyboard approval shortcuts (Y/S/N), live policy editing, filterable Request Inspector, and offline receipt verification.app.json,agents/,skills/,crons/,ui/: Kiro Crew app package (gatekeeper-opsandsecret-exorcistagents,zero-secret-ritualskill, nightly audit cron, and embeddable Light/Dark React UI bundle atui/dist/index.mjs, mounted at/apps/cryptgateand live-previewable in theKiro apptab).bin/cryptgate.mjs: standalone CLI (create,watch,extend,rotate,pause,resume,revoke,serve,verify-audit,scan [--sanitize|--json|--sarif],mcp,proxy,wire).
Kiro workspace & Kiro Crew package
Path | Role |
|
|
|
|
|
|
|
|
| MCP server configuration for Kiro |
| Spec-compliant Kiro Crew app manifest (prebuilt ESM bundle, light/dark icons, |
Install in Kiro Crew
CryptGate ships a spec-compliant app.json, a prebuilt ESM UI bundle committed at ui/dist/index.mjs (ui.entry: "dist/index.mjs"), light/dark App Store artwork (assets/icon.png, assets/icon-dark.png, assets/hero.png, ui/icon.svg), and a root app-registry.json for direct installation in Kiro Crew:
Full page:
/apps/cryptgate(sidebar icon viaui/icon.svgandui/icon-inactive.svg)Chat side-panel tab:
CryptGate Approvals(contributes.panelTabs) so you can approve or deny live agent HTTP/MCP calls right beside your active chatAgents, skill, MCP, and cron:
gatekeeper-ops,secret-exorcist,skills/zero-secret-ritual,npx -y cryptgate mcp, andnightly-secret-audit(0 2 * * *)Instant browser preview (no Kiro Crew install needed): open the Kiro app tab at https://cryptgate.keyrook-labs.workers.dev
To install and use it in Kiro Crew:
Install the app from the GitHub repo:
kirocrew app install https://github.com/keyrook/cryptgateOr add the repo as a registry in Kiro Crew's
config.json(the rootapp-registry.jsonis its index):{ "registries": [{ "name": "keyrook", "repo": "https://github.com/keyrook/cryptgate", "branch": "main" }] }Start the local server the panel talks to:
npx cryptgate serveKiro Crew's dashboard only lets app pages connect to loopback addresses, so inside Crew the CryptGate page and side panel use
http://127.0.0.1:4173instead of the hosted Worker.cryptgate serve(1.0.2+) allows CORS for loopback origins only.
Local development
npm install
npm test # 54 Vitest tests (DO SQLite, AES-GCM, alarm purge, quota fallback, PATCH policy/TTL/rotate, webhooks, SARIF, 413 cap, MCP, SSRF, TOTP, ECDSA, CLI)
npm run typecheck # TypeScript check across all workspaces
npm run scan:self # Secret scan across the repo (0 leaks)
npm run build # Build engine, web app, and Kiro Crew UI
npm run dev # Local dev server at http://localhost:4173CLI usage
Create a temporary proxy straight from your terminal without pasting secrets into a browser (reads the key from an environment variable, prints the proxy URL, MCP config, and private manage link):
node bin/cryptgate.mjs create --preset openai --secret-env OPENAI_API_KEY --ttl 15
node bin/cryptgate.mjs create --preset echo
node bin/cryptgate.mjs watch <gateId> --token <operatorToken>
node bin/cryptgate.mjs extend <gateId> --minutes 15 --token <operatorToken>
node bin/cryptgate.mjs rotate <gateId> --secret-env OPENAI_API_KEY_NEW --token <operatorToken>
node bin/cryptgate.mjs pause <gateId> --token <operatorToken>
node bin/cryptgate.mjs resume <gateId> --token <operatorToken>
node bin/cryptgate.mjs revoke <gateId> --token <operatorToken>
node bin/cryptgate.mjs scan .env --sarif > cryptgate.sarifSelf-host the built server locally (no Cloudflare account needed):
node bin/cryptgate.mjs serve --port 4173Verify an exported receipt offline:
node bin/cryptgate.mjs verify-audit cryptgate-live-receipt.jsonRun local stdio MCP or loopback proxy demos:
npm run mcp:demo
npm run demo:liveOptional integration with Passhold Agents
CryptGate's hosted Worker, local CLI, Kiro Crew app, and all 54 tests run completely standalone. For local encrypted vaults on your own machine, generated configs optionally connect to @keyrook/passhold-cli from Keyrook:
npm install -g @keyrook/passhold-cli
npm run wire:kiro -- --apply
passhold mcp --http --port 8765 --expires 8hCredits
All source code in this repository was written from scratch for CryptGate during Kiroween 2026. The hosted demo and test suite use synthetic fixtures (cg_demo_*) with zero external dependencies required.
License
MIT. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Issue, rotate and revoke scoped API-key passes for 25+ providers — the agent never sees a real key
IAM for AI agents, providing secure credential management, individual agent identities, scoped credential access, approval controls and audit logs. Connect via MCP using OAuth or an agent token.
Guarded webhook inbox and SSRF-safe HTTP/gRPC action gateway for AI agents via remote MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA security-hardened MCP gateway that enables AI agents to call LLM APIs (Gemini, OpenAI, Claude, etc.) using ephemeral proxy tokens, eliminating exposure of real API keys.49 npm6Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.MIT
- AlicenseNot gradedqualityBmaintenanceEnables governed agent access to tools by routing and authorizing MCP requests through configurable policies, credential-bound upstream connections, human approval workflows, and an administration console.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to access remote and local MCP servers plus HTTP APIs through a single MCP endpoint, with per-consumer scoped tokens, tool-level permissions, and encrypted secret management.10AGPL 3.0