Let AI agents send email with the Stack Emails MCP server
Connect Claude, Cursor or any MCP client to Stack Emails so agents can send email, check delivery and read inbound mail.
The Model Context Protocol (MCP) is an open standard for connecting AI assistants to tools. Stack Emails runs a remote MCP server, so any MCP-capable client can send email on your behalf — with the same domain checks, quotas and logs as the REST API.
What agents can do
| Tool | What it does |
|---|---|
send_email |
Send an email from a verified domain |
list_emails / get_email |
Check recent sends and delivery status |
list_domains |
See which domains can send |
list_received_emails |
Read inbound mail |
Connect a client
The server lives at https://stackemails.com/api/mcp and authenticates with a normal API key as a bearer token. Most clients accept a config like this:
{
"mcpServers": {
"stackemails": {
"url": "https://stackemails.com/api/mcp",
"headers": { "Authorization": "Bearer se_live_xxxxxxxxxxxx" }
}
}
}
Keep agents on a short leash
Agents make mistakes, so give them the least access they need:
- Create a sending access key, which cannot read or change anything except sending.
- Scope the key to one domain, so the agent can only send from, say,
agents.acme.com. - Review everything the agent sent in Emails and Logs — MCP calls are logged like any other API request.
Example prompt
"Check which of yesterday's password-reset emails bounced, email me a summary from team@agents.acme.com, then tell me whether it was delivered."
The agent calls list_emails, sends the summary with send_email, then checks it with get_email.
MCP turns email from something you integrate into something your agents can simply use. Read the MCP docs to get started.
Enjoyed this article?
See more from Stack Emails in Google Search.