elasticemail
Elastic Email MCP Server delivers full-scale email capabilities to the next generation of AI agents and MCP-compatible environments. This server speaks the same protocol as your favourite AI tools, giving them super-smooth access to all your email operations.
claude mcp add --transport stdio elasticemail-elasticemail-mcp-server dotnet run --project ElasticEmail.MCP.Server/ElasticEmail.MCP.Server.csproj \ --env PORT="5001" \ --env ELASTICEMAIL_API_KEY="your_api_key_here"
How to use
This MCP server provides a bridge to the Elastic Email API. It exposes a set of tools under categories such as HealthCheck, CampaignManagement, SegmentsManagement, TemplateManagement, EmailSending, and ContactsManagement. These tools allow you to verify API availability, manage campaigns and templates, create and manage contact lists and segments, and send both bulk and transactional emails. To use them, ensure your agent configuration points to http://localhost:5001/ with the correct X-Auth-Token header containing your API key. In VS Code, open the agent settings, select the Elastic Email MCP server from the list of tools, and start the agent to begin issuing tool calls against the Elastic Email API.
Example agent configuration snippet: {"my-server-unique-number": { "url": "http://localhost:5001/", "headers": { "X-Auth-Token": <api_key> } }}
How to install
Prerequisites:
- .NET 10 SDK or higher installed on your machine
- Access to the Elastic Email API and a valid API key
- Open port 5001 for HTTP traffic
Installation steps:
- Clone or download the MCP server repository.
- Ensure you have a suitable directory structure and the MCP Server project file ElasticEmail.MCP.Server.csproj is present at ElasticEmail.MCP.Server/ElasticEmail.MCP.Server.csproj.
- Set up your environment variables. Create a file or export ELASTICEMAIL_API_KEY with your Elastic Email API key and ensure port 5001 is open.
- Build or run the server using the command: dotnet run --project ElasticEmail.MCP.Server/ElasticEmail.MCP.Server.csproj
- Verify the server is listening on port 5001 (HTTP) and that you can reach http://localhost:5001/.
Notes:
- You might want to configure a reverse proxy or TLS termination in production.
- Ensure your Elastic Email account has the necessary permissions for the requested operations (campaigns, templates, contacts, etc.).
Additional notes
Common issues and tips:
- If the server fails to start, verify that the .NET 10 SDK is installed and that the Elastic Email API key is correctly provided via ELASTICEMAIL_API_KEY.
- Ensure port 5001 is not blocked by firewall or security groups.
- The agent example uses an X-Auth-Token header; adapt its value to your actual API key.
- Some operations may require additional permissions on the Elastic Email account (e.g., creating campaigns or uploading contacts).
- If you update templates or campaigns, you may need to refresh credentials or re-authenticate in the agent interface.
Related MCP Servers
mcp
Official MCP Servers for AWS
web-eval-agent
An MCP server that autonomously evaluates web applications.
remote
Remote MCP Server that securely connects Enterprise context with your LLM, IDE, or agent platform of choice.
cli
Fine-grained control over model context protocol (MCP) clients, servers, and tools. Context is God.
furi
CLI & API for MCP management
ContextPods
Model Context Protocol management suite/factory. An MCP that can generate and manage other local MCPs in multiple languages. Uses the official SDKs for code gen.