AI Assistant Integrations
The Cakemail API is designed to work with AI coding assistants. Whether you're generating integration code, exploring endpoints, or executing API calls directly, there are several ways to connect your AI tools to Cakemail.
Context7
The Cakemail OpenAPI specification is indexed on Context7, a service that provides up-to-date library and API documentation to AI coding assistants.
Any AI tool that supports Context7 — including Claude Code, Cursor, Windsurf, and others — can automatically pull the latest Cakemail API docs when you're writing integration code.
How it works
When you ask your AI assistant about Cakemail, Context7 fetches the current OpenAPI spec so the assistant has accurate endpoint definitions, parameter schemas, and response formats — not outdated training data.
No configuration is needed if your tool already has Context7 enabled. Just mention Cakemail in your prompt and the assistant will pull the relevant documentation.
MCP servers in AI coding assistants
Any AI coding assistant that supports MCP — including Claude Code, Cursor, Windsurf, and others — can connect directly to Cakemail's MCP servers. This gives the assistant live access to the API: browsing endpoints, making real API calls, and searching documentation.
Cakemail provides three MCP servers:
- Discovery MCP — Browse endpoints and schemas, no auth required
- Execution MCP — Make real API calls on behalf of users
- Knowledge Base MCP — Search Cakemail documentation in natural language
Setup with Claude Code
Add the MCP servers to Claude Code:
# Discovery — browse the API (no auth required)
claude mcp add cakemail-discovery \
--transport http \
https://apidoc.mcp.cakemail.com/api/mcp
# Execution — make API calls (requires auth)
claude mcp add cakemail-exec \
--transport http \
https://exec.mcp.cakemail.com/api/mcp \
--header "Authorization: Basic $(echo -n 'you@example.com:your-password' | base64)"
# Knowledge base — search docs (requires auth)
claude mcp add cakemail-kb \
--transport http \
https://kb.mcp.cakemail.com/api/mcp \
--header "Authorization: Basic $(echo -n 'you@example.com:your-password' | base64)"
Other MCP-compatible tools use similar configuration — provide the server URL and transport type. See your tool's documentation for specifics.
Example prompts
Once connected, you can ask your AI assistant things like:
- "List my Cakemail campaigns from the last 30 days"
- "Create a new contact list called 'Newsletter Subscribers'"
- "Show me the parameters for the send campaign endpoint"
- "What webhook events does Cakemail support?"
For a detailed breakdown of each MCP server — available tools, authentication, and usage examples — see the MCP Servers documentation.