Fwrd SMS Codes MCP Server
Hands your AI agent the SMS verification codes sent to your iPhone, via the Fwrd app.
Fwrd SMS Codes scores 67 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 2 tools. Filed under Communication. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
67 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 67 comes from
22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "alanwtom-fwrd-sms-mcp": { "url": "https://{worker_host}/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools2Tool docs quality grade B
All capabilitiesminutes (1 to 15, default 10), contains (optional)
contains (optional word the text must include, such as the service's name), maxageseconds (default 120), timeoutseconds (default 50, up to 100)
About
fwrd-sms-mcp
An MCP server that hands your AI agent the SMS verification codes sent to your iPhone. It needs the Fwrd iPhone app, which forwards each text to the server, and you deploy it to your own Cloudflare account.
How it works: a text reaches your iPhone → Fwrd posts it to your Worker → your agent calls
wait_for_sms_code and gets the code.
Fwrd has no server and no account. The iPhone posts each text straight to your Worker, which keeps it for 15 minutes.
Deploy
The button copies this repo to your GitHub account and deploys it, Durable Object included. It
asks for the two secrets listed in .dev.vars.example. Make each with openssl rand -hex 32, and
use two different values:
FWRD_TOKEN: the end of the URL you paste into Fwrd.MCP_TOKEN: what your AI client sends.
Or with wrangler (Node 22 or later):
git clone https://github.com/alanwtom/fwrd-sms-mcp && cd fwrd-sms-mcp
npm install
npx wrangler login
npx wrangler deploy # prints https://fwrd-sms-mcp.<your-subdomain>.workers.dev
npx wrangler secret put FWRD_TOKEN # paste a value from: openssl rand -hex 32
npx wrangler secret put MCP_TOKEN # a different value
Until both secrets are set, the endpoints answer with an error that says which one is missing.
Set up Fwrd on the iPhone
- In Fwrd, tap +, choose Webhook, and paste
https://fwrd-sms-mcp.<your-subdomain>.workers.dev/fwrd/<FWRD_TOKEN>into the Configuration field. Tap Send Test Message (it shows up inlist_recent_texts), then save with the tick. - In the same destination, choose Only Some Texts under Which Texts and turn on Looks Like a Code. Then only texts with a 4 to 8 digit code leave the phone.
- Create the Message automation in Shortcuts that hands each text to Fwrd: automation guide. The webhook guide covers the destination in full.
Connect your AI client
Replace <worker> with your fwrd-sms-mcp.<your-subdomain>.workers.dev address.
Claude Code
claude mcp add --transport http fwrd-sms https://<worker>/mcp --header "Authorization: Bearer <MCP_TOKEN>"
Cursor: in ~/.cursor/mcp.json (or .cursor/mcp.json in a project). ${env:FWRD_MCP_TOKEN}
reads the token from your environment; you can paste it in instead.
{
"mcpServers": {
"fwrd-sms": {
"url": "https://<worker>/mcp",
"headers": { "Authorization": "Bearer ${env:FWRD_MCP_TOKEN}" }
}
}
}
claude.ai and Claude Desktop: Customize → Connectors → + Add → Add custom connector (on Team
and Enterprise plans an Owner adds it under Organization settings → Connectors). Enter the URL
https://<worker>/mcp and set Authentication to No sign-in. If the dialog has Request
headers (a beta that Anthropic says only some organizations have), add an authorization header
with the value Bearer <MCP_TOKEN>. If it doesn't, enter https://<worker>/mcp/<MCP_TOKEN> as the
URL instead. These connectors reach your Worker from Anthropic's cloud, not from your computer.
Any client that supports Streamable HTTP: https://<worker>/mcp with the header
Authorization: Bearer <MCP_TOKEN>. If it can't send headers, use
https://<worker>/mcp/<MCP_TOKEN>, and keep that URL as private as a password.
Agent skill
skills/sms-verification-codes teaches a coding agent
when to call these tools and how to set all this up with you. Install it with
skills for Claude Code, Cursor, Codex and other agents:
npx skills add alanwtom/fwrd-sms-mcp
Over stdio
node glama/stdio.mjs (or the Dockerfile) runs the Worker locally with wrangler dev and
speaks MCP over stdin/stdout. MCP directories use it to list the tools. It receives no texts, so
for real use deploy the Worker and connect to https://<worker>/mcp.
Tools
| Tool | Arguments | What it does |
|---|---|---|
wait_for_sms_code | contains (optional word the text must include, such as the service's name), max_age_seconds (default 120), timeout_seconds (default 50, up to 100) | Returns the newest code not yet handed out, including one that arrived up to max_age_seconds before the call. Otherwise waits until one arrives or the time runs out. Each code is handed out once. On a timeout it returns a normal result telling the agent no code arrived and to ask the site to resend. |
list_recent_texts | minutes (1 to 15, default 10), contains (optional) | The texts from the last few minutes, newest first, with sender (when Fwrd sends it), time and any code. For login links and messages that aren't digit codes. |
The default wait is 50 seconds because Claude Code, and clients built on the official TypeScript
SDK, stop waiting for a request after 60 seconds unless configured otherwise. claude.ai and Claude
Desktop allow 240 seconds per tool call. In Claude Code, a timeout field (in milliseconds) on the
server's configuration entry raises the limit, and then agents can ask for up to 100 seconds.
What Fwrd sends
Checked in the source of the shipped Fwrd 1.2.1 and of 1.3.1:
| Request | One POST per forwarded text, to an https:// URL on a public hostname: not localhost, IP addresses, .local, .lan, .internal or .test; no user:pass@, no #fragment. A workers.dev address is fine. |
| Headers | Content-Type: application/json and Idempotency-Key: <UUID>, the same key on retries. No auth header, so the secret lives in the URL. |
| Body | {"content": "<message exactly as it arrived>", "text": "<the same message again>"}, plus "sender": "<who sent it>" only when Include Who Sent It is on in Fwrd's Settings and the Sender field is set on Fwrd's Shortcuts action. |
| Success | Any 2xx within 15 seconds. This server answers 200 {"ok":true} straight away. |
| Retries | On 429, 5xx or a dropped connection, at most twice, honouring Retry-After. Redirects aren't followed. This server stores a repeated Idempotency-Key once. |
| Which texts | Only new texts that match the Shortcuts automation, and Fwrd's filters on the destination: Looks Like a Code, certain words, time of day. |
The webhook answers 401 for a wrong token, 400 for a body that isn't JSON or has no
content, 413 over 64 KB, and 405 for anything but POST. It accepts the token as
/fwrd/<FWRD_TOKEN> or /fwrd?token=<FWRD_TOKEN>.
Protocol
MCP Streamable HTTP at /mcp: stateless, JSON responses, no SSE, no sessions. It speaks
2026-07-28 (no handshake: server/discover, with the version in every request) and the
handshake versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05 (initialize,
notifications/initialized, ping). tools/list and tools/call work in both. GET /mcp is 405.
Every request needs MCP_TOKEN. The MCP spec asks servers to check the Origin header against DNS
rebinding: set ALLOWED_ORIGINS in wrangler.jsonc to a comma-separated list, and a request whose
Origin isn't on it gets 403. Requests with no Origin (desktop apps, servers) aren't affected.
While the list is empty, any Origin is accepted.
Privacy
- It runs in your Cloudflare account. Fwrd never sees your texts.
- Each text is deleted 15 minutes after it arrives: on every webhook and tool call, and by a Durable
Object alarm when nothing comes in. Set
KEEP_SECONDSlower to delete sooner. - It stores only what Fwrd sends (the message, and the sender if sent), when it arrived, the code
found in it, the
Idempotency-Key, and whether the code was handed out. - The Worker's own log lines never contain message text or tokens. Cloudflare's request logs and
traces, which record each URL and so your tokens, are off in
wrangler.jsonc.DEBUGset to"true"logs message text, for local debugging.
Use it responsibly
Use it only for accounts you own or are allowed to automate. Where a service offers API tokens, an authenticator app or passkeys, prefer those to SMS codes. Some banks' terms forbid sharing one-time codes, so check before you forward them. Message text comes from whoever sent the SMS; the tool descriptions tell agents to treat it as data, not instructions.
Develop
cp .dev.vars.example .dev.vars # then fill in both tokens
npm run dev # http://localhost:8787
npm test # end-to-end tests against wrangler dev
npm run test:inspector # the official MCP Inspector, both protocol eras
npm run typecheck
Tested on 2026-10-26 with wrangler dev 4.152.0: npm test passes all 30 end-to-end checks,
and the official MCP Inspector 2.12.0 in CLI mode (npm run test:inspector) lists both tools and
gets the waiting code back from wait_for_sms_code, with --protocol-era legacy (negotiates
2025-11-25) and --protocol-era modern (2026-07-28). The Inspector command, per era:
npx @modelcontextprotocol/inspector@2.12.0 --cli http://127.0.0.1:8787/mcp --transport http \
--protocol-era modern --header "Authorization: Bearer $MCP_TOKEN" --format json \
--method tools/call --tool-name wait_for_sms_code --tool-arg contains=Inspector --tool-arg timeout_seconds=5
The same with --method tools/list lists wait_for_sms_code, list_recent_texts, and --strict
reports no schema portability problems.
Fwrd
Fwrd is free for 15 forwarded texts a month (one text counts once, however many places it goes). Fwrd Pro is $4.99 a month or $29.99 a year (US prices, October 2026).
fwrdsms.com · Fwrd on the App Store · Webhook examples · Let an AI agent read SMS verification codes
MIT licensed.
Frequently asked questions
What is Fwrd SMS Codes MCP Server?
Hands your AI agent the SMS verification codes sent to your iPhone, via the Fwrd app.
How do I install Fwrd SMS Codes MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Fwrd SMS Codes MCP Server connects to the remote endpoint https://{worker_host}/mcp, so there is nothing to install locally.
Is Fwrd SMS Codes MCP Server free and open source?
Yes. Fwrd SMS Codes MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Fwrd SMS Codes MCP Server support remote (HTTP) connections?
Yes. Fwrd SMS Codes MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Fwrd SMS Codes MCP Server provide?
Fwrd SMS Codes MCP Server provides 2 tools: list_recent_texts and wait_for_sms_code. See the full tool list for descriptions and parameters.
How is Fwrd SMS Codes MCP Server's trust score calculated?
Fwrd SMS Codes MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.