simplelogin-mcp
simplelogin-mcp is a self-hostable MCP server that lets you manage a SimpleLogin account through MCP clients.
List, inspect, create, update, enable/disable, and permanently delete aliases.
View bounded alias activity metadata such as forwards, replies, blocks, and bounces.
Create and manage contacts/reverse aliases, including blocking forwarding and deleting contacts.
List, create, update, and delete mailboxes, with verification/default/transfer handling.
List and update existing custom domains, and inspect their deleted-alias trash.
Read account info and aggregate account stats.
List notifications and mark them read.
Read and update account-wide alias settings.
Run via local stdio or Streamable HTTP, with loopback defaults and auth token requirements for non-loopback use.
Provides tools for interacting with a SimpleLogin account via its API, enabling management of aliases, contacts and reverse aliases, mailboxes, custom domains, notifications, and account settings.
simplelogin-mcp
An independent, self-hostable Model Context Protocol server for existing SimpleLogin users. It lets compatible MCP clients create and manage aliases, inspect alias activity metadata, work with reverse aliases, manage routing, and review account settings through a server you run.
Independent project: simplelogin-mcp is an independent, open-source project. It is not an official SimpleLogin or Proton AG product, service, or MCP implementation, and it is not affiliated with, endorsed by, or sponsored by SimpleLogin or Proton AG.
At a glance
Local stdio is the simplest starting point for one local MCP client. The client launches the server without opening a network listener.
Direct Node.js — Streamable HTTP runs a persistent service for HTTP-capable MCP clients, listening on loopback by default.
Docker Compose — Streamable HTTP runs the published container when you prefer to manage the service with Docker, with loopback-only host publishing by default.
SL_API_KEYgrants full control of your SimpleLogin account. Keep it out of prompts, logs, shell history, and version control.Tool names, inputs, safety annotations, bounds, and output descriptions come from the same catalog and schemas used by the server.
Related MCP server: proton-mail-mcp
Documentation
The website is the canonical user documentation:
Repository-maintainer documentation remains alongside the code:
Tools
The catalog covers aliases, contacts and reverse aliases, mailboxes, custom domains, notifications, and account settings. Read operations with potentially large results are bounded, and permanent deletions require explicit confirmation.
Use the searchable website tool catalog for the current public surface, or read the generated TOOL_CATALOG.md beside the source. Endpoint-level support and deliberate non-goals are documented in API coverage.
Common workflows
The workflow guide provides complete, reviewable sequences. These summaries preserve the most common entry points.
Create and organize aliases
Use alias_list to find existing aliases before creating one with alias_create_random. For a
custom address, inspect alias_options_get before calling alias_create_custom. Use alias_update
to keep notes, names, and pinned state organized, and alias_set_enabled to enable or disable an
alias explicitly.
For a personal example of how I organize my SimpleLogin aliases, read How I organize my email.
Audit recent alias activity
Find the alias with alias_list or alias_get, then inspect bounded activity-metadata pages with
alias_activity_list. Results describe forwards, replies, blocks, and bounces; the server does not
read email message bodies.
Create a reverse alias for sending
Use contact_list to check existing recipients for an alias, then contact_create to create or
reuse a reverse alias when needed. Send the actual message from a real mailbox that owns the alias
to the returned reverse-alias address. The MCP server creates the routing address; it does not
compose or send the email.
Manage mailboxes
Use mailbox_list before creating, updating, or deleting a mailbox. New addresses require
verification in SimpleLogin, and permanent deletion requires both confirm: true and an explicit
transfer-or-delete decision for owned aliases.
Maintain a custom domain
The server can inspect and update supported settings for an existing custom domain. Domain creation, deletion, DNS, and MX verification remain in SimpleLogin's official interface.
Check on the account
Use account_get_stats for aggregate account counts, notification_list for bounded account
notifications, and settings_get before making supported changes with settings_update.
Install and run
Prerequisites
A SimpleLogin account with a dedicated API key.
Git.
For source installs: Node.js 24.x with Corepack and pnpm 11.5.1.
For container installs: Docker with Docker Compose.
An MCP client that supports your chosen transport: local stdio or Streamable HTTP.
Local stdio
Local stdio is the recommended starting point when the client and server run on the same machine:
git clone https://github.com/enthouan/simplelogin-mcp.git
cd simplelogin-mcp
corepack enable
pnpm install --filter simplelogin-mcp --frozen-lockfile
pnpm buildNext, follow the recipe for your MCP client,
point it at the absolute path to dist/index.js, set TRANSPORT=stdio and SL_API_KEY in its
private configuration, restart the client, and verify discovery with the documented read-only call.
Docker Compose
Use the bundled Compose file for an operator-managed persistent service:
git clone https://github.com/enthouan/simplelogin-mcp.git
cd simplelogin-mcp
cp .env.example .env
# Set SL_API_KEY and MCP_AUTH_TOKEN in .env
docker compose up -d
docker compose ps
curl http://localhost:3000/healthThe v1.0.5 response is {"status":"ok","version":"1.0.5"}.
The default file pulls the published GHCR image,
publishes the host port only on 127.0.0.1, and requires MCP_AUTH_TOKEN because the application
binds 0.0.0.0 inside the container. Pin SIMPLELOGIN_MCP_IMAGE_TAG to a release for repeatable
deployments. See the Docker Compose guide
before widening the host bind.
Local Docker build
For source changes, build the container from the checkout instead of pulling GHCR:
docker compose -f docker-compose.local.yml up --buildDirect Node.js — Streamable HTTP
For Direct Node.js — Streamable HTTP development, copy .env.example, set SL_API_KEY, and load
the ignored file only into a subshell:
corepack enable
pnpm install --filter simplelogin-mcp --frozen-lockfile
cp .env.example .env
pnpm build
(
set -a
. ./.env
set +a
TRANSPORT=http HOST=127.0.0.1 PORT=3000 pnpm start
)The MCP endpoint is POST http://127.0.0.1:3000/mcp; GET /health verifies only process health.
See the Streamable HTTP guide for client
authentication and wider-network requirements.
Configuration
Configuration is provided through environment variables and validated at startup. The primary settings are:
Variable | Purpose |
| Required SimpleLogin credential; grants full account control. |
| Literal |
| Hosted or self-hosted SimpleLogin web-app origin. |
| Direct Streamable HTTP listener; defaults to |
| Separate bearer token protecting |
See the complete configuration reference for Compose publishing, allowed browser origins, timeouts, private CAs, and proxy variables.
Getting a SimpleLogin API key
Create a dedicated key in the SimpleLogin dashboard and keep it private. Follow the API-key guide for hosted and self-hosted instances.
Connecting a client
Use the maintained client setup recipes for Codex, Claude Code, Claude Desktop, VS Code, and OpenCode. The compatibility page records the scope and limitations of current evidence.
After the client discovers the server, ask: “Can you show me my SimpleLogin account usage?” The
expected tool is account_get_stats, a read-only call that takes no arguments and returns aggregate
account counts. A successful call verifies the client connection and access to SimpleLogin;
GET /health checks only that the HTTP server is running.
Self-hosted SimpleLogin
Set SL_API_URL to the self-hosted web-app origin without an /api suffix, and create
SL_API_KEY on that same instance. Private-CA and proxy configuration is documented in the
configuration reference. Compatibility
depends on the instance exposing upstream-compatible API paths and response shapes.
Troubleshooting
Start with the troubleshooting guide. Do not include API keys, bearer tokens, authorization headers, proxy credentials, alias addresses, or mailbox addresses in logs or issues. For support boundaries, see SUPPORT.md.
Development
Requires Node.js 24.x and pnpm.
pnpm install --frozen-lockfile
pnpm build
pnpm typecheck
pnpm lint
pnpm test
pnpm format:checkFor a watch server, run pnpm dev after loading your configuration into the environment. Local
pnpm commands do not automatically load .env; the Direct Node.js example
shows how to load it in a subshell.
See CONTRIBUTING.md for endpoint patterns, catalog generation, testing, and pull request expectations. Live SimpleLogin smoke tests are manual and opt-in because they create a temporary alias; use docs/live-smoke-test.md and verify cleanup.
Architecture
Endpoint support is split across constants, response schemas, the SimpleLogin client, and the tool catalog and registrations. The shared request layer handles authentication, timeouts, error normalization, and response validation. See CONTRIBUTING.md for the exact change pattern and How it works for the runtime request flow.
Security
Treat SL_API_KEY like a password. Local stdio opens no listener. Streamable HTTP binds to
loopback by default and refuses normal unauthenticated non-loopback startup. Any LAN or public
deployment should keep MCP_AUTH_TOKEN enabled and terminate TLS at a reverse proxy.
Read SECURITY.md before reporting a vulnerability. Use SUPPORT.md for questions and non-security bugs.
Contributing
Contributions are welcome. Read CONTRIBUTING.md before opening a pull request.
License
MIT — see LICENSE.
Available Tools
27 toolsaccount_get_infoGet account infoARead-onlyIdempotent
Return the authenticated SimpleLogin user's info: name, email, premium/trial status, and free-plan alias limit. Useful as a quick check that the configured API key is valid.
Inputs: no named parameters.
account_get_statsGet account statsARead-onlyIdempotent
Return the account's lifetime counters: number of aliases (nb_alias) and number of emails forwarded (nb_forward), replied to (nb_reply), and blocked (nb_block) across all aliases. Use alias_activity_list for the per-alias breakdown behind these totals.
Inputs: no named parameters.
alias_activity_listList alias activityARead-onlyIdempotent
List the forward/reply/block activity history for a single SimpleLogin alias, 20 entries per page (most recent first). Each entry has an action (forward, reply, block, or bounced), the from/to addresses, a Unix timestamp, and the reverse-alias address for replies. Use page_id for pagination (starts at 0); the per-page cap keeps responses bounded, so page through rather than expecting the full history in one call.
Inputs: alias_id (required), page_id.
alias_create_customCreate custom aliasA
Create a custom SimpleLogin alias with a chosen prefix and suffix. First call alias_options_get to obtain a valid signed_suffix and confirm can_create is true, then pass that exact signed_suffix here with the desired alias_prefix and the mailbox_ids (from mailbox_list) that should receive mail. note and name are optional.
Inputs: mailbox_ids (required), alias_prefix (required), signed_suffix (required), name, +2 more.
alias_create_randomCreate random aliasA
Create a new random SimpleLogin alias with a system-generated address. mode "uuid" produces a random-string address; "word" produces a word-based one; omit to use the account default. Optionally attach a note and the website hostname the alias is for.
Inputs: mode, note, hostname.
alias_deleteDelete aliasADestructive
Permanently delete a SimpleLogin alias by id. This cannot be undone; mail sent to the address afterwards is rejected. Prefer alias_set_enabled with enabled=false to merely disable an alias. Requires confirm=true as an explicit acknowledgement of the deletion.
Inputs: confirm (required), alias_id (required).
alias_domains_listList alias domainsARead-onlyIdempotent
List the email domains available for creating aliases on this account, each flagged is_custom (a user-owned domain) or not (a SimpleLogin public domain).
Inputs: no named parameters.
alias_getGet aliasARead-onlyIdempotent
Get full details of a single SimpleLogin alias by its numeric id, including note, mailboxes, enabled/pinned state, PGP status, and activity counters.
Inputs: alias_id (required).
alias_listList aliasesARead-onlyIdempotent
List the user's SimpleLogin email aliases, 20 per page. Use page_id for pagination (starts at 0). Optionally filter to only enabled, only disabled, or only pinned aliases, and/or search by a free-text query matching the alias email, note, or name.
Inputs: query, filter, page_id.
alias_options_getGet alias creation optionsARead-onlyIdempotent
Fetch the options needed to create a custom alias: whether the user can create more aliases (can_create), a prefix suggestion, and the list of available suffixes — each with the signed_suffix required by alias_create_custom. Pass the target website hostname to tailor the suggestion.
Inputs: hostname.
alias_set_enabledEnable/disable aliasADestructiveIdempotent
Set a SimpleLogin alias to a specific enabled state. Pass enabled=true to enable or enabled=false to disable. A disabled alias silently blocks incoming mail without being deleted. Idempotent: setting the state it is already in changes nothing. Returns the resulting enabled state.
Inputs: enabled (required), alias_id (required).
alias_updateUpdate aliasADestructiveIdempotent
Update an existing alias. Provide at least one field to change: note, display name, the owning mailbox (mailbox_id) or full mailbox set (mailbox_ids), whether PGP is disabled, and whether the alias is pinned. Only the provided fields change. mailbox_id and mailbox_ids are mutually exclusive, and a call that changes nothing is rejected without contacting SimpleLogin. Replacing mailboxes can stop future mail from landing in removed mailboxes.
Inputs: alias_id (required), name, note, pinned, +3 more.
contact_createCreate alias contactA
Create a contact (reverse alias) on an alias so the user can send mail from the alias to that contact while keeping their real mailbox hidden. Pass the recipient as a bare address ("first@example.com") or an RFC-5322 display form ("First Last first@example.com"). The response includes the reverse_alias_address to send to; existed=true means the contact already existed and nothing was created. Creating reverse aliases may require a premium SimpleLogin plan.
Inputs: contact (required), alias_id (required).
contact_deleteDelete alias contactADestructive
Permanently delete a contact (reverse alias) by its numeric id. This cannot be undone; the reverse-alias address stops working and the correspondence history for that contact is removed. To merely stop receiving mail from the contact, prefer contact_set_blocked with blocked=true instead. Requires confirm=true as an explicit acknowledgement.
Inputs: confirm (required), contact_id (required).
contact_listList alias contactsARead-onlyIdempotent
List the contacts (reverse aliases) for a single SimpleLogin alias, 20 per page. Each contact is an address the alias can correspond with: it carries the contact email, a reverse_alias_address the user sends to in order to reach that contact from the alias, whether forwarding from it is blocked (block_forward), and when it was last emailed. Use page_id for pagination (starts at 0).
Inputs: alias_id (required), page_id.
contact_set_blockedBlock/unblock alias contactADestructiveIdempotent
Set whether forwarding from a contact to its alias is blocked. Pass blocked=true to stop mail from that contact reaching the user, or blocked=false to allow it again. Requires the alias_id (the contact belongs to it) so the current state can be read first: setting the state it is already in is a no-op. Returns the resulting block_forward state.
Inputs: blocked (required), alias_id (required), contact_id (required).
custom_domain_listList custom domainsARead-onlyIdempotent
List the account's custom domains, each with its id, domain name, verification status, alias count, catch-all and random-prefix-generation flags, display name, and the mailboxes that receive its mail. Use the returned ids with custom_domain_update and custom_domain_trash_list.
Inputs: no named parameters.
custom_domain_trash_listList custom domain trashARead-onlyIdempotent
List a custom domain's deleted aliases (its trash), each with the alias address and a Unix deletion timestamp. Deleted addresses on a custom domain are remembered so they are not silently recreated by catch-all; use this to audit what was removed or to check whether an address is in the trash before reusing it. SimpleLogin exposes this endpoint without server-side pagination, so the MCP result is locally paged with page_id (starts at 0) and limit (defaults to 100, max 500).
Inputs: custom_domain_id (required), limit, page_id.
custom_domain_updateUpdate custom domainADestructiveIdempotent
Update a custom domain. Provide at least one change: catch_all toggles whether mail to any unknown address on the domain auto-creates an alias; random_prefix_generation toggles random prefixes for on-the-fly aliases; name sets the display name used as the From name on the domain (null clears it); mailbox_ids replaces the full set of mailboxes receiving the domain's mail (1 to 20 ids from mailbox_list). Only the provided fields change, a call that changes nothing is rejected without contacting SimpleLogin, and the updated domain is returned. Disabling catch_all or replacing mailbox_ids can stop future delivery for affected domain addresses.
Inputs: custom_domain_id (required), name, catch_all, mailbox_ids, +1 more.
mailbox_createCreate mailboxA
Add a new mailbox (a real email address that receives alias mail) to the account. SimpleLogin sends a verification email to the address; the mailbox starts unverified and cannot own aliases or become the default until the user clicks that link. Check mailbox_list to see when verified turns true. Additional mailboxes may require a premium SimpleLogin plan.
Inputs: email (required).
mailbox_deleteDelete mailboxADestructive
Permanently delete a mailbox. The aliases it owns must be dealt with explicitly: pass transfer_aliases_to (the id of a different, verified mailbox from mailbox_list) to move them, or delete_aliases=true to delete them with the mailbox; exactly one of the two is required. The default mailbox cannot be deleted; promote another mailbox first via mailbox_update with set_default=true. This cannot be undone. Requires confirm=true as an explicit acknowledgement of the deletion.
Inputs: confirm (required), mailbox_id (required), delete_aliases, transfer_aliases_to.
mailbox_listList mailboxesARead-onlyIdempotent
List the account's mailboxes (verified and unverified), each with its id, email, default flag, alias count, and verification status. Use the returned ids as mailbox_ids when creating or updating aliases.
Inputs: no named parameters.
mailbox_updateUpdate mailboxA
Update a mailbox. Provide at least one change: set_default=true makes this mailbox the account default (it must be verified); email starts an address change that stays pending until the new address is verified via the email SimpleLogin sends it; cancel_email_change=true aborts such a pending change. set_default and cancel_email_change only accept true (a mailbox stops being default only when another is promoted, and a pending change is cancelled rather than toggled back), email and cancel_email_change are mutually exclusive, and a call that changes nothing is rejected without contacting SimpleLogin.
Inputs: mailbox_id (required), email, set_default, cancel_email_change.
notification_listList notificationsARead-onlyIdempotent
List account notifications from SimpleLogin (announcements, warnings such as a mailbox bouncing, etc.), 20 per page, unread first then newest first. Each entry has an id, nullable title, HTML message, read flag, and a human-readable created_at. Use page_id for pagination (starts at 0); more=true means another page exists. Mark entries handled with notification_mark_read.
Inputs: page_id.
notification_mark_readMark notification readAIdempotent
Mark a single account notification as read, by the id from notification_list. Idempotent: marking an already-read notification succeeds and changes nothing. Notifications cannot be marked unread or deleted via the API.
Inputs: notification_id (required).
settings_getGet account settingsARead-onlyIdempotent
Return the account-wide alias settings: alias_generator (random-alias address style), notification (email notifications on/off), random_alias_default_domain (domain used for random aliases), sender_format (how the original sender appears in forwarded mail), and random_alias_suffix (suffix style for random and on-the-fly aliases). Change them with settings_update.
Inputs: no named parameters.
settings_updateUpdate account settingsAIdempotent
Update the account-wide alias settings; only the provided fields change and the resulting settings are returned. Deliberately limited to the five documented alias-behavior fields: account email, password, payment, and deletion are out of scope and stay in the web UI. random_alias_default_domain must be a domain from alias_domains_list (premium-only domains need a premium account; a custom domain must be yours and verified). A call that changes nothing is rejected without contacting SimpleLogin.
Inputs: notification, sender_format, alias_generator, random_alias_suffix, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Each tool targets a distinct resource/action combination; alias, mailbox, contact, custom-domain, notification, settings, and account operations are clearly separated. Overlaps like alias_create_random vs alias_create_custom and alias_update vs alias_set_enabled are disambiguated by descriptions and different intent.
Names are consistently snake_case and mostly follow a resource_action or resource_subresource_action pattern. Minor deviations exist: alias_domains_list uses a plural subresource with list-last while alias_list is singular, and account_get_info vs settings_get differ in verb placement.
27 tools is on the heavy side for an MCP server, exceeding the typical 3-15 range. The breadth is justified by SimpleLogin's many resource types, but the surface is large enough that count feels borderline rather than well-scoped.
Core lifecycle coverage is strong: aliases, mailboxes, contacts, settings, and notifications have read/write/delete or state-change operations. Gaps remain around custom-domain creation/deletion and fewer CRUD operations for some secondary resources, but agents can work around most of them.
Maintenance
Related MCP Connectors
MCP server for MailTempo's public free temporary email inboxes.
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Official remote MCP server of MailSenpai, the EU-hosted email marketing platform. Connect Claude, ChatGPT, Cursor or another MCP client with OAuth 2.1 and PKCE. 74 tools manage lists, subscribers, segments, templates, draft campaigns and stats, and check email DNS, blacklists and spam. Sends and deletions require explicit confirmation; every call is logged. The same team also offers SMTP Senpai, an SMTP relay and email API for transactional sending: https://en.mailsenpai.com/smtp-senpai/.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for the Proton privacy suite — Mail, Pass, Drive, Calendar, and VPN. 36 tools for Claude and other MCP-compatible AI agents.30MIT
- AlicenseAqualityCmaintenanceUnofficial MCP server for Proton Mail (not affiliated with Proton AG) — send, read, search & organize email over SMTP/IMAP31105 npm11MIT
- AlicenseNot gradedqualityCmaintenanceSelf-hosted MCP server that enables reading, sending, and automating Proton Mail via Bridge, with optional SimpleLogin alias management.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes SimpleLogin alias management endpoints, enabling creation, listing, searching, updating, and toggling email aliases with configurable permission levels.MIT