Skip to main content

Connect your AI

Connect is the fastest way to give an external AI agent its own mailbox. From the console you pick an AI, choose (or create) an inbox, and Gorkmail provisions an inbox-scoped API key — it can only read, send, and thread mail for that one address. You copy one config block and your agent is live. Head to Connect in the console, then pick the destination that matches your agent.

Runs 24/7 vs on-demand

Hosted chat products cannot receive webhooks into themselves, so their model is “check the inbox when asked.” Coding agents that run an MCP server locally get real push behavior.

Claude Code

Connect generates a single command. Run it in your project terminal:
Then ask: “check my inbox and summarize new mail.” The agent can send, reply, read threads, and read OTP / magic-link codes.

Cursor

Create .cursor/mcp.json at your project root (or merge into the existing one):
.cursor/mcp.json
Refresh MCP servers in Cursor (Settings → Features → MCP) and the gork server appears.

ChatGPT (custom GPT)

  1. Create a GPT → Configure.
  2. Paste the generated instruction block (it includes your inbox address and API key) into Instructions.
  3. Under Actions, add an API with the same key and import the OpenAPI spec from https://api.gork.email/openapi.json.
ChatGPT acts on your inbox when prompted — it does not receive pushes.

Any other agent

Connect outputs an env block:
.env
Point your agent at https://api.gork.email with Bearer auth. MCP-native agents (Claude Code, Cursor, OpenCode, Zed, Warp…) can instead run npx -y @gork/mcp-server --api-key=… directly.

Tools your agent gets

Security notes

  • Connect keys are scoped to one inbox with mail-only scopes — they cannot manage keys, webhooks, or other inboxes.
  • The raw key is shown once at provisioning. Store it in your agent’s environment; it cannot be recovered later (rotate from API Keys).
  • Inbound mail is sanitized and prompt-injection-screened before your agent ever reads it.