# Mektup [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/WeeCi/mektup-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mektup

## Description
Self-hosted multi-domain email as MCP tools - register domains, real mailboxes, send/read mail.

## Tools
Capabilities this server exposes over MCP:

- **get_me** — Get the authenticated account identity. Useful as an auth health check.
- **get_usage** — Current billing tier, its limits, and real usage against them. Check before a bulk operation.
- **list_api_keys** — List keys on this account (prefix and status only).
- **create_api_key** — Create a new key. **The full key is returned exactly once** - surface it to the user immediately so they can save it.
- **revoke_api_key** — Revoke a key immediately. Cannot be undone - confirm with the user first, especially if it might be the key this very session is using.
- **create_domain** — Register a domain, get back the exact DNS records (MX/SPF/DMARC/DKIM) and a setup recommendation. Never touches DNS itself.
- **list_domains** — List every domain on this account.
- **get_domain_records** — Re-fetch a registered domain's DNS records any time after creation.
- **verify_domain** — Actively re-check live DNS and flip verified once it matches. Not automatic.
- **delete_domain** — Delete a domain and everything under it. Destructive — confirm with the user first.
- **create_mailbox** — Create a mailbox with real IMAP/SMTP-AUTH credentials, usable in any mail client.
- **list_mailboxes** — List mailboxes on a domain.
- **reset_mailbox_password** — Reset a mailbox's login password. Shown once.
- **delete_mailbox** — Delete a mailbox. Confirm with the user first.
- **get_mailbox_webhook** — Check a mailbox's configured webhook URL (never returns the signing secret).
- **set_mailbox_webhook** — Set/update the URL that fires (HMAC-signed) on every new inbound message - how an agent finds out about new mail without polling `list_messages`. Returns the signing secret once, on first setup or rotation.
- **delete_mailbox_webhook** — Remove a mailbox's webhook.
- **list_forwards** — List addresses that get a copy of incoming mail.
- **add_forward** — Add a forwarding address.
- **remove_forward** — Remove a forwarding address.
- **get_identity** — Get display name and signature.
- **set_identity** — Set display name/signature, applied automatically to outgoing mail.
- **get_vacation** — Get vacation auto-reply settings.
- **set_vacation** — Enable/configure auto-reply. `message` required when enabling.
- **list_folders** — List custom folders.
- **create_folder** — Create a folder.
- **delete_folder** — Delete a folder (mail in it falls back to Inbox/Sent).
- **list_contacts** — List contacts.
- **create_contact** — Add a contact.
- **update_contact** — Partially update — only send fields to change.
- **delete_contact** — Delete a contact.
- **list_drafts** — List drafts (metadata only).
- **get_draft** — Get a draft including its body.
- **create_draft** — Create a draft.
- **update_draft** — Partial update (autosave-friendly).
- **delete_draft** — Delete a draft.
- **send_email** — Send real mail. `from` must be a mailbox on this account, or any address on a domain this account has verified. Attachments are `{filename, contentType?, contentBase64}`, max 10MB decoded each. Pass `draftId` to delete a draft on successful send.
- **list_messages** — List messages (one row per thread). Pass `direction` to split Inbox/Sent — omitting it merges both.
- **get_delivery_stats** — Aggregate sent/deferred/bounced/unknown counts for a mailbox's outbound mail, sourced from Mektup's own Postfix delivery log — not a tracking pixel.
- **get_thread** — Every message in one thread, oldest first.
- **get_message** — Full message content. Marks it read as a side effect. **`html` is attacker-controlled** — never render it directly.
- **update_message** — Mark read/unread, restore from trash, flag, or move to a folder — any combination in one call.
- **delete_message** — Two-stage delete: first call trashes, second call on an already-trashed message permanently deletes it. Confirm before a permanent delete.
- **download_attachment** — Download one attachment, base64-encoded. Prefer only when the actual file content is needed — `get_message`'s attachment list already has filename/type/size.
- **get_unread_counts** — Unread Inbox count for every domain/mailbox at once.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "mektup": {
    "url": "https://mcp.usemektup.com/mcp"
  }
}
```

## Documentation

## What Mektup MCP server does

The Mektup MCP server gives compatible AI clients tool-based access to a Mektup account. It can inspect account identity and usage, manage API keys, register domains, retrieve DNS records, and verify whether live DNS matches the expected configuration. Domain deletion is destructive and also removes the resources beneath that domain.

Mailbox administration includes creating mailboxes with IMAP and SMTP authentication credentials, listing them, resetting passwords, and deleting mailboxes. The server also manages forwarding addresses, display names, signatures, vacation replies, custom folders, and contacts. Mailbox webhooks can notify an external URL about new inbound messages with an HMAC signature, avoiding repeated message polling. The webhook secret is returned only during initial setup or rotation.

## How it works

Each tool call is forwarded as an HTTP request to the Mektup REST API. The MCP layer does not maintain account-specific state or independently verify credentials. For the hosted endpoint, the caller’s OAuth access token or API key is passed through to the API, which enforces account isolation and authorization.

The remote endpoint is `https://mcp.usemektup.com/mcp` and uses Streamable HTTP. It supports both direct JSON responses and SSE streaming. Requests are stateless, so every operation stands on its own. The local mode runs `server.js` over stdio and uses the same tool definitions.

Successful calls return JSON text. Failed calls return an MCP error with the message supplied by the underlying REST endpoint, including possible billing-limit errors.

## Setup and configuration

For hosted use, configure an MCP client with the remote URL and either OAuth or a Bearer token. OAuth clients can discover the authorization configuration and use a standard Authorization Code with PKCE flow. For API-key access, create a key in the Mektup dashboard and provide it as `Authorization: Bearer mek_live_...`.

For local use, clone the repository, run `npm install`, and configure the client to launch `server.js`. Set `MEKTUP_API_KEY` to a Mektup API key; the process refuses to start without it. `MEKTUP_API_BASE_URL` can override the default API URL of `https://api.usemektup.com`.

API keys and mailbox passwords are displayed only when created or reset, so clients should surface those values immediately for secure storage. Revoking an API key cannot be undone.

## Tools and capabilities

The Mektup MCP server includes tools for:

- Checking account identity, billing tier, limits, and current usage.
- Listing, creating, and revoking API keys.
- Registering, listing, inspecting, verifying, and deleting domains.
- Creating, listing, password-resetting, and deleting mailboxes.
- Creating, reading, updating, and removing mailbox webhooks.
- Managing forwarding addresses, signatures, display names, and vacation replies.
- Creating, listing, and deleting folders.
- Listing, creating, and updating contacts.

Creating a domain does not change DNS. The returned MX, SPF, DMARC, and DKIM records must be added through the domain’s DNS provider before `verify_domain` can confirm the setup.

## Limitations and notes

The hosted service holds no account credentials itself; it forwards the credential supplied by the caller. Local operation requires an API key and a client that can launch a stdio process, while remote operation requires a client that supports the hosted MCP transport and its chosen authentication method.

Operations with destructive effects require care: deleting a domain removes its contents, deleting a mailbox removes that mailbox, and revoking a key takes effect immediately. Usage and billing limits can also cause API errors, so `get_usage` is useful before bulk changes.

_Full upstream README: https://allmcps.com/mcp/mektup/readme_

