Skip to content

The Mektup email MCP server

Give an AI agent real email on your own domain as tools: register the domain, create mailboxes, read threads, send and receive. Use it remote at https://mcp.usemektup.com/mcp with OAuth sign-in, or locally with npx mektup-mcp. Open source under MIT.

Updated

Connect it

Claude Code

# remote server, sign in with your Mektup account (OAuth)
claude mcp add --transport http mektup https://mcp.usemektup.com/mcp

# or with an API key
claude mcp add --transport http mektup https://mcp.usemektup.com/mcp \
  --header "Authorization: Bearer mek_live_..."

Cursor, Claude Desktop and other JSON configs

Remote server with an API key
{
  "mcpServers": {
    "mektup": {
      "url": "https://mcp.usemektup.com/mcp",
      "headers": { "Authorization": "Bearer mek_live_..." }
    }
  }
}
Local server over stdio
{
  "mcpServers": {
    "mektup": {
      "command": "npx",
      "args": ["-y", "mektup-mcp"],
      "env": { "MEKTUP_API_KEY": "mek_live_..." }
    }
  }
}

Lovable, Replit and Base44 ask for the same three things: the server URL, Bearer authentication and your key, or they run the OAuth sign-in for you. API keys are created in the dashboard under API keys.

The tools

Every endpoint of the Mektup REST API is also a tool, so an agent can do everything a person can do in the dashboard.

GroupTools
Domainscreate_domain get_domain_records verify_domain list_domains delete_domain
Mailboxescreate_mailbox list_mailboxes reset_mailbox_password delete_mailbox set_mailbox_webhook get_mailbox_webhook delete_mailbox_webhook
Mailsend_email list_messages get_message get_thread update_message delete_message download_attachment get_unread_counts get_delivery_stats
Draftscreate_draft update_draft get_draft list_drafts delete_draft
Organisingcreate_folder list_folders delete_folder create_contact list_contacts update_contact delete_contact
Settingsset_identity get_identity set_vacation get_vacation add_forward list_forwards remove_forward
Accountget_me get_usage create_api_key list_api_keys revoke_api_key

What an agent can do with it

  • Set up email for a new project in one session: create_domain, add the records it returns at the DNS host, verify_domain, create_mailbox.
  • Work an inbox: list_messages for unread threads, get_thread for the conversation, send_email for the answer, update_message to mark it read or move it.
  • Draft for a person to approve: create_draft instead of sending; the draft appears in the mailbox for someone to check and send.
  • Watch deliverability: get_delivery_stats shows sent, deferred and bounced mail with the receiving server's own answer.

How it runs

The remote server is stateless: each tool call is one request to api.usemektup.com with your token, so it sees exactly what your account sees and nothing else. OAuth clients discover sign-in automatically (RFC 9728 and RFC 8414 metadata, dynamic client registration) and show a consent screen before anything is granted. The same tool definitions run in the local npm package. Mektup is listed in the Official MCP Registry, Smithery, Cursor Directory and mcp.so.

Questions

What is an email MCP server?

An MCP (Model Context Protocol) server that exposes email as tools an AI model can call: list and read messages, send, reply, manage mailboxes. The Mektup MCP server does this for real mailboxes on your own domains, hosted by Mektup.

Is the Mektup MCP server free?

The server is open source under the MIT licence and costs nothing to run. It calls the Mektup API, which needs a Mektup account: Starter is $20 a month.

How is this different from a Gmail MCP server?

A Gmail MCP server connects an agent to one person's Gmail account through Google OAuth: good for working in your own inbox. Mektup gives the agent its own addresses on your domains, lets it create domains and mailboxes, and notifies it of new mail by webhook. People can still open those mailboxes in webmail or any mail app.

Which clients does it work with?

Any MCP client. The remote server speaks Streamable HTTP with OAuth 2.1 sign-in or a Bearer API key (Claude Code, Claude Desktop, Cursor, Lovable, Replit, Base44). The local server runs over stdio with npx mektup-mcp.

Can the agent only reach my mail?

Every call carries your API key or OAuth token and goes to the Mektup API, which only returns data from that account. Revoke a key or the OAuth grant and access stops at once.

Start today, or talk to us?

Starter is $20 a month. Agencies get a quote for every client domain on one account.