MirrorSMS MCP Server
by zakiso
README.md
<p align="center">
<img src="assets/icon-512.png" width="96" alt="MirrorSMS">
</p>
<h1 align="center">MirrorSMS MCP Server</h1>
<p align="center">
Let your AI assistant read the SMS and verification codes on <b>your own phone</b>, and set up SMS forwarding for you.<br>
Remote MCP server · Streamable HTTP · OAuth 2.1 (or a read-only API key)
</p>
<p align="center">
<a href="https://mirrorsms.com">Website</a> ·
<a href="docs/clients.md">Connect your client</a> ·
<a href="docs/tools.md">Tools</a> ·
<a href="README.zh-CN.md">中文</a>
</p>
---
```
https://mirrorsms.com/mcp
```
[MirrorSMS](https://mirrorsms.com) forwards the SMS your phone receives (verification codes, bank alerts, delivery notices) to email, Telegram or a webhook. This MCP server lets AI assistants such as Claude, ChatGPT, Cursor and Gemini:
- **Read one-time codes** while signing in, confirming a payment or verifying an account, so you don't have to copy them by hand.
- **Wait for an SMS** and return it the moment it arrives.
- **Set up forwarding step by step**: connect your phone, add email, Telegram or webhook (Feishu/Lark, DingTalk, WeCom, Slack, Discord) channels, and send a test.
- **Troubleshoot** messages that don't arrive.
The server is hosted by MirrorSMS. This repository holds the documentation, client configuration examples and directory metadata; the server itself is not open source.
## Quick start
1. **Connect a phone.** Android: install the [MirrorSMS app](https://mirrorsms.com/download/android). iPhone: no app needed, MirrorSMS uses an Apple Shortcut. No account yet? Skip this step: once connected, your AI assistant can walk you through it with `add_phone`.
2. **Add the server** to your AI client:
| Client | How |
| --- | --- |
| Claude (claude.ai, desktop) | Settings → Connectors → Add custom connector → `https://mirrorsms.com/mcp` |
| ChatGPT | Settings → Apps & Connectors → Advanced settings → Developer mode → Create → `https://mirrorsms.com/mcp`, authentication OAuth |
| Claude Code | Plugin (MCP server + a skill for sign-in codes): `/plugin install mirrorsms --marketplace zakiso/mirrorsms-mcp`<br>or just the server: `claude mcp add --transport http mirrorsms https://mirrorsms.com/mcp` |
| Cursor | [Install in Cursor](https://cursor.com/en/install-mcp?name=mirrorsms&config=eyJ1cmwiOiJodHRwczovL21pcnJvcnNtcy5jb20vbWNwIn0%3D) or see [docs/clients.md](docs/clients.md#cursor) |
| VS Code | [Install in VS Code](https://vscode.dev/redirect/mcp/install?name=mirrorsms&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmirrorsms.com%2Fmcp%22%7D) or see [docs/clients.md](docs/clients.md#vs-code) |
| Gemini CLI | `gemini extensions install https://github.com/zakiso/mirrorsms-mcp` |
| Codex CLI | `codex mcp add mirrorsms --url https://mirrorsms.com/mcp` |
| Anything else | [docs/clients.md](docs/clients.md) (including a stdio bridge for clients without remote MCP) |
3. **Sign in and allow.** A MirrorSMS page opens: sign in with your email (a 6-digit code, no password) or scan with the Android app, then click **Allow**. Keep "Allow setting up forwarding" checked if you want the assistant to configure forwarding for you.
**Client without OAuth, or a headless agent?** Create an API key in the dashboard ([mirrorsms.com/app#/api](https://mirrorsms.com/app#/api)) and send it as a header instead. API-key connections are read-only (the setup tools are unavailable). See [docs/clients.md](docs/clients.md#using-an-api-key-instead-of-oauth).
```json
{
"mcpServers": {
"mirrorsms": {
"url": "https://mirrorsms.com/mcp",
"headers": { "Authorization": "Bearer sfk_your_api_key" }
}
}
}
```
Then just ask:
> What's the latest verification code on my phone?
>
> I'm signing in to a website, tell me the code when the SMS arrives.
>
> Help me forward my SMS to Telegram.
## Tools
| Tool | What it does | Access |
| --- | --- | --- |
| `get_latest_code` | Latest SMS with a verification code, with the code extracted | read |
| `wait_for_sms` | Waits up to 50 s and returns a new SMS as soon as it arrives | read |
| `list_sms` | Recent SMS, filter by sender, text or time | read |
| `list_devices` | Connected phones and when each last reported | read |
| `diagnose_sms_delivery` | Explains why an SMS hasn't arrived, with steps to fix it | read |
| `get_setup_status` | Setup progress, plan limits and ordered next steps | read |
| `wait_for_connection` | Waits for a phone or Telegram link to finish connecting | read |
| `add_phone` | Setup link and steps for an Android phone or iPhone | setup |
| `add_email_channel` | Forward SMS to an email address (confirmed by email) | setup |
| `connect_telegram` | One-time link to the official Telegram bot | setup |
| `add_webhook_channel` | Forward SMS to a webhook (Feishu/Lark, DingTalk, WeCom, Slack, Discord or JSON) | setup |
| `update_channel` | Rename a channel or turn it on/off | setup |
| `send_test_message` | Sends a sample SMS through your channels and reports the result | setup |
Parameters and return values: [docs/tools.md](docs/tools.md).
## More integrations
| Integration | Where |
| --- | --- |
| Home Assistant (HACS) | Latest SMS / code sensors, a `mirrorsms_sms_received` event for automations. [docs/home-assistant.md](docs/home-assistant.md) |
| n8n | `n8n-nodes-mirrorsms`: get codes, wait for an SMS, and a New SMS trigger. [n8n/](n8n) |
| Browser extension | Fill the latest code into the page (Chrome, Edge, Firefox). [browser-extension/](browser-extension) |
| Raycast | Copy the latest code, wait for a code, search SMS. [raycast/](raycast) |
| Command line & JS | `npx mirrorsms code --wait`, plus a stdio MCP bridge `npx mirrorsms mcp`. [packages/mirrorsms](packages/mirrorsms) |
All of these use a read-only API key from https://mirrorsms.com/app#/api .
## Security and privacy
- **OAuth 2.1 with PKCE.** You approve access on a MirrorSMS consent page and can revoke it any time in the dashboard under "AI 助手" (AI assistants). Clients can register with Client ID Metadata Documents or Dynamic Client Registration.
- **Or a read-only API key.** Keys (`sfk_…`) are created and deleted in the dashboard, shown only once, and can only read SMS. The same key works with a plain [REST API](https://mirrorsms.com/docs/api) for scripts.
- **You choose the scope.** `sms:read` is always granted; `forwarding:manage` (the setup tools) only if you keep it checked.
- **Nothing destructive.** No tool can send SMS, delete messages, phones or channels, reveal saved secrets, or change billing.
- **SMS are untrusted.** Every response that contains SMS text reminds the model to treat it as data and never follow instructions inside it.
- **Short retention.** SMS are kept 7 days by default, then deleted. See the [privacy policy](https://mirrorsms.com/privacy).
## Plans
The free plan includes 1 phone and 20 AI tool calls a day, shared with API-key reads (setup tools don't count). Paid plans remove the tool-call limit. Details: [mirrorsms.com](https://mirrorsms.com).
## For AI agents
If you are an AI agent helping a user set up MirrorSMS, read the [agent guide](https://mirrorsms.com/agent.md). It covers the full setup flow, phone-specific steps and troubleshooting.
## Listings
- Official MCP Registry: `com.mirrorsms/mcp` ([server.json](server.json))
## Support
- Help: https://mirrorsms.com/help
- Email: support@mirrorsms.com
- Issues with this documentation: [open an issue](https://github.com/zakiso/mirrorsms-mcp/issues)
## License
The documentation and configuration files in this repository are [MIT licensed](LICENSE). The MirrorSMS service is subject to its [terms](https://mirrorsms.com/terms).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues