{
  "$schema": "https://modelcontextprotocol.io/schema/mcp-server.json",
  "name": "gork-email",
  "title": "Gork Mail MCP Server",
  "description": "Programmable email infrastructure for AI agents. Send, receive, search, and manage inboxes via native Model Context Protocol tools.",
  "version": "1.0.0",
  "homepage": "https://gork.email",
  "documentation": "https://docs.gork.email/protocols/mcp",
  "repository": "https://github.com/shyamcxy/gorkmail",
  "transports": {
    "http": {
      "url": "https://api.gork.email/mcp",
      "type": "streamable-http"
    },
    "sse": {
      "url": "https://api.gork.email/mcp?transport=sse",
      "type": "sse"
    },
    "stdio": {
      "command": "npx",
      "args": ["-y", "-p", "@gork/sdk", "gork-mcp"]
    }
  },
  "authentication": {
    "type": "bearer",
    "header": "Authorization",
    "tokenPrefix": "Bearer ",
    "instructions": "Create an API key at https://gork.email/dashboard/keys and pass as Authorization: Bearer gork_live_... or ?apiKey=gork_live_..."
  },
  "capabilities": {
    "tools": true
  },
  "tools": [
    {
      "name": "gork_create_inbox",
      "description": "Create a new email inbox/identity for an AI agent (e.g. sales@yourdomain.com or bot@try.gork.email)."
    },
    {
      "name": "gork_list_inboxes",
      "description": "List the agent inboxes available to this API key."
    },
    {
      "name": "gork_send_email",
      "description": "Send an outbound email from a managed inbox to one or more recipients."
    },
    {
      "name": "gork_reply_email",
      "description": "Reply directly to an email message in-thread with RFC 5322 threading."
    },
    {
      "name": "gork_read_emails",
      "description": "Read recent incoming and outgoing emails for an inbox or thread."
    },
    {
      "name": "gork_search_emails",
      "description": "Search email messages with structured filters across subject, body, sender, and dates."
    },
    {
      "name": "gork_get_thread",
      "description": "Fetch a full conversation thread in chronological order."
    },
    {
      "name": "gork_read_attachment",
      "description": "Download or preview an email attachment by ID."
    },
    {
      "name": "gork_create_draft",
      "description": "Create a draft email without sending it."
    },
    {
      "name": "gork_list_drafts",
      "description": "List active drafts in the workspace."
    },
    {
      "name": "gork_update_draft",
      "description": "Update recipient, subject, or body of an existing draft."
    },
    {
      "name": "gork_send_draft",
      "description": "Send a composed draft through the deliverability pipeline."
    },
    {
      "name": "gork_discard_draft",
      "description": "Discard an unwanted draft."
    }
  ]
}
