Integrations

Gemini CLI integration with MailerSend

Connect your MailerSend account with Gemini CLI using our hosted MCP server. Manage domains, send emails, analyze performance and more, right from your terminal.
Developer
Integration Support

Bring MailerSend into your terminal. Connect Gemini CLI to your MailerSend account with our hosted MCP server and use natural language prompts to add and verify domains, analyze deliverability, manage templates and webhooks, send emails and SMS, and more, all without leaving the command line.

How to connect MailerSend with Gemini CLI

You can connect the MailerSend MCP to Gemini CLI by adding a few lines to your settings file.

To get started:

  1. Make sure you have the latest version of Gemini CLI installed.

  2. Open the settings.json file in the .gemini folder of your home directory (~/.gemini/settings.json). If the file doesn't exist yet, create it.

  3. Add the following lines to the file. If you already have other MCP servers set up, add the MailerSend entry inside your existing mcp servers block.

{
  "mcpServers": {
    "mailersend": {
      "httpUrl": "https://mcp.mailersend.com/mcp",
      "timeout": 5000
    }
  }
}
  1. Save the file and restart Gemini CLI.

  2. Follow the login process to authenticate your MailerSend account. Choose the account you want to connect, review the permissions and click Authorize.

Once connected, you can start using the MailerSend MCP by entering prompts directly in Gemini CLI.

See a full list of available MCP tools in our developer documents.

Note:

Data privacy and authorization

Before you connect, it's important to understand what this means for your data.

By connecting your AI tool to the MailerSend MCP server, you are granting the AI tool permission to access and manage your MailerSend data (like email activity, API tokens, recipient data, and domain settings) on your behalf.

MailerSend does not send any of your data to an AI tool. You are in full control. This connection simply enables the AI tool you choose to communicate with your MailerSend account when you give it a command.

Use case examples

  • What's the average delivery time for password reset emails?

  • Send a password reset email to user@example.com using the 'password-reset' template with reset_link: https://app.example.com/reset/abc123

  • Are there any SPF/DKIM issues with my domain?

  • Add api.mycompany.com as a new sending domain and give me the DNS records

  • Show me any emails stuck in the queue

  • List all failed emails from the last 2 hours

  • Validate the email address from this new user registration

  • Create a webhook for all bounce events to update our user database automatically

  • Which emails have the fastest delivery times?

View more MCP use case examples.