Send SMS from Claude, ChatGPT and AI agents with an MCP server (EU)
The TopSMS MCP server lets Claude, ChatGPT and AI agents send SMS and OTP codes from an EU account: hosted URL with OAuth or npm package, tools, safety.
TopSMS, an SMS gateway operated from Prague, runs an MCP server at https://topsms.eu/api/mcp. Add that URL as a custom connector in Claude or ChatGPT and sign in with OAuth, or run the npm package topsms-mcp with an API key. The assistant can then send SMS, bulk and scheduled messages and verification codes and check delivery and credit, at €0.089 per SMS to Germany and the EU zone.
An AI assistant can write the reminder text; with an MCP server it can also send it. TopSMS, a B2B SMS gateway run from Prague since 2025, offers a hosted MCP server and an open-source npm package, so Claude, ChatGPT and AI agents can send SMS from an EU account with prepaid credit.
What MCP is
MCP (Model Context Protocol) is an open standard that lets an AI assistant call tools of other services. A service publishes an MCP server with a list of tools and their parameters; the assistant reads the list and decides which tool to call for your request. For SMS this means you write “remind the three patients about tomorrow’s appointments” and the assistant calls send_bulk_sms on your TopSMS account, with the same prices, limits and sender rules as the REST API.
Two ways to connect TopSMS
Hosted server with OAuth (no install)
The server runs at https://topsms.eu/api/mcp. You sign in with your TopSMS account; no API key to copy.
- Claude (claude.ai and the Claude apps): Settings → Connectors → Add custom connector, URL
https://topsms.eu/api/mcp, leave the OAuth fields empty, Connect, sign in to TopSMS and click Allow. Availability depends on your Claude plan and your organisation’s settings. - ChatGPT: Settings → Apps & Connectors, turn on Developer mode in the advanced settings, create a connector with the same URL and OAuth, sign in and click Allow. Developer mode is available on some plans only.
- Claude Code: run the command below, then
/mcp, pick topsms and sign in in the browser.
claude mcp add --transport http topsms https://topsms.eu/api/mcpClients without sign-in, such as Cursor, use the same URL with an API key in the header:
{
"mcpServers": {
"topsms": {
"url": "https://topsms.eu/api/mcp",
"headers": { "Authorization": "Bearer CLIENT_ID:SECRET" }
}
}
}npm package topsms-mcp (local, with an API key)
For Claude Desktop, Cursor, Windsurf, VS Code and other clients that start MCP servers as a command. In the dashboard under API access, create a key with the scopes send and read, then add this to the client configuration (Node.js 18 or newer):
{
"mcpServers": {
"topsms": {
"command": "npx",
"args": ["-y", "topsms-mcp"],
"env": {
"TOPSMS_CLIENT_ID": "your-client-id",
"TOPSMS_SECRET": "your-secret"
}
}
}
}In Claude Code it is one command:
claude mcp add topsms -e TOPSMS_CLIENT_ID=... -e TOPSMS_SECRET=... -- npx -y topsms-mcpThe package is MIT-licensed; source on GitHub (topsms-ghb/topsms-mcp). Every option step by step is on the MCP server page and in the guide SMS from Claude and ChatGPT.
The tools
The hosted server offers nine SMS tools plus a beta tool for WhatsApp templates; the npm package has the nine SMS tools. The sending tools accept an optional idempotencyKey, so a repeated call never sends twice.
| Tool | What it does |
|---|---|
send_sms | Send one SMS, now or scheduled (send_at), optionally with your sender name |
send_bulk_sms | Send the same text to up to 500 numbers; above 50 the batch is queued and returns a jobId |
get_message_status | Delivery status of a message (queued, sent, delivered, failed, expired) with errorCode |
get_bulk_job | Progress of a queued or scheduled send |
cancel_scheduled | Cancel a scheduled send; the price goes back to your credit |
verify_send | Send a one-time verification code (OTP); max. 5 codes per number per hour |
verify_check | Check the code the user entered (max. 5 attempts per code) |
get_credit | Credit balance and price per SMS in your account currency |
get_pricing | Public price list; works without sign-in |
list_whatsapp_templates | Approved WhatsApp templates (beta, hosted server only, WhatsApp must be enabled) |
An example conversation
- You: “How much credit do I have, and what does an SMS to Austria cost?”
Assistant: callsget_creditandget_pricing, then answers with your balance and €0.061 per SMS segment. - You: “Tomorrow at 8:00 send +43 664 1234567: Your appointment is today at 10:00. Call us if you need to reschedule.”
Assistant: shows the text, the number and the time and asks you to confirm. After your yes it callssend_smswithsend_atand reports the message id, the number of segments and the price. - You: “Cancel that, the appointment moved.”
Assistant: callscancel_scheduled; the price returns to your credit. - You: “Send a verification code for the app Booking to +49 151 12345678.”
Assistant: callsverify_send. When the user reads the code back,verify_checkconfirms it.
Whether the assistant asks before each tool call depends on your client’s settings. Keep that confirmation on for every tool that sends.
Safety: test keys and confirmations
- Test keys: a test API key sends nothing and costs nothing, but responses and delivery reports look like live ones. Let an agent practise with a test key (npm package or header) before it gets a live key.
- Confirmation: keep tool-call confirmation enabled in your client, so the assistant asks before it sends. Sending only draws on your prepaid credit.
- Consent screen: signing in shows which app is asking and what it may do (send SMS and spend credit, read credit and message status). Your password is entered only on TopSMS.
- One key per assistant: each sign-in creates its own key, “OAuth: app name”, under API access in the dashboard, with usage and request log. Revoke it and the assistant is disconnected.
- Narrow keys for agents: for header and npm setups, create a separate key with only the scopes it needs, and optionally an IP allowlist and a lower rate limit.
EU data and GDPR
TopSMS is operated from Prague. The application and database run in an EU data centre, delivery goes through EU-based carriers, and the data processing agreement under Art. 28 GDPR applies to every account. With the npm package, the API key stays in your client configuration on your computer. Keep in mind that the text and phone numbers you type in a chat are also processed by your AI provider under its own terms; for marketing messages you still need the recipients’ consent, as described in SMS marketing and GDPR.
Cost
The MCP server, the npm package and test keys are free. An SMS sent by an assistant costs the same as through the API: €0.089 per segment to Germany and the rest of the EU zone, with no monthly fee and prepaid credit that does not expire. Prices for every country: SMS prices in Europe 2026. New accounts get €0.50 free credit; sign-up is free.
Other options
Other SMS providers also offer MCP servers or API connectors for AI assistants. When you compare, look at the price per segment in your target countries, sender name rules there, whether there is a test mode that sends nothing, and whether the assistant can sign in with OAuth instead of holding a long-lived key.
Frequently asked questions
What is an SMS MCP server?
A server that exposes SMS sending as tools in the Model Context Protocol, the standard AI assistants use to call other services. Connected to TopSMS, Claude, ChatGPT or an agent can send an SMS, send a verification code or check delivery by calling a tool, without custom code.
Which URL do I add as a connector?
https://topsms.eu/api/mcp. That is the endpoint for Claude, ChatGPT, Claude Code, Cursor and other remote MCP clients. The page topsms.eu/mcp has the setup instructions for each client.
Should I use the hosted server or the npm package?
Use the hosted server with OAuth for claude.ai, ChatGPT and Claude Code: nothing to install and no key to copy. Use the npm package topsms-mcp for clients that start MCP servers as a local command, such as Claude Desktop, with an API key in the configuration.
Can I test without sending real SMS?
Yes. A test API key sends and charges nothing, and responses look like live ones. Use it with the npm package or as an Authorization header. Sign-in (OAuth) connections in Claude and ChatGPT always use a live key.
Is the data processed in the EU?
On the TopSMS side, yes: the application and database run in an EU data centre, delivery goes through EU-based carriers, and the data processing agreement under Art. 28 GDPR applies to every account. What you type in the chat is also processed by your AI provider under its own terms.
What does it cost?
The MCP server, the npm package and test keys are free. An SMS sent by an assistant costs the same as from the API: €0.089 per segment to Germany and the EU zone, no monthly fee, prepaid credit that does not expire.