Elastic Email MCP server for AI agents

Live

OAUTH 2.1

EMAIL ACTIVITY

Marketing

Elastic Email MCP gives your agent read access to sending activity in Elastic Email: list sent emails and delivery events, view a sent email, and read templates, domains, and the suppression list.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Elastic Email MCP
agent · Acme Q3
Run
List the emails we sent yesterday.
S
elasticemailmcp_get_sent_emails
133ms
Email activity agent
12 emails were sent yesterday between 08:00 and 17:00 UTC. All 12 have delivery events recorded.
Sources: Elastic Email sent emails, 12 results
elasticemailmcp
12 emails
18:29
Message Claude...

Tools your email activity agent reaches for on Elastic Email MCP, scoped per user.

CALL ANY TOOL
11 tools for email activity in Elastic Email: list sent emails and delivery events, view sent messages, read templates and domains, and check suppressions.
elasticemailmcp_fetch_template
Fetch template
Use to retrieve the full definition of a known template; do not use it to list or create templates. Returns the template definition and has no side effects. If the name is empty or absent, use FetchTemplates to obtain an exact name, then retry.
Parameters
Name
Type
Required
Description
name
string
Required
Exact name of the template. Use FetchTemplates to list the names on this account.
elasticemailmcp_fetch_templates
Fetch templates
elasticemailmcp_get_domain
Get domain
elasticemailmcp_get_domains
Get domains
elasticemailmcp_get_email_event_history
Get email event history
elasticemailmcp_get_email_events
Get email events
elasticemailmcp_get_sent_emails
Get sent emails
elasticemailmcp_get_sent_emails_by_transaction_id
Get sent emails by transaction id
elasticemailmcp_get_suppression_list
List get suppression
elasticemailmcp_is_ready
Is ready
elasticemailmcp_view_email
View email
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Elastic Email tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["elasticemailmcp"], toolNames: [
    "elasticemailmcp_get_sent_emails",
    "elasticemailmcp_get_email_events",
    "elasticemailmcp_get_suppression_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List the emails we sent yesterday, show their delivery events, and check the suppression list" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["elasticemailmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List the emails we sent yesterday, show their delivery events, and check the suppression list" }],
  tools,
});

// Execute the tool call with the user's vaulted Elastic Email OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["elasticemailmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List the emails we sent yesterday, show their delivery events, and check the suppression list" }],
  tools,
});

// Tool call runs with the user's vaulted Elastic Email OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["elasticemailmcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "email_activity_agent",
  model: "gemini-2.5-pro",
  instruction: "Elastic Email tools scoped to this user",
  tools,
});

await agent.run("List the emails we sent yesterday, show their delivery events, and check the suppression list");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Elastic Email MCP tool. Click to copy, paste into your agent, done.
Sent emails
Copy the prompt
Copied
List the emails sent in the last 24 hours.
Copy the prompt
Copied
Show the send events for this transaction ID.
Copy the prompt
Copied
View the rendered content of this sent email.
Events
Copy the prompt
Copied
List delivery and engagement events for the account this week.
Copy the prompt
Copied
Show the retained event history for this sent message.
Copy the prompt
Copied
Which emails have delivery events but no opens?
Setup and suppressions
Copy the prompt
Copied
List the domains configured for the account.
Copy the prompt
Copied
Inspect the sending domain example.com.
Copy the prompt
Copied
List existing contact suppressions.
SEE HOW AUTH WORKS
Each user signs in to Elastic Email once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Elastic Email MCP
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Elastic Email MCP
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Elastic Email MCP
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Elastic Email MCP
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other marketing and communication connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Test other agents
See the same per-user auth pattern across other marketing and communication connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Elastic Email OAuth token looks fine in a demo. In production every email lookup looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Elastic Email today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Elastic Email as the user or through a shared service account?
As the user. Each user signs in to Elastic Email once, and Scalekit stores and refreshes their tokens. Audit logs attribute every email lookup to that user, not a shared service account.
Where is the Elastic Email OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Elastic Email?
All 11 tools are read-only, so the agent cannot send email or change anything in Elastic Email. You can still narrow what it sees: filter by tool name in listScopedTools, for example the template and domain tools without elasticemailmcp_get_suppression_list. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Elastic Email access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent check domains and suppressions in Elastic Email?
Yes. elasticemailmcp_get_domains lists the domains configured for the account, elasticemailmcp_get_domain inspects one by name, and elasticemailmcp_get_suppression_list lists existing contact suppressions.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""elasticemailmcp"": {
""url"": ""https://mcp.scalekit.com/elasticemailmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.elasticemailmcp]
url = ""https://mcp.scalekit.com/elasticemailmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""elasticemailmcp"": {
""url"": ""https://mcp.scalekit.com/elasticemailmcp"",
""type"": ""http""
}
}
}