# SendMock

> SendMock is an open-source MCP server for communication. Local sandbox that catches test email, SMS, payments and webhooks for developers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, Windows, API, CLI, self-hosted
- **Website:** https://shibbirweb.github.io/sendmock/
- **Repository:** https://github.com/shibbirweb/sendmock
- **MCP Registry name:** io.github.shibbirweb/sendmock
- **Categories:** [communication](https://ai-powered.com/categories/communication), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README says SendMock sits between your app and the services it calls, so messages from email, SMS, push and payment integrations land on your own machine instead of real inboxes, phones or card networks. Your app keeps its existing provider SDKs and only needs its base URL or SMTP host changed.

Caught messages appear in a web UI and a REST API, where codes and links can be pulled out for automated tests. It can also fire signed webhooks back to your localhost app on demand or through rules, which lets you exercise webhook handlers without a tunnel or a provider sandbox.

It suits developers and QA engineers who build sign-up, OTP or checkout flows and want repeatable tests. It is also exposed to AI coding agents through a CLI, an MCP server and an agent skill.

## Features

- **Email capture over SMTP:** Catches messages sent over SMTP and shows HTML, text and source previews with link and spam checks.
- **SMS and verification codes:** Emulates Twilio and Vonage style APIs and extracts one-time codes for tests.
- **Provider-compatible payments:** Offers test checkouts for Stripe, PayPal, Razorpay, Paddle, bKash and SSLCommerz with simulated outcomes.
- **On-demand webhook delivery:** Sends realistic, signed webhooks to localhost via rules, templates, manual sends and replay.
- **MCP server for agents:** Lets AI agents read captured codes, configure webhooks and check delivery through MCP tools.
- **HTTP catcher bins:** Captures any HTTP request and returns configured mock responses, delays or failures.

## Good for

- Test sign-up and password reset flows that send emails or one-time codes without a real inbox
- Exercise webhook handlers for delivered, bounced or payment succeeded events on localhost
- Run checkout and payment tests without a provider sandbox account
- Let an AI coding agent read sent codes and verify messages during development

## Install

### Claude Code (Terminal)

```sh
claude mcp add sendmock --env SENDMOCK_TOKEN='<SENDMOCK_TOKEN>' -- npx -y sendmock
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sendmock": {
      "command": "npx",
      "args": [
        "-y",
        "sendmock"
      ],
      "env": {
        "SENDMOCK_TOKEN": "<SENDMOCK_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sendmock": {
      "command": "npx",
      "args": [
        "-y",
        "sendmock"
      ],
      "env": {
        "SENDMOCK_TOKEN": "<SENDMOCK_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "sendmock": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sendmock"
      ],
      "env": {
        "SENDMOCK_TOKEN": "<SENDMOCK_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "sendmock": {
      "command": "npx",
      "args": [
        "-y",
        "sendmock"
      ],
      "env": {
        "SENDMOCK_TOKEN": "<SENDMOCK_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sendmock": {
      "command": "npx",
      "args": [
        "-y",
        "sendmock"
      ],
      "env": {
        "SENDMOCK_TOKEN": "<SENDMOCK_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Does anything reach a real inbox or phone?

The README says no message reaches a real inbox, phone or provider unless you set up a real relay and allow the recipient.

### Do I need to change my application code?

According to the README, you change the host and port or base URL only, and provider SDKs keep working.

### Which platforms does it run on?

The install options include macOS, Linux, Windows, Docker and npx or bunx, with a Docker image on GHCR.

### Is SendMock free?

Yes. SendMock is open source, so you can use and self-host it for free.

### How do I add SendMock to Claude Code?

Run this command in your terminal: claude mcp add sendmock --env SENDMOCK_TOKEN='<SENDMOCK_TOKEN>' -- npx -y sendmock

### What are the best alternatives to SendMock?

The closest alternatives to SendMock are receivemail.dev, Agent Identity MCP, Dead Simple Email, SMB Sandbox and Mockanything.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [receivemail.dev](https://ai-powered.com/mcp/receivemail-dev): receivemail.dev is a freemium MCP server for developer tools.
- [Agent Identity MCP](https://ai-powered.com/mcp/agent-identity-mcp): Agent Identity MCP is a freemium MCP server for developer tools.
- [Dead Simple Email](https://ai-powered.com/mcp/dead-simple-email): Dead Simple Email is a freemium MCP server for communication.
- [SMB Sandbox](https://ai-powered.com/mcp/smb-sandbox): SMB Sandbox is an open-source MCP server for developer tools.
- [Mockanything](https://ai-powered.com/mcp/mockanything): Mockanything is a free MCP server for developer tools.
- [Sendora](https://ai-powered.com/mcp/sendora): Sendora is a paid MCP server for communication.
- [MailBots](https://ai-powered.com/mcp/mailbots): MailBots is an MCP server for developer tools.
- [SendForAI](https://ai-powered.com/mcp/sendforai): SendForAI is a freemium MCP server for communication.

---
Source: https://ai-powered.com/mcp/sendmock
