Purelymail MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Purelymail MCP Which of my domains are failing DNS checks?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Purelymail MCP
Manage your Purelymail account from any MCP client
Features • Getting started • Configuration • Tools • Security • Development
An MCP server that gives AI assistants access to the Purelymail API. Ask for what you need in plain language, and let your assistant handle mailboxes, domains and routing for you:
Which of my domains are failing DNS checks?
Create
sales@example.comand forwardhello@example.comto it.
How much account credit do I have left?
Features
Full API coverage: all 19 operations, across users, password reset methods, app passwords, routing rules, domains and billing.
Read-only mode: expose only the 7 tools that cannot change anything.
Safety annotations: tools are marked as read-only or destructive, so clients can ask for confirmation.
Reliable error reporting: failures are detected from the response body, because the API reports them with HTTP 200.
Nothing to install: MCP clients run the package through
npx.
Related MCP server: nice
Getting started
You need Node.js 20 or later and an API token from your Purelymail account settings.
Claude Code
claude mcp add purelymail \
-e PURELYMAIL_API_TOKEN=your-token \
-- npx -y @amplia-labs/purelymail-mcpOther MCP clients
Add the server to your client's MCP configuration:
{
"mcpServers": {
"purelymail": {
"command": "npx",
"args": ["-y", "@amplia-labs/purelymail-mcp"],
"env": { "PURELYMAIL_API_TOKEN": "your-token" }
}
}
}Trying it for the first time? SetPURELYMAIL_READ_ONLY to true and ask for your account credit. It confirms that everything works without changing your account.
Configuration
Variable | Required | Description |
| Yes | API token from your Purelymail account settings |
| No | Set to |
Tools
Area | Read | Write | Destructive |
Users |
|
|
|
Password reset |
|
| |
App passwords |
|
| |
Routing |
|
|
|
Domains |
|
|
|
Billing |
|
Tools that can lock someone out of an account, such as modify_user, are also marked as destructive.
API notes
list_password_reset_methodsreturns the methods under a key namedusers. That name comes from the API.delete_password_reset_methodrequirestarget, even though the API spec marks it as optional, because the spec does not say what happens without it.delete_app_passwordneeds the full password, because the API cannot list app passwords.Requests are never retried automatically. After a timeout, check the current state before repeating a write.
Security
The API token grants administrative access to your whole account.delete_domain deletes a domain and all of its users. Use read-only mode unless you need to make changes, and review destructive actions before approving them.
Passwords given tocreate_user and modify_user, and those returned by create_app_password, pass through the model's context and your client's conversation history. Rotate any that are sensitive afterwards.
Development
git clone https://github.com/amplia-labs/purelymail-mcp.git
cd purelymail-mcp
npm install
npm run buildTo try a local build, use node /path/to/purelymail-mcp/dist/index.js as the command in your MCP client. Development tools require Node.js 20.19 or later.
Command | Description |
| Runs types, linting, formatting, knip, jscpd, build and tests |
| Fixes linting issues |
| Formats the code |
| Describes a change for the next release |
Tests use a fake HTTP server and never call the real API.
Releasing
Releases are automated with Changesets:
Add a changeset to any pull request that changes the package.
After it merges, the publish workflow opens a Version Packages pull request.
Merging that pull request runs all checks and publishes to npm through trusted publishing, so no npm token is stored in the repository.
Available Tools
19 toolsadd_domainAdd domainB
Adds a domain, provided it passes DNS checks. See get_ownership_code.
Inputs: domainName (required).
check_account_creditCheck account creditARead-only
Returns the current account credit as a decimal string with up to 64 digits of precision.
Inputs: no named parameters.
create_app_passwordCreate app passwordA
Creates an app password for a user and returns it. The result is a credential: show it to the user once and do not store or repeat it.
Inputs: userHandle (required), name.
create_routing_ruleCreate routing ruleB
Creates a routing rule for a domain. It must not have the same user/prefix as another rule on that domain.
Inputs: prefix (required), matchUser (required), domainName (required), targetAddresses (required), +1 more.
create_userCreate userC
Creates a new mailbox user on a domain.
Inputs: password (required), userName (required), domainName (required), recoveryEmail, +6 more.
delete_app_passwordDelete app passwordADestructive
Deletes an app password. Requires the full password value; the API has no way to list them.
Inputs: userName (required), appPassword (required).
delete_domainDelete domainADestructive
Permanently deletes a domain AND all of its dependent settings and users. Confirm with the user first, listing what will be lost.
Inputs: name (required).
delete_password_reset_methodDelete password reset methodCDestructive
Deletes one of a user's password reset methods.
Inputs: target (required), userName (required).
delete_routing_ruleDelete routing ruleCDestructive
Deletes a routing rule.
Inputs: routingRuleId (required).
delete_userDelete userADestructive
Permanently deletes a user.
Inputs: userName (required).
get_ownership_codeGet ownership codeARead-only
Gets the value of the DNS ownership proof record required before add_domain will succeed.
Inputs: no named parameters.
get_userGet userBRead-only
Retrieves a user's settings: search indexing, recovery, 2FA requirement, spam filtering and password reset methods.
Inputs: userName (required).
list_domainsList domainsARead-only
Lists domains accessible to the account, with their settings and a DNS summary (MX, SPF, DKIM, DMARC).
Inputs: includeShared.
list_password_reset_methodsList password reset methodsBRead-only
Lists a user's password reset methods. The API returns them under a key named users.
Inputs: userName (required).
list_routing_rulesList routing rulesARead-only
Lists all routing rules active under the account.
Inputs: no named parameters.
list_usersList usersBRead-only
Lists all users under the account (up to 1000).
Inputs: no named parameters.
modify_userModify userBDestructive
Changes a user's address, password or settings. Only the fields provided are changed.
Inputs: userName (required), newPassword, newUserName, enablePasswordReset, +2 more.
update_domain_settingsUpdate domain settingsA
Updates settings of an owned domain, and can trigger a DNS recheck. Only the fields provided are changed.
Inputs: name (required), recheckDns, allowAccountReset, symbolicSubaddressing.
upsert_password_reset_methodCreate or update password reset methodADestructive
Creates a password reset method, or updates an existing one when existingTarget is given. A reset method can take over the account, so make sure the target belongs to the user.
Inputs: type (required), target (required), userName (required), description, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools target clearly distinct resources and actions, making selection straightforward. Minor overlap exists because get_user already returns password reset methods that list_password_reset_methods also exposes, and modify_user versus upsert_password_reset_method requires careful distinction.
The set overwhelmingly follows a verb_noun pattern such as list_users, create_user, delete_domain, and check_account_credit. Small deviations like add_domain instead of create_domain and modify_user versus update_domain_settings keep it from being perfectly consistent.
Nineteen tools is reasonable for a full email-hosting admin surface covering users, domains, routing rules, passwords, and billing. It sits slightly on the heavy side, but each tool appears to earn its place by covering a distinct operation.
The surface covers CRUD for users, domains, routing rules, and password reset methods, plus app-password creation/deletion and account credit. Minor gaps remain: routing rules have no get or update operation, and app passwords cannot be listed, though that appears to be an API limitation.
Maintenance
Related MCP Connectors
Hosted email for AI agents: create inboxes, send, receive, and reply over MCP with scoped API keys
Manage domains, mailboxes, inbox, campaigns and deliverability from any MCP client.
Email inboxes for AI agents: read, search, send, reply, calendar invites. Hosted MCP with OAuth.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseCqualityCmaintenanceProvides AI assistants with access to PurelyMail's email management API, enabling user, domain, routing, and billing management through natural language.19101 npm14MIT
- AlicenseNot gradedqualityDmaintenanceProvides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.MIT
- AlicenseAqualityAmaintenanceMCP server that gives AI assistants your mailboxes: search and read mail, see what is new, look at attachments, sort, draft and, if allowed, send. Works through Mailbox, a self-hosted service with REST API and web UI that gives each token its own rights, folders and send limits. AI agents sort and tag mail within the same rights. Supports IMAP, POP3, JMAP, Gmail, Microsoft 365, Outlook.com.206MIT
- AlicenseBqualityBmaintenanceEnables management of LWS client accounts through MCP clients like Claude, Cursor or Codex, covering domains, DNS records and propagation checks, hosting plans, renewals and contacts via the full LWS Client API. Purchases and write operations stay off unless explicitly enabled, with read-only and sandbox modes available.2629 PyPIMIT