Elastic Email MCP
Elastic Email MCP Server is a .NET SDK tool for managing campaigns, contacts, and sending bulk or transactional emails via Elastic Email API. It offers features like campaign creation, contact list management, template usage, and real-time email statistics.
How to Install and Use Elastic Email MCP
If you want to use Elastic Email MCP to manage your email campaigns and contacts easily, this guide will help you install and start it quickly. Follow each step carefully to get your MCP server running and connect it with Visual Studio Code for the best experience.
Requirements for Elastic Email MCP
Before installing, you need a few things ready. The MCP needs the .NET SDK version 10 or higher to work. Also, it must connect to the Elastic Email API, so make sure port 5001 is open on your computer for HTTP traffic.
Installing Elastic Email MCP
Now, to install the MCP server, follow these simple instructions:
-
Download or clone the MCP server from its GitHub repository:
https://github.com/ElasticEmail/elasticemail-mcp-server -
Open the project folder in your favorite IDE (like Visual Studio or Visual Studio Code).
-
Build the project ensuring you have .NET SDK 10 or higher installed.
-
Run the project. It will start the server on your local machine at port 5001.
Keep in mind, the server must be running to communicate with the Elastic Email API.
Connecting Elastic Email MCP with Visual Studio Code
Once MCP server is up, you can make it smarter by using the VS Code Copilot integration. This allows you to chat with the MCP and use its tools directly.
Follow these steps to set it up:
-
Open VS Code and go to the Chat window.
-
Change the mode to Agent.
-
In your MCP folder, create a file named
settings.json. -
Add your MCP server configuration inside, using this example format:
"my-server-unique-number": {
"url": "http://localhost:5001/",
"headers": {
"X-Auth-Token": "<api_key>"
}
}
Replace <api_key> with your actual Elastic Email API key.
-
Open the "Select tools..." window in VS Code by clicking the screwdriver and wrench icon.
-
Choose your MCP server and make sure all tools are selected.
-
Click "Start" to activate the connection.
Basic Tools and How to Use Them
Elastic Email MCP includes many useful tools to manage your campaigns, segments, templates, emails, and contacts.
For example, to create a new campaign, use the tool:
CampaignManagement.CreateCampaign
To send emails in bulk, use:
EmailSending.SendBulkEmails
And to fetch your contacts list, use:
ContactsManagement.FetchContacts
These tools make your email marketing fast and organized without needing complex commands.
Following this guide will get your Elastic Email MCP installed and running quickly. You can then use it with VS Code to manage everything easily from one place.