Elastic Email MCP by usefulapi

Read stats and contacts; send transactional email and manage list membership in Elastic Email.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
90%
Naming quality
75%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (5)

  • LOWTool 'elasticemail_get_campaign_statistics' name length outside 3-30 rangein elasticemail_get_campaign_statistics
  • LOWTool 'elasticemail_get_transaction_events' name length outside 3-30 rangein elasticemail_get_transaction_events
  • LOWTool 'elasticemail_get_transaction_status' name length outside 3-30 rangein elasticemail_get_transaction_status
  • LOWTool 'elasticemail_add_contacts_to_list' name length outside 3-30 rangein elasticemail_add_contacts_to_list
  • LOWTool 'elasticemail_remove_contacts_from_list' name length outside 3-30 rangein elasticemail_remove_contacts_from_list

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~3,395Tokens (tool definitions)
~1.0 KBTypical response size
Significant attention impact (2.65% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "elastic-email": {
      "url": "https://elastic-email.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://elastic-email.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (21)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢elasticemail_get_account

Get the account behind the API key: identity, profile, daily send limit, email credits and feature flags. Good first call to check the key works. Elastic Email API: GET /v4/account.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_statistics(from, to)

Get summary sending counts for a date range: recipients, delivered, bounced, opened, clicked, unsubscribed and complaints. Elastic Email API: GET /v4/statistics.

Input Schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$",
      "description": "Start of the range (YYYY-MM-DDThh:mm:ss)."
    },
    "to": {
      "description": "End of the range (YYYY-MM-DDThh:mm:ss). Defaults to now.",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
    }
  },
  "required": [
    "from"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_campaigns(search, limit, offset)

List email campaigns, optionally filtered by a name fragment. Shows each campaign's name, status and recipients. Elastic Email API: GET /v4/campaigns.

Input Schema

{
  "type": "object",
  "properties": {
    "search": {
      "description": "Text that the campaign name contains.",
      "type": "string"
    },
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_campaign(name)

Get one campaign by name: its content, status, recipient lists and options. Elastic Email API: GET /v4/campaigns/{name}.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Campaign name (from elasticemail_list_campaigns)."
    }
  },
  "required": [
    "name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_campaign_statistics(name)

Get sending counts for one campaign: recipients, delivered, bounced, opened, clicked and unsubscribed. Elastic Email API: GET /v4/statistics/campaigns/{name}.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Campaign name (from elasticemail_list_campaigns)."
    }
  },
  "required": [
    "name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡elasticemail_pause_campaign(name)

Pause a running campaign by name. Pausing stops further sends from that campaign; it can be resumed in Elastic Email. Elastic Email API: PUT /v4/campaigns/{name}/pause.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Campaign name to pause."
    }
  },
  "required": [
    "name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_contacts(limit, offset)

List contacts in the account with their status (Active, Bounced, Unsubscribed, Abuse and more), names and custom fields. Elastic Email API: GET /v4/contacts.

Input Schema

{
  "type": "object",
  "properties": {
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_contact(email)

Get one contact by email address: status, consent, source, dates and activity. Elastic Email API: GET /v4/contacts/{email}.

Input Schema

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "minLength": 3,
      "description": "The contact's email address."
    }
  },
  "required": [
    "email"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_lists(limit, offset)

List the contact lists in the account, with their names and creation dates. Elastic Email API: GET /v4/lists.

Input Schema

{
  "type": "object",
  "properties": {
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_list_contacts(list_name, limit, offset)

List the contacts that belong to one contact list. Elastic Email API: GET /v4/lists/{listname}/contacts.

Input Schema

{
  "type": "object",
  "properties": {
    "list_name": {
      "type": "string",
      "minLength": 1,
      "description": "List name (from elasticemail_list_lists)."
    },
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "list_name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_suppressions(limit, offset)

List suppressed addresses: bounces, complaints and unsubscribes. The account does not send to these. Elastic Email API: GET /v4/suppressions.

Input Schema

{
  "type": "object",
  "properties": {
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_templates(scope, limit, offset)

List email templates in the Personal or Global scope. Use a template name with elasticemail_get_template. Elastic Email API: GET /v4/templates.

Input Schema

{
  "type": "object",
  "properties": {
    "scope": {
      "default": "Personal",
      "description": "Template scope to list.",
      "type": "string",
      "enum": [
        "Personal",
        "Global"
      ]
    },
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_template(name)

Get one email template by name, with its subject and body. Elastic Email API: GET /v4/templates/{name}.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Template name (from elasticemail_list_templates)."
    }
  },
  "required": [
    "name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_domains

List the sending domains with their verification state (SPF, DKIM, DMARC) and tracking settings. Check here before sending from a new address. Elastic Email API: GET /v4/domains.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_list_events(from, to, order, limit, offset)

List recent delivery events for the account in a date range: sent, delivered, opened, clicked, bounced and so on. Elastic Email API: GET /v4/events.

Input Schema

{
  "type": "object",
  "properties": {
    "from": {
      "description": "Start of the range (YYYY-MM-DDThh:mm:ss).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
    },
    "to": {
      "description": "End of the range (YYYY-MM-DDThh:mm:ss).",
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
    },
    "order": {
      "default": "DateDescending",
      "description": "Sort order by date.",
      "type": "string",
      "enum": [
        "DateDescending",
        "DateAscending"
      ]
    },
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_transaction_events(transaction_id, limit, offset)

Get the delivery events for one send, by its transaction id (from a send or a campaign). Elastic Email API: GET /v4/events/{transactionid}.

Input Schema

{
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string",
      "minLength": 1,
      "description": "Transaction id of the send."
    },
    "limit": {
      "description": "Maximum number of items to return (1-1000).",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "offset": {
      "description": "Number of items to skip (for paging).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "transaction_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢elasticemail_get_transaction_status(transaction_id, show_failed, show_errors)

Get the status of one send by transaction id: recipient count, sent, delivered, failed and pending, with error text for failures. Elastic Email API: GET /v4/emails/{transactionid}/status.

Input Schema

{
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string",
      "minLength": 1,
      "description": "Transaction id returned by elasticemail_send_email."
    },
    "show_failed": {
      "description": "Include the addresses that failed.",
      "type": "boolean"
    },
    "show_errors": {
      "description": "Include the error text for bounced addresses.",
      "type": "boolean"
    }
  },
  "required": [
    "transaction_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴elasticemail_send_email(from, to, subject, html, text, ...)

Send ONE transactional email (for example a receipt or a password reset) to up to 50 recipients. It is sent for real and cannot be unsent. Not for bulk or marketing mail: use campaigns in Elastic Email for that. The From domain must be verified. Give html, text or both. Elastic Email API: POST /v4/emails/transactional.

Input Schema

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "minLength": 3,
      "description": "Sender, for example 'Team <[email protected]>'. Its domain must be verified."
    },
    "to": {
      "minItems": 1,
      "maxItems": 50,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3
      },
      "description": "Recipient email addresses (up to 50)."
    },
    "subject": {
      "type": "string",
      "minLength": 1,
      "description": "Subject line."
    },
    "html": {
      "description": "HTML body.",
      "type": "string"
    },
    "text": {
      "description": "Plain-text body.",
      "type": "string"
    },
    "reply_to": {
      "description": "Reply-to address.",
      "type": "string"
    },
    "idempotency_key": {
      "description": "Same key on a retry of the same send: the API does not send it twice.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "from",
    "to",
    "subject"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡elasticemail_add_contacts(contacts)

Add contacts to the account, or update them when the email already exists. Only add people who gave consent to receive your email (terms 2.3). Elastic Email API: POST /v4/contacts.

Input Schema

{
  "type": "object",
  "properties": {
    "contacts": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "minLength": 3,
            "description": "Contact email address."
          },
          "first_name": {
            "description": "First name.",
            "type": "string"
          },
          "last_name": {
            "description": "Last name.",
            "type": "string"
          }
        },
        "required": [
          "email"
        ]
      },
      "description": "Contacts to add or update."
    }
  },
  "required": [
    "contacts"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡elasticemail_add_contacts_to_list(list_name, emails)

Add existing contacts (by email address) to one contact list. Elastic Email API: POST /v4/lists/{name}/contacts.

Input Schema

{
  "type": "object",
  "properties": {
    "list_name": {
      "type": "string",
      "minLength": 1,
      "description": "List name (from elasticemail_list_lists)."
    },
    "emails": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3
      },
      "description": "Email addresses of the contacts to add."
    }
  },
  "required": [
    "list_name",
    "emails"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴elasticemail_remove_contacts_from_list(list_name, emails)

Remove contacts from one contact list. The contacts stay in the account. Elastic Email API: POST /v4/lists/{name}/contacts/remove.

Input Schema

{
  "type": "object",
  "properties": {
    "list_name": {
      "type": "string",
      "minLength": 1,
      "description": "List name (from elasticemail_list_lists)."
    },
    "emails": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 3
      },
      "description": "Email addresses of the contacts to remove from the list."
    }
  },
  "required": [
    "list_name",
    "emails"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded21 tools