Skip to main content
The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect with external services. Lettr provides two MCP servers so AI agents can interact with your email infrastructure — sending messages, managing templates, configuring domains, and monitoring delivery — all through natural language.

Why Use MCP?

MCP transforms how you interact with your email infrastructure. Instead of switching between dashboards, writing code, or memorizing API calls, you can ask your AI assistant to handle email tasks directly.
Traditional WorkflowWith MCP
Open dashboard, navigate to domains, check verification status”Check if my domain example.com is verified”
Write code to send an email via API”Send a test email to john@example.com
Query API logs, parse response, identify issues”Why didn’t my email to jane@example.com deliver yesterday?”
Browse events, filter by recipient, analyze patterns”Show me recent bounces for the last 24 hours”

Two Ways to Connect

Lettr offers two MCP servers for different workflows. Both give AI assistants access to your email infrastructure, but they differ in how they authenticate and where they run.

Comparison

Remote ServerLocal Server
How it runsHosted by LettrRuns on your machine via npx
AuthenticationOAuth 2.1 (your Lettr session)API key (LETTR_API_KEY)
TransportHTTP/SSEstdio
Supported clientsClaude.ai, ChatGPT, Cursor, Claude Desktop, GitHub CopilotClaude Code, Cursor, Claude Desktop
Best forChat-based account management, monitoring, analyticsDeveloper workflows, coding assistants, CI environments
Unique toolsAnalytics, email events, API logsDomain CRUD, template delete, domain verification
Open sourceNoYes

Which Should I Use?

Use the remote server if you want to manage your Lettr account from a web-based AI chat like Claude.ai or ChatGPT, or if you need analytics and event monitoring tools. The remote server authenticates through OAuth so you don’t need to manage API keys. Use the local server if you want email capabilities inside your IDE or CLI during development. The local server is ideal for Claude Code and Cursor workflows where you need to send emails, manage templates, or configure domains as part of your coding process.
Cursor and Claude Desktop work with both servers. The remote server uses OAuth (no API key needed), while the local server uses an API key and runs as a local process. You can use both simultaneously.

What Can You Do?

Both MCP servers give AI assistants tools to work with your email infrastructure. The exact tools vary — see the tools reference for the full list.
CapabilityRemoteLocal
Send emails (direct and template-based)YesYes
List, view, create, and update templatesYesYes
Delete templates and inspect merge tagsNoYes
List sending domainsYesYes
Create, verify, and delete domainsNoYes
View analytics and template statisticsYesNo
Browse email events and API logsYesNo
List API keys and webhooksYesYes
Inspect webhook detailsNoYes

Example Conversations

Once connected, you can interact with your email infrastructure using natural language: Sending emails:
“Send an email to john@example.com from hello@mycompany.com about tomorrow’s 3pm meeting”
Using templates:
“Send the ‘order-confirmation’ template to buyer@example.com with order_id ‘12345’ and customer_name ‘Sarah’”
Debugging delivery:
“Why didn’t my message to jane@example.com deliver yesterday?”
Checking domains:
“Is my domain notifications.example.com verified and ready to send?”
Reviewing events:
“Show me all bounces from the last week”

Security

Both MCP servers are designed with security in mind:
  • Remote server — Authenticates through OAuth 2.1. Access is tied to your Lettr session and team permissions. When you sign out, the AI loses access. API keys are never exposed to the AI assistant.
  • Local server — Authenticates with an API key stored in your local environment. The key never leaves your machine. Use restricted API keys to limit what the AI can do.
MCP allows AI assistants to send emails on your behalf. Only connect trusted AI clients and review actions before confirming sensitive operations.

Next Steps