KosmoKrator

productivity

Mailtrap MCP Gateway for AI Agents

Expose Mailtrap tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

7 functions 6 read 1 write API token auth

Mailtrap MCP Gateway

Expose Mailtrap to MCP clients with `kosmokrator mcp:serve --integration=mailtrap`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=mailtrap --write=deny --json
{
  "mcpServers": {
    "kosmokrator-mailtrap": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=mailtrap",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=mailtrap --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__mailtrap__mailtrap_list_inboxes mailtrap.mailtrap_list_inboxes Read read
integration__mailtrap__mailtrap_get_inbox mailtrap.mailtrap_get_inbox Read read
integration__mailtrap__mailtrap_list_messages mailtrap.mailtrap_list_messages Read read
integration__mailtrap__mailtrap_get_message mailtrap.mailtrap_get_message Read read
integration__mailtrap__mailtrap_send_test_email mailtrap.mailtrap_send_test_email Write write
integration__mailtrap__mailtrap_list_suppressions mailtrap.mailtrap_list_suppressions Read read
integration__mailtrap__mailtrap_get_current_user mailtrap.mailtrap_get_current_user Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.