# Emailit for Grok

> Connect Grok to Emailit on grok.com, in the Grok Build CLI with the Emailit plugin, or from the xAI API as a remote MCP tool.

Grok connects to the [hosted Emailit MCP server](/docs/mcp/) in three ways:

- **grok.com** uses a custom connector.
- **Grok Build** (the CLI) uses the **Emailit plugin**, which adds the server plus [skills](/docs/mcp/plugins-and-skills/) for domain setup, deliverability, campaigns, webhooks and SDK code.
- **The xAI API** calls Emailit as a remote MCP tool with an API key.

## grok.com

1. **Add a connector.** Open [grok.com/connectors](https://grok.com/connectors) and choose **New Connector**.

2. **Enter the URL.** Choose **Custom** and enter `https://api.emailit.com/mcp`.

3. **Sign in.** Sign in to Emailit, choose your workspaces and choose **Allow access**.

On Business and Enterprise plans, an admin adds the connector in the xAI console first.

## Grok Build

Install the Emailit plugin:

```bash
grok plugin marketplace add emailit/emailit-plugins
grok plugin install emailit --trust
```

To add only the server, without the skills:

```bash
grok mcp add --transport http emailit https://api.emailit.com/mcp
```

Grok opens a browser window to sign in to Emailit the first time it uses the server.

## xAI API

The xAI API can't open a browser to sign in, so use an [API key](/docs/developers/api-keys/). Add Emailit as a remote MCP tool:

```json
{
  "type": "mcp",
  "server_url": "https://api.emailit.com/mcp",
  "server_label": "emailit",
  "authorization": "your_api_key"
}
```

Use `allowed_tools` to limit which Emailit tools the model can call, for example `["send-email", "get-email"]`. The key's workspace and scope decide what the model can do; a [Sending Only key](/docs/developers/api-keys/) limits it to email tools.

## Try it

> "Which Emailit workspace am I connected to?"

> "List my domains and tell me which ones still need DNS records."

> "Send the welcome template to jane@example.com with her first name set to Jane."

## Disconnect

For grok.com and Grok Build, open **Account → Connected apps** and choose **Revoke access** next to Grok. For the xAI API, delete or regenerate the API key under **Email API → API Keys**.

See the [tool reference](/docs/mcp/tools/) for everything Grok can do.

---
Source: https://emailit.com/docs/mcp/grok/
