mcpField
E
email

email

Local
wraps.devCommunication1Updated 5d ago

About email

@wraps.dev/mcp is an Amazon SES server for AI agents that need to send email or inspect account and delivery status. It runs locally over stdio, keeps AWS credentials on the machine, and adds Wraps history and event tools when configured.

Key features

  1. 01Send email through Amazon SES
  2. 02Check domain verification and DKIM
  3. 03Inspect suppression lists and sandbox status
  4. 04View recent sends and delivery events
  5. 05Guard sending with recipient restrictions
  6. 06Optional enforced-mode approvals

Use cases

  1. 01Send transactional email from an AI workflow
  2. 02Check whether an SES domain is ready to send
  3. 03Review suppression entries before a send
  4. 04Track delivery, bounce, complaint, open, or click events

MCP support

The MCP server exposes tools for sending email and checking SES configuration, suppressions, and status. With the Wraps event pipeline, it also exposes send history and delivery events.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"dev-wraps-email": {
"command": "npx",
"args": [
"-y",
"@wraps.dev/mcp"
],
"env": {
"AWS_REGION": "<AWS_REGION>",
"AWS_PROFILE": "<AWS_PROFILE>",
"WRAPS_WRITE_ENABLED": "<WRAPS_WRITE_ENABLED>",
"WRAPS_FROM_EMAIL": "<WRAPS_FROM_EMAIL>",
"WRAPS_ALLOWED_RECIPIENTS": "<WRAPS_ALLOWED_RECIPIENTS>",
"WRAPS_ALLOWED_RECIPIENT_DOMAINS": "<WRAPS_ALLOWED_RECIPIENT_DOMAINS>",
"WRAPS_HISTORY_TABLE_NAME": "<WRAPS_HISTORY_TABLE_NAME>"
}
}
}
}
Run commandnpx -y @wraps.dev/mcp
Environment variables to set
AWS_REGIONRegion your Wraps stack is deployed in. Optional only if your active AWS profile supplies one — SES identities are per-region.
AWS_PROFILEAWS profile to use. Credentials are read locally and never leave the machine.
WRAPS_WRITE_ENABLEDSet to true to enable the send_email tool. Read-only by default.
WRAPS_FROM_EMAILDefault from address for send_email. Must be a domain verified in your SES account.
WRAPS_ALLOWED_RECIPIENTSComma-separated addresses the agent may send to. Restricts send_email when write mode is on.
WRAPS_ALLOWED_RECIPIENT_DOMAINSComma-separated domains the agent may send to. Matching is exact; list subdomains explicitly.
WRAPS_HISTORY_TABLE_NAMEDynamoDB table holding email history. Defaults to wraps-email-history.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@wraps.dev/mcp0.9.0

Tools

7

Saved tool list · updated 4d ago

ParameterTypeRequiredDescription
toanyYesRecipient address, or an array of up to 1000 addresses.
fromstringNoSender address. Must be a verified SES identity in this account. Defaults to WRAPS_FROM_EMAIL.
htmlstringNoHTML body. Provide `html`, `text`, or both; at least one is required.
textstringNoPlain-text body. Provide `html`, `text`, or both; at least one is required.
subjectstringYesSubject line.

Details

From the project README

@wraps.dev/mcp

MCP server for Amazon SES. Lets AI agents send email from your own AWS account, check domain verification and DKIM, look up the suppression list, and see whether the account is still in the SES sandbox.

Works with any SES account. Wraps adds send history and delivery events on top.

Runs locally via stdio. Your AWS credentials never leave your machine.

Prerequisites

  • AWS credentials configured in your environment (a profile, SSO, or environment variables)
  • An SES account in the region you point it at
  • For list_recent_sends and get_email_event_log only: the Wraps event pipeline, deployed with npx @wraps.dev/cli email init

Tools

