AI agents
Claude Code
Claude Code is Anthropic’s agentic coding tool. Connect it to the MailCraft MCP server and it can send email, manage contacts, build automations and fix a domain’s DNS right from your terminal.
Prerequisites
- Claude Code installed
- A MailCraft API key with the scopes you want the agent to have — create one under Settings → API keys.
Setup
- 1
Add the server
Run this in your terminal. It registers MailCraft for your user; use --scope project to share it with a repository instead.
terminalclaude mcp add --transport http mailcraft https://mcp.mailcraft.host \ --header "Authorization: Bearer sk_live_your_api_key"Replace sk_live_your_api_key with your key. The agent only gets the tools that key's scopes allow.
- 2
Verify the connection
Start Claude Code and run /mcp — mailcraft should be listed as connected. Then ask it something:
claudeList all my MailCraft domains
Prefer signing in? Run the same command without --header, then choose mailcraft in /mcp and authenticate in your browser.
Example prompts
Once connected, try asking Claude Code:
- Send a test email from [email protected] to me and show me its delivery status
- Which of my domains are still missing DNS records?
- Create a welcome automation that sends the "Welcome" template, waits three days, then sends "Getting started"
See every tool the agent can use in the MCP server reference.