---
title: "Install the sendmcp MCP server | sendmcp"
url: https://sendmcp.dev/mcp/
description: "Add your sendmcp Worker's /mcp URL to Claude, Cursor, ChatGPT or Codex, approve access once in the browser, and your agent can add domains and explain bounces."
---

MCP

# Install the sendmcp MCP server in Claude, Cursor, ChatGPT, Codex

To install the sendmcp MCP server, add one URL, your Worker's `/mcp` address such as `https://mail.example.com/mcp`, to Claude, Cursor, ChatGPT or Codex as a remote server, then approve access once in your browser. No API key goes into the config. The first tool set has 26 tools for domains, sending, events, bounces, suppression, logs and inbound.

Updated Nov 23, 2026 · Runs on [your own Cloudflare account](https://sendmcp.dev/self-host/)

## What is the MCP URL?

sendmcp runs as a Worker on your own Cloudflare account, and the MCP server is the `/mcp` path on that same Worker. The address is your Worker's URL, either a `workers.dev` address or a custom domain you gave it. This page uses `https://mail.example.com/mcp` as a stand-in: replace it with your own.

The endpoint speaks streamable HTTP and signs the agent in with OAuth 2.1, so every client below needs the URL and nothing else. The first time a client connects, it opens a consent page in your browser where you approve it.

## How do I install it in Claude?

In Claude Code, add the server from the terminal, then open `/mcp`, pick **sendmcp** and choose **Authenticate**. Your browser opens the consent page.

claude mcp add --transport http sendmcp https://mail.example.com/mcp

In Claude Desktop or on claude.ai, add it as a custom connector in the connector settings: name it **sendmcp**, paste the same URL and approve the sign-in.

## How do I install it in Cursor?

Add the server to `.cursor/mcp.json` in a project, or to the global file for every project. Cursor starts the sign-in the first time it uses a tool.

{ "mcpServers": { "sendmcp": { "url": "https://mail.example.com/mcp" } } }

## How do I install it in ChatGPT?

ChatGPT takes remote MCP servers as custom connectors. In the connector settings, create a new connector, paste `https://mail.example.com/mcp` as the server URL, choose OAuth for authentication and approve the consent page when it opens. Custom connectors may need developer mode turned on, and the menu names change, so use ChatGPT's own help for the exact path.

## How do I install it in Codex?

Add the server to Codex's config file, `~/.codex/config.toml`, then sign in from the terminal.

[mcp_servers.sendmcp] url = "https://mail.example.com/mcp" # then, in a terminal codex mcp login sendmcp

## How do I check it works?

Ask the agent for something small. The sendmcp Get started screen waits for your first tool call and shows it when it arrives. If nothing arrives within 2 minutes, it shows help for your client, such as `/mcp` then Authenticate in Claude Code.

## What can my agent do with it?

The tools below are the first set. Domain, sending, suppression, quota and log tools come with the public alpha (M3). Tools for features that arrive later, such as templates and webhooks (M4), ship with their milestone, so your agent never plans around a tool that cannot work. Every tool result carries `warnings`, so the agent sees a rising bounce rate or a nearly used quota on its next call.

| Group | Tools | What the agent does |
| --- | --- | --- |
| Domains | `domains_add`, `domains_verify`, `domains_dns_records` | Adds a domain, writes or checks its SPF, DKIM and DMARC records |
| Sending | `emails_send`, `emails_send_test`, `emails_get`, `emails_list` | Sends and inspects email |
| Events and bounces | `events_list`, `bounce_explain` | Lists delivery, bounce, complaint and reject events; reads the SMTP response and says what to fix |
| Suppression | `suppression_list`, `suppression_add`, `suppression_remove` | Manages the addresses that must not be emailed |
| Templates (M4) | `templates_list`, `templates_upsert`, `templates_preview` | Stores and previews templates |
| Webhooks (M4) | `webhooks_upsert`, `webhooks_test` | Sets up and tests outgoing webhooks |
| Reports | `stats`, `quota`, `deliverability_check` | Reads sent, delivered, bounce and complaint rates; Cloudflare's daily quota and how much is used; DNS records, DMARC policy, suppression count and complaint rate for a domain |
| Projects | `projects_list`, `projects_pause` | Shows each project and stops one in an emergency |
| Inbound (M3) | `inbound_list`, `inbound_get` | Lists received email for an address or domain; reads one with headers, text and HTML |
| Logs | `logs_list`, `logs_get` | Reads recent API requests with status, key and source; one request with its body and response |

`bounce_explain`, `deliverability_check`, `quota` and `projects_pause` have no counterpart in `resend-mcp`, which only calls the Resend API and cannot touch DNS.

## What access does an agent get?

- The consent page shows the client's name, its redirect host, the rights it asks for (full or read-only) and which projects it can use.
- Read-only access is offered as an alternative to full access.
- The Agents page lists connected clients with the last call and rights. Revoking one invalidates its tokens at once.
- The agent never touches your apex MX, never overwrites an existing SPF or DMARC record (it merges or asks first) and never makes a DMARC policy weaker.

The dashboard sits behind Cloudflare Access, but `/mcp` and the API do not, because OAuth and API keys protect them. Your own sending code still uses a scoped API key, not the MCP sign-in.

## Questions about this

### Do I need an API key to use the sendmcp MCP server?

No. The MCP server signs your agent in with OAuth 2.1 and a consent page in your browser, so no key goes into the client config. API keys are for your apps that send email with the Resend SDK, and they are scoped to one domain.

### Which clients work with the sendmcp MCP server?

Any client that supports remote MCP over streamable HTTP with OAuth. The build targets Claude Code, Cursor, Codex and Claude Desktop, and ChatGPT takes the same URL as a custom connector.

### Can the agent break my existing email?

It is built not to. sendmcp never touches the apex MX, merges into an existing SPF record and asks before writing, leaves an existing DMARC record alone, and never makes a DMARC policy weaker. Inbound mail uses a subdomain by default.

### How is this different from resend-mcp?

resend-mcp exposes the Resend API as tools and only reads what Resend has already processed. The sendmcp server runs inside your Cloudflare account, so it also writes SPF, DKIM and DMARC into your zone and explains bounces with `bounce_explain`.

## Related questions

### Is there an email MCP server for Claude, Cursor and ChatGPT?

What an email MCP server does and how this one differs from resend-mcp.

[Is there an email MCP server for Claude, Cursor and ChatGPT?](https://sendmcp.dev/email-mcp-server/)

### How do I set up SPF, DKIM and DMARC on Cloudflare?

Your agent writes all three records to your zone and checks alignment on a test send.

[How do I set up SPF, DKIM and DMARC on Cloudflare?](https://sendmcp.dev/spf-dkim-dmarc-cloudflare/)

### Free and open source. Deploy it to your Cloudflare.

One click puts the Worker, and its MCP URL, on your account.

[Free and open source. Deploy it to your Cloudflare.](https://sendmcp.dev/self-host/)

## Send from every project for $0.

Open source. One click puts it on your Cloudflare account.

[Deploy to Cloudflare](https://deploy.workers.cloudflare.com/?url=https://github.com/agentfirsthq/sendmcp)