ToolDescriptionNeeds Wraps?Write?
send_emailSend a transactional email via your SES accountNoYes — requires WRAPS_WRITE_ENABLED=true
verify_domain_statusCheck verification and DKIM status of a sending domainNoNo
list_suppressionsList addresses on your SES suppression list (paginated, with an explicit truncation notice), or check one address exactly with emailNoNo
get_setup_statusCheck whether the account is in the SES sandbox, and get the next step toward a first sendNoNo
estimate_costEstimate monthly Wraps + AWS cost for a send volume, including which SES pricing plan the account is on. No AWS credentials neededNoNo
list_recent_sendsList recent sends from your email historyYesNo
get_email_event_logGet the full delivery event log for a message (Send, Delivery, Bounce, Complaint, Open, Click)YesNo
check_send_statusPoll the outcome of a pending_approval send by approvalId (enforced mode only)YesNo

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "wraps": {
      "command": "npx",
      "args": ["-y", "@wraps.dev/mcp"],
      "env": {
        "AWS_REGION": "us-east-1",
        "AWS_PROFILE": "your-aws-profile"
      }
    }
  }
}
Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "wraps": {
      "command": "npx",
      "args": ["-y", "@wraps.dev/mcp"],
      "env": {
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

Set AWS_REGION to the region your Wraps stack is deployed in — SES identities are per-region, and a domain verified in another region reads as "not found". Claude Code inherits your shell's AWS environment, so you can drop the env block entirely if AWS_REGION (or a region in your active AWS profile) is already set there; the server fails at startup if neither supplies one.

Configuration

All configuration is via environment variables.

VariableRequiredDefaultDescription
AWS_REGIONYes*—AWS region where your Wraps stack is deployed. *Required unless your active AWS profile (~/.aws/config) supplies a region — the server resolves AWS_REGION, then AWS_DEFAULT_REGION, then the profile, and errors at startup if none of them do.
WRAPS_HISTORY_TABLE_NAMENowraps-email-historyDynamoDB table name for email history
WRAPS_ACCOUNT_IDNoauto-detected via STSYour AWS account ID (skip STS call if set)
WRAPS_WRITE_ENABLEDNofalseSet to true to enable send_email
WRAPS_FROM_EMAILNo—Default from address for send_email

Write Mode

send_email is disabled by default. Set WRAPS_WRITE_ENABLED=true to enable it. The from address must be a domain verified in your SES account.

{
  "mcpServers": {
    "wraps": {
      "command": "npx",
      "args": ["-y", "@wraps.dev/mcp"],
      "env": {
        "AWS_REGION": "us-east-1",
        "WRAPS_WRITE_ENABLED": "true",
        "WRAPS_FROM_EMAIL": "[email protected]"
      }
    }
  }
}

Send guardrails

When write mode is enabled, the send_email tool can reach any SES-verified address by default. Use these env vars to restrict the agent's sending scope:

VariableDefaultDescription
WRAPS_ALLOWED_RECIPIENTS— (no restriction)Comma-separated exact addresses the agent may send to. If set, any address not in this list (or WRAPS_ALLOWED_RECIPIENT_DOMAINS) is rejected.
WRAPS_ALLOWED_RECIPIENT_DOMAINS— (no restriction)Comma-separated domains (e.g. company.com,partner.org) the agent may send to. Combined with WRAPS_ALLOWED_RECIPIENTS; a recipient is allowed if it matches either list. Matching is exact: example.com allows [email protected] but NOT subdomains like [email protected] — list each subdomain explicitly.
WRAPS_MAX_RECIPIENTS50Maximum number of recipients per send_email call.
WRAPS_ALLOW_FROM_OVERRIDEfalseSet to true to let the agent supply a from address that differs from WRAPS_FROM_EMAIL. When false (default), the caller-supplied from is rejected if it does not match the configured address.

Note: Running with WRAPS_WRITE_ENABLED=true and no allowlist gives the agent unrestricted send capability to any address in your SES account.

Asking for missing input (elicitation)

If your MCP client supports elicitation, send_email asks you for input it is missing instead of failing. It never asks you to confirm an ordinary send, and it asks only after the write, recipient-count and allowlist checks above have passed.

  • No sender. If the call has no from and WRAPS_FROM_EMAIL is not set, the client prompts for the sender address.
  • SES sandbox. If SES rejects the recipient because the account is in the sandbox, the client offers to send the message to the AWS mailbox simulator ([email protected]) instead, to prove sending works. This happens once, and the simulator address must pass your recipient allowlist. The result says the message went to the simulator and not to the original recipient.

If you decline or cancel, or the client does not support elicitation, you get the same error as before. No setting is needed. Enforced mode does not use elicitation; its approvals stay with the operator.

Enforced mode (agent enforcer)

For agents provisioned via wraps email agent create, the MCP server runs in enforced mode. The agent's AWS credential can only invoke a customer-side enforcer Lambda — never SES directly. All policy (kill-switch, recipient allowlist, hourly/daily caps) is decided by that Lambda, so the local guardrails above are skipped.

VariableRequiredDescription
WRAPS_AGENT_IDYes (for enforced mode)The agent's ID. Enables enforced mode when set together with the enforcer function.
WRAPS_AGENT_ENFORCER_ARNYes (for enforced mode)Qualified per-agent alias ARN of the customer's wraps-agent-enforcer Lambda (arn:aws:lambda:<region>:<acct>:function:wraps-agent-enforcer:agent-<agentId>). A bare function name or unqualified ARN invokes $LATEST, which the enforcer treats as a platform caller and blocks agent sends.

When both are set, send_email invokes the enforcer instead of SES and returns a structured disposition rather than an error for policy outcomes:

  • sent — delivered, with messageId.
  • pending_approval — an operator must approve; poll check_send_status with the returned approvalId.
  • blocked — refused by policy (kill-switch, allowlist, or caps), with a reason.

Only transport or configuration failures are returned as errors. The check_send_status tool is registered only in enforced mode.

Enforced mode supports a single recipient per send. Pass one address as a string, or a one-element array; a to array with more than one recipient is rejected as an error (send one email per recipient). Note that WRAPS_ALLOWED_RECIPIENTS, WRAPS_ALLOWED_RECIPIENT_DOMAINS, WRAPS_MAX_RECIPIENTS, and WRAPS_ALLOW_FROM_OVERRIDE do not apply in enforced mode — recipient and sender policy is enforced entirely by the Lambda.

Replies and threading

Enforced-mode send_email accepts three optional fields for conversational sends — an SDR sequence, a scheduling follow-up, anything where a human replies:

FieldPurpose
replyToA single address where a human's reply should land. Without it, replies reach the agent's own mailbox — right for support@, wrong when a person should pick the conversation up.
inReplyToMessage-ID of the message being replied to, e.g. <[email protected]>.
referencesSpace-separated Message-ID chain of the conversation so far. Set it alongside inReplyTo so a follow-up threads instead of arriving as an orphan.

replyTo does not loosen sender pinning: from is still forced to the agent's own verified identity, and pointing replyTo at a teammate is the intended use. The enforcer rejects a replyTo carrying more than one address, and rejects inReplyTo/references containing newlines or non-printable characters — both come back as a blocked disposition with a reason, and neither consumes a rate-limit slot.

Requires an enforcer Lambda built from @wraps/core 2026-08-28 or later; against an older enforcer the fields are ignored rather than erroring.

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.