lemlist MCP server for AI agents
Run lemlist outreach: list, start and pause campaigns, add and manage leads, read stats, activities and conversations, send email and manage unsubscribes.
Runs with your users' own lemlist accounts. Credentials stay on prompt-tm.com.
20 tools · 0 triggers
- Auth
- API key
- Tools
- 20
- Triggers
- 0
- Category
- Email, CRM
lemlist's MCP server and this toolkit
lemlist runs its own MCP server at https://app.lemlist.com/mcp. The AI client signs in with OAuth and works in the lemlist team you sign in to.
What Prompt TM adds
This toolkit is for an agent that works in lemlist teams your users connect themselves, each with their own API key. It calls lemlist's REST API on api.lemlist.com, not lemlist's MCP server, and serves the tools below at one MCP URL, next to any other toolkit you add.
- Each user connects a lemlist API key through a connect link on prompt-tm.com. Prompt TM checks the key with lemlist, stores it encrypted and adds it to each call. The agent never sees it.
- The
user_idin the MCP URL picks whose lemlist team a call uses. - Starting a campaign, adding or resuming a lead, sending an email, updating or removing a lead and unsubscribing an address can reach real people. Those tools count as destructive, so you can hold them until a person approves.
- Read tools cover the team, campaigns with their stats, leads, activities, conversations and senders.
Tools and triggers
Get team
LEMLIST_GET_TEAM
Returns the lemlist team the API key belongs to, with its members (user ID, name, email, role).read-only
List campaigns
LEMLIST_GET_MANY_CAMPAIGNS
Lists the team's campaigns with their ID, name and status, up to 100 per page. Filter by status, creator or folder.read-only
Get campaign
LEMLIST_GET_CAMPAIGN
Returns one campaign: name, status, folder, sequence and schedule IDs, timezone, errors and senders.read-only
Get campaign stats
LEMLIST_GET_CAMPAIGN_STATS
Returns a campaign's sends, opens, clicks, replies, bounces and other results for a date range, per channel and A/B version if asked.read-only
Start campaign
LEMLIST_START_CAMPAIGN
Starts or restarts a campaign. Its leads begin receiving the sequence's emails and messages on the campaign's schedule.destructive
Pause campaign
LEMLIST_PAUSE_CAMPAIGN
Pauses a running campaign; nothing more is sent until it is started again.
List campaign leads
LEMLIST_GET_CAMPAIGN_LEADS
Lists the leads in a campaign with their state, up to 500 per page.read-only
Add lead to campaign
LEMLIST_CREATE_LEAD_IN_CAMPAIGN
Adds a new lead to a campaign. In a running campaign the lead starts receiving the sequence. A contact already in this campaign is refused (409); use Update lead to change one.destructive
Get lead
LEMLIST_GET_LEAD_BY_EMAIL_OR_ID
Finds a lead by email address or lead ID.read-only
Update lead
LEMLIST_UPDATE_LEAD_IN_A_CAMPAIGN
Changes a lead's name, job title, company or preferred channel. Contact fields are written on the lead's contact, the company name on its company; only the fields given change.destructive
Remove lead from campaign
LEMLIST_DELETE_OR_UNSUBSCRIBE_LEAD
Unsubscribes a lead from a campaign, or deletes it from the campaign with `action=remove`.destructive
Pause lead
LEMLIST_PAUSE_LEAD
Stops sending to a lead, in every campaign or only in `campaignId`.
Resume lead
LEMLIST_RESUME_PAUSED_LEAD
Resumes sending to a paused lead. If the campaign has passed its end date the lead stays paused (`isPaused: true`).destructive
Mark lead interested
LEMLIST_MARK_LEAD_AS_INTERESTED
Marks a lead as interested in every campaign it is in.
Mark lead not interested
LEMLIST_MARK_LEAD_AS_NOT_INTERESTED
Marks a lead as not interested in every campaign it is in.
List activities
LEMLIST_GET_MANY_ACTIVITIES
Lists what happened to leads (emails sent, opened, clicked, replied, LinkedIn steps and more), up to 100 per page. Filter by type, campaign, lead or date.read-only
Get conversation
LEMLIST_GET_CONTACT_MESSAGES
Returns the messages exchanged with one contact across channels.read-only
Send email
LEMLIST_SEND_EMAIL
Sends an email to a contact or lead from one of the team's mailboxes, as a new message or as a reply in an existing thread.destructive
List senders
LEMLIST_LIST_SENDERS
Lists the team members who can send, with their mailboxes and channels and the health of each. With `campaignId`, says which ones the campaign uses.read-only
Unsubscribe address
LEMLIST_UNSUBSCRIBE_VARIABLE
Adds an email address, domain, LinkedIn URL or phone number to the team's unsubscribe list, so no campaign contacts it again. Calling it twice is harmless.destructive
Try lemlist now
Sign in, connect your account and run any of these in the playground, or ask your agent through the router.
- “Get team”LEMLIST_GET_TEAM
- “List campaigns”LEMLIST_GET_MANY_CAMPAIGNS
- “Get campaign”LEMLIST_GET_CAMPAIGN
Connect via MCP
Create an MCP server for lemlist in the dashboard, then add its URL to your client. This is the Claude Code command; the client guide has the others.
claude mcp add --transport http lemlist \
"https://www.prompt-tm.com/mcp/<server id>?user_id=<your user>" \
--header "x-api-key: ptm_…"Connect via REST
Run a tool with one request. The response is { data, error, successful, log_id } for every tool.
curl -X POST https://www.prompt-tm.com/api/v3/tools/execute/LEMLIST_GET_TEAM \
-H "x-api-key: $PROMPT_TM_KEY" -H "content-type: application/json" \
-d '{ "user_id": "alice", "arguments": {} }'