Skip to main content
Glama
Purelymail MCP

Purelymail MCP

by amplia-labs

Purelymail MCP

Manage your Purelymail account from any MCP client

npm version Node.js License

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.com and forward hello@example.com to 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-mcp

Other 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" }
    }
  }
}
TIP

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

PURELYMAIL_API_TOKEN

Yes

API token from your Purelymail account settings

PURELYMAIL_READ_ONLY

No

Set to true or 1 to expose only the read tools

Tools

Area

Read

Write

Destructive

Users

list_users, get_user

create_user

modify_user, delete_user

Password reset

list_password_reset_methods

upsert_password_reset_method, delete_password_reset_method

App passwords

create_app_password

delete_app_password

Routing

list_routing_rules

create_routing_rule

delete_routing_rule

Domains

list_domains, get_ownership_code

add_domain, update_domain_settings

delete_domain

Billing

check_account_credit

Tools that can lock someone out of an account, such as modify_user, are also marked as destructive.

API notes

  • list_password_reset_methods returns the methods under a key named users. That name comes from the API.

  • delete_password_reset_method requires target, even though the API spec marks it as optional, because the spec does not say what happens without it.

  • delete_app_password needs 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

WARNING

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.

IMPORTANT

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 build

To 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

npm run check

Runs types, linting, formatting, knip, jscpd, build and tests

npm run lint:fix

Fixes linting issues

npm run format

Formats the code

npm run changeset

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:

  1. Add a changeset to any pull request that changes the package.

  2. After it merges, the publish workflow opens a Version Packages pull request.

  3. 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 tools
add_domainAdd domainB

Adds a domain, provided it passes DNS checks. See get_ownership_code.

Inputs: domainName (required).

check_account_creditCheck account creditA
Read-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 passwordA
Destructive

Deletes an app password. Requires the full password value; the API has no way to list them.

Inputs: userName (required), appPassword (required).

delete_domainDelete domainA
Destructive

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 methodC
Destructive

Deletes one of a user's password reset methods.

Inputs: target (required), userName (required).

delete_routing_ruleDelete routing ruleC
Destructive

Deletes a routing rule.

Inputs: routingRuleId (required).

delete_userDelete userA
Destructive

Permanently deletes a user.

Inputs: userName (required).

get_ownership_codeGet ownership codeA
Read-only

Gets the value of the DNS ownership proof record required before add_domain will succeed.

Inputs: no named parameters.

get_userGet userB
Read-only

Retrieves a user's settings: search indexing, recovery, 2FA requirement, spam filtering and password reset methods.

Inputs: userName (required).

list_domainsList domainsA
Read-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 methodsB
Read-only

Lists a user's password reset methods. The API returns them under a key named users.

Inputs: userName (required).

list_routing_rulesList routing rulesA
Read-only

Lists all routing rules active under the account.

Inputs: no named parameters.

list_usersList usersB
Read-only

Lists all users under the account (up to 1000).

Inputs: no named parameters.

modify_userModify userB
Destructive

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 methodA
Destructive

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

    B3.3/5.0

    Scored across 19 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      Provides AI assistants with access to PurelyMail's email management API, enabling user, domain, routing, and billing management through natural language.
      19
      101 npm
      14
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a secure MCP gateway for AI agents to access APIs without exposing raw credentials, with scoped access, audit logging, and OAuth support.
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      MCP 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.
      20
      6
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      26
      29 PyPI
      MIT