Cakemail API MCP

Discover and call the Cakemail API through the Model Context Protocol.

What is this?

This is an MCP server that lets AI assistants explore and execute the Cakemail API. It loads the full OpenAPI specification and exposes it through three tools for discovery and execution.

Available Tools

list_endpoints

Browse available API endpoints. Filter by tag (Campaign, Contact, Account, etc.) or search term.

get_endpoint

Get full details for a specific endpoint: parameters, request body schema, and response schema.

call_api

Read data from the Cakemail API (GET only). Useful for verifying API behavior with real data.

Authentication

Connect with Claude Code

claude mcp add cakemail-api \
  --transport http \
  https://apidoc.mcp.cakemail.com/api/mcp \
  --header "Authorization: Basic BASE64_ENCODED_CREDENTIALS"

Generate the Base64 string: echo -n 'you@example.com:your-password' | base64

Connect with any MCP client

{
  "mcpServers": {
    "cakemail-api": {
      "type": "streamable-http",
      "url": "https://apidoc.mcp.cakemail.com/api/mcp",
      "headers": {
        "Authorization": "Basic BASE64_ENCODED_CREDENTIALS"
      }
    }
  }
}
Tip: Generate your credentials string by running:
echo -n 'you@example.com:your-password' | base64

Alternatively, use Authorization: Bearer API_KEY with an admin API key.

API Endpoints

POST /api/mcp

MCP Streamable HTTP endpoint. Requires Basic Auth or Bearer token.

POST /api/auth

Get an access token with Cakemail credentials. Accepts username, password, and optional account_id.

GET /api/usage

View tool usage statistics per user. Optional: ?since=2026-03-01&until=2026-03-31. Admin API key required.