SmartLead MCP Server is a powerful integration tool that connects SmartLead's cold email automation platform with AI coding assistants like Claude, Cursor, and VS Code. It provides complete access to SmartLead's API toolkit through a user-friendly interface, enabling you to manage email campaigns, leads, and analytics directly from your AI tools.
Use the interactive NPX installer:
# Interactive installer
npx smartlead-mcp-by-leadmagic install
# Direct usage with API key
SMARTLEAD_API_KEY=your-key npx smartlead-mcp-by-leadmagic
Install the package globally on your system:
npm install -g smartlead-mcp-by-leadmagic
smartlead-mcp-by-leadmagic install
You'll need your SmartLead API key, which you can get from app.smartlead.ai by navigating to Settings → API Keys.
{
"mcpServers": {
"smartlead": {
"command": "npx",
"args": ["smartlead-mcp-by-leadmagic"],
"env": {
"SMARTLEAD_API_KEY": "your_api_key",
"SMARTLEAD_ADVANCED_TOOLS": "true"
}
}
}
}
{
"cline.mcpServers": {
"smartlead": {
"command": "npx",
"args": ["smartlead-mcp-by-leadmagic"],
"env": { "SMARTLEAD_API_KEY": "your_api_key" }
}
}
}
The MCP server works with multiple AI coding assistants:
All tools support auto-configuration during installation.
The SmartLead MCP Server provides access to over 116 API tools across various categories:
Issue | Solution |
---|---|
API Key Error | Verify key at app.smartlead.ai |
Tools Missing | Restart your AI client completely |
Connection Failed | Check internet & firewall settings |
Slow Performance | Use global install instead of npx |
# Check version
npx smartlead-mcp-by-leadmagic --version
# Update
npm update -g smartlead-mcp-by-leadmagic
# Reinstall
npm uninstall -g smartlead-mcp-by-leadmagic
npm install -g smartlead-mcp-by-leadmagic
For additional support:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "smartlead" '{"command":"npx","args":["smartlead-mcp-by-leadmagic"],"env":{"SMARTLEAD_API_KEY":"your_api_key"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"smartlead": {
"command": "npx",
"args": [
"smartlead-mcp-by-leadmagic"
],
"env": {
"SMARTLEAD_API_KEY": "your_api_key"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"smartlead": {
"command": "npx",
"args": [
"smartlead-mcp-by-leadmagic"
],
"env": {
"SMARTLEAD_API_KEY": "your_api_key"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect