← Back to docs

MCP Server for AI Agents

Let AI assistants send and manage email through EuroMail using the Model Context Protocol server.

Menu

Overview

The EuroMail MCP server exposes the API as Model Context Protocol tools. An AI assistant such as Claude Desktop, an IDE agent or your own LLM application can then send email, check delivery status, manage domains and more by calling tools directly. You don't write any glue code.

Adding it to an MCP client

The server runs over stdio through npx. Add it to your client's MCP configuration with your API key in the environment.

Claude Code:

claude mcp add euromail --env EUROMAIL_API_KEY=em_live_your_key_here -- npx -y @euromail/mcp-server

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "euromail": {
      "command": "npx",
      "args": ["-y", "@euromail/mcp-server"],
      "env": {
        "EUROMAIL_API_KEY": "em_live_your_key_here"
      }
    }
  }
}

The same command, args and env block works in Cursor and other MCP-compatible clients. Restart the client and the EuroMail tools become available to the assistant.

VariableRequiredDefaultDescription
EUROMAIL_API_KEYYesYour API key, sent as a Bearer token
EUROMAIL_API_URLNohttps://api.euromail.devAPI base URL

What the assistant can do

Each tool maps to one API operation covered elsewhere in this documentation.

AreaTools
Emailssend_email, send_batch_emails, get_email, list_emails, validate_email
Templatescreate_template, list_templates, get_template, update_template, delete_template
Domainsadd_domain, list_domains, get_domain, verify_domain, delete_domain
Webhookscreate_webhook, list_webhooks, get_webhook, update_webhook, delete_webhook
Suppressionsadd_suppression, list_suppressions, remove_suppression
Accountget_account
Contact listscreate_contact_list, list_contact_lists, get_contact_list, update_contact_list, delete_contact_list, add_contacts, list_contacts, remove_contact
Analyticsget_analytics_overview, get_analytics_timeseries, get_analytics_domains, export_analytics_csv
Dead letterslist_dead_letters, retry_dead_letter, delete_dead_letter
Audit logs and billinglist_audit_logs, list_billing_plans, get_subscription
Inbound emaillist_inbound_emails, get_inbound_email, delete_inbound_email, create_inbound_route, list_inbound_routes, get_inbound_route, update_inbound_route, delete_inbound_route
Agent mailboxescreate_mailbox, list_mailboxes, read_mailbox_messages, search_mailbox, list_mailbox_threads, reply_to_message

Because the tools run on your API key, the assistant works within your account's plan and quota, and every send follows the same domain verification and suppression rules as any other request. If a call fails, the assistant gets the API's error message back and can react to it.

Discoverability endpoints

Agents that crawl the web instead of using MCP can find EuroMail too. These files describe the service in a form an assistant can read on its own:

EndpointPurpose
https://euromail.dev/llms.txtConcise product overview (llmstxt.org)
https://api.euromail.dev/llms-full.txtFull API summary for LLMs
https://api.euromail.dev/.well-known/ai-plugin.jsonAI plugin manifest
https://api.euromail.dev/.well-known/agent-card.jsonAgent card

Security notes

  • Give each agent its own API key so you can revoke its access without affecting anything else. See API Keys.
  • The key is a secret. Don't commit an MCP config that has the key written into it.
  • If an agent also needs to receive mail, see Agent Mailboxes, which adds a lease/ack/nack inbox built for autonomous workers.

Send your first email in about 90 seconds

The free tier includes 3,000 emails a month. Email storage and AI processing in Finland, with a DPA on every plan.

Create free account See live delivery data