Skip to main content

YAMM MCP

The YAMM MCP enables an AI assistant with an MCP client, for example Claude or ChatGPT, to use the YAMM service to create, send, and track mail merges with Gmail.

Install​

Add the YAMM MCP to your MCP client with this URL:

https://mcp.yamm.com/mcp

The YAMM MCP is a remote MCP server, so there's nothing to download.

Connect​

After you add the YAMM MCP to your MCP client, you're asked to sign in with Google.

  • If you already use YAMM: Sign in with the Google account you use with YAMM. Emails are sent from this account, with your plan and daily quota.
  • If you don't have a YAMM account yet: Sign in with the Google account you want to send from. YAMM creates your account at sign-in, so you don't need to install the add-on first.

In both cases, grant YAMM the requested permissions. For more information about why YAMM needs them, see What permissions are needed to use YAMM?

Connect Gmail, Google Sheets, and Google Drive​

This step is optional, but recommended. The YAMM MCP doesn't search your Gmail drafts or read your spreadsheets. Claude and ChatGPT have their own connectors for Gmail, Google Sheets, and Google Drive. Connect them too, and the AI assistant can:

  • Find your Gmail draft from its subject, so you don't need to look up the draft ID.
  • Create a new Gmail draft for your mail merge.
  • Find your spreadsheet and edit it to prepare the final list of recipients, for example by removing duplicates or keeping only the people you want to email.

Add the connectors from your MCP client's directory:

  • Claude: Gmail, Google Sheets, and Google Drive. Google Sheets reads and edits the spreadsheets you link to, and Google Drive lets Claude find a spreadsheet from its name.
  • ChatGPT: Gmail and Google Drive. In ChatGPT, Google Drive also reads and edits Google Sheets spreadsheets.

What the YAMM MCP can do​

ToolWhat it does
yamm_get_accountShows the email address you're connected with, your plan, your quota of recipients per 24 hours, and how many recipients you can still send to right now.
yamm_send_test_emailSends a test email to your own address, built from your Gmail draft and the first row below the header in your sheet. Each test email counts as one recipient in your quota.
yamm_send_gmail_mail_mergeSends personalized emails to the addresses in your sheet, built from your Gmail draft. Tracking is on by default.
yamm_get_mail_mergeReports how a mail merge is going and how many emails were sent. With tracking on, also reports how many were opened, clicked, replied to, and bounced, plus unsubscribes and poll answers.
yamm_get_help_linksGives the AI assistant short answers and links to YAMM help pages.

A typical request looks like this:

Send personalized emails to the contacts in my "Spring event" spreadsheet, using my "Invitation" draft in Gmail.

You can ask the AI assistant to send you a test email first so you can check how it looks. The assistant starts the mail merge only once you confirm. Once started, a mail merge can't be stopped.

The YAMM MCP can't:

  • Send from a Gmail alias.
  • Send personalized attachments.
  • Send to filtered or hidden rows, or to addresses that bounced or unsubscribed in an earlier YAMM mail merge.

FAQ​

How do I find my Gmail draft ID?​

The recommended way is to add a Gmail connector to your MCP client. The AI assistant then finds the draft you name, and you never need its ID.

Without a Gmail connector, find the ID yourself. It's the letter r followed by digits, sometimes with a minus sign, for example r-1234567890123456789. Gmail doesn't show it, so get it from the Gmail API documentation:

  1. Open Method: users.drafts.list, and click Try it!.
  2. In userId, enter me.
  3. In q, enter subject: followed by your draft's subject in quotes, for example subject:"Invitation".
  4. Click Execute, and sign in with the Google account that has the draft.
  5. In the response, copy the id value that starts with r, and paste it in the conversation.

Troubleshooting​

ProblemWhat to do
Sign-in doesn't start, or failsDisconnect and reconnect the YAMM MCP in your MCP client's settings, then try again.
The emails are sent from the wrong addressDisconnect the YAMM MCP, reconnect it, and sign in with the Google account you want to send from.
The AI assistant asks which sheet to useYour spreadsheet has several sheets. Open the spreadsheet on the sheet you want to use, copy the URL from your browser's address bar, and paste it in the conversation. If your MCP client is connected to Google Sheets, you can also give the sheet's name.
Markers aren't replaced in the emailCheck that each marker matches a column name in your sheet. For more information, see Personalize your emails.
Your quota is lower than your plan allowsIf your Google Workspace account is new, Google limits how many emails it can send, and YAMM caps your quota at 400 recipients per 24 hours, even on a Pro plan. For more information, see Why is your quota lower than expected?
The AI assistant asks whether to send only part of your listYou don't have enough quota left for every row. Confirm to send what your quota allows now, and ask the AI assistant to send the rest later. For more information, see I don't have enough quota to complete my mail merge.
The mail merge stopped before every row was sentIf you ran out of quota, upgrade to Pro to get more, or ask the AI assistant to send the rest later, once you have quota again. Emails already sent don't go out again. If YAMM stopped it because of too many bounces, check the email addresses in your sheet first. For more information, see Quota issues.
The AI assistant asks you to reconnect the YAMM MCPYour Google connection to YAMM no longer works. Disconnect and reconnect the YAMM MCP in your MCP client's settings, then ask the AI assistant to send the rest of the mail merge.

To disconnect YAMM from your Google account completely, see Revoke YAMM permissions.

Billing​

The YAMM MCP is part of the YAMM service and follows the same pricing and billing. Mail merges you send through the YAMM MCP use your YAMM plan and the same daily quota as the add-on. For more information about plans and quotas, see YAMM pricing and Your daily quota.