Smartlead MCP
Smartlead MCP Server simplifies Smartlead email marketing with campaign management, analytics, and integration features for AI and automation tools.
How to Install and Use Smartlead MCP
Smartlead MCP is a simple and powerful tool that helps you manage email marketing campaigns easily. It connects with Smartlead's system and lets you automate tasks using AI or other software like n8n. Here’s how you can install and start using Smartlead MCP step by step.
Installing Smartlead MCP
Before you can use the tool, you need to install it on your computer. The easiest way is using npm, a tool that helps manage software packages. You can also run Smartlead MCP without installing by using npx.
Here’s how to install it:
npm install [email protected]
If you don't want to install it, simply run it using npx like this:
npx [email protected] start
This command downloads and runs the Smartlead MCP server right away.
Starting the Server with Claude or n8n
Once Smartlead MCP is installed or ready to run, you need to start the server. This server is what lets your AI assistant or automation tool connect to Smartlead.
- To use it with Claude, run:
npx smartlead-mcp-server start
- If you want to use it with n8n (a popular workflow automation tool), run:
npx smartlead-mcp-server sse
The first time you run the server, it will ask for your Smartlead API key. Don’t worry, you don’t need a license key to use all features.
Using Smartlead MCP with Claude
If you want to connect Smartlead MCP to Claude (an AI assistant), you’ll need to add a small configuration. This tells Claude how to run Smartlead MCP.
Here’s an example JSON configuration:
{
"mcpServers": {
"smartlead": {
"command": "npx",
"args": ["smartlead-mcp-server", "start"],
"env": {
"SMARTLEAD_API_KEY": "your_api_key_here"
}
}
}
}
Replace "your_api_key_here" with your actual Smartlead API key.
Using Smartlead MCP with n8n
To connect Smartlead MCP to n8n, follow these steps:
- Start the Smartlead MCP server in SSE mode:
npx smartlead-mcp-server sse
- Then, in n8n, add an MCP Client node with these settings:
- SSE URL:
http://localhost:3000/sse - Message URL:
http://localhost:3000/message
This setup lets n8n talk to the Smartlead MCP server and automate your campaigns.
Managing Your Campaigns and Downloads
Smartlead MCP allows you to download important campaign data and track your downloads easily. For example, to download campaign data, you can use the following request:
{
"campaign_id": 12345,
"download_type": "analytics",
"format": "json",
"user_id": "optional-user-identifier"
}
You can choose to download analytics, leads, sequences, or full exports in JSON or CSV formats.
To check your download statistics, use this format:
{
"time_period": "all",
"group_by": "type"
}
All your downloads are saved in a log file located at ~/.smartlead-mcp/downloads.json for easy review.
By following these simple steps, you can quickly install and start using Smartlead MCP to manage your email marketing campaigns efficiently with AI or automation tools. If you ever need help, run npx smartlead-mcp-server config to set up your credentials.