
Codasms Mcp
io.github.ajemba由 GitHub 账号 ajemba 发布v0.1.1更新于 Oct 24, 2026
Receive one-time SMS/OTP verification codes via the CODASMS API: get a number, wait, release.
概览
让助手通过 CODASMS 购买一次性手机号并读取收到的短信/OTP 验证码。
- 可以做什么
- 查询账户余额,浏览可购买的服务与国家及其实时价格和库存
- 按服务和国家购买号码,会从经销商余额中扣费
- 轮询订单直到验证码到达,或单次查询订单状态
- 释放订单以取消并立即退款
- 适用场景
- 当助手需要完成要求短信一次性验证码的注册或登录流程,且你愿意通过 CODASMS 经销商账户按成功送达的验证码付费时使用。
- 运行要求
- 通过 npx 以 stdio 在本地运行(需要 Node.js)。需要 CODASMS 经销商 API 密钥,通过环境变量 CODASMS_API_KEY 提供,并需要访问 CODASMS API 的网络。可选 CODASMS_MAX_PRICE_CENTS 用于限制购号价格上限。
安装
在 SourceWeft 中
- 打开 控制台中的 Codasms Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
CODASMS MCP Server
Receive one-time SMS/OTP verification codes from your AI agent. An MCP server over the CODASMS Reseller API — get a number, wait for the code, release it — across 700+ services and 180+ countries, pay only on delivery.
[License: MIT] [Transport: stdio + HTTP] [ajemba/codasms-mcp MCP server] [CODASMS MCP on mcprush]
This server lets an AI agent (Claude Desktop, Cursor, or anything that speaks MCP) buy a phone number and read the verification code programmatically. It's a thin wrapper over the public CODASMS Reseller API — it holds no logic of its own; every charge and refund is decided server-side by the API.
You bring your own key. Getting one is free to sign up: https://codasms.com/reseller.
Tools
get_number accepts an optional max_price_cents (or set CODASMS_MAX_PRICE_CENTS) so an
autonomous agent can't buy a number priced above your cap.
Quick start (local / stdio)
Claude Desktop
Add to claude_desktop_config.json:
Then ask: "Get me a Telegram number in the UK and read the code."
Remote (HTTP) mode
The same tools are served over Streamable HTTP, so you can host one instance for many users — each sends their own key as a Bearer token (nothing is stored server-side):
src/http.ts is a portable Node server (Deno Deploy, Railway, Fly, any container). For
Cloudflare Workers, swap the Node http handler for a fetch handler — the server factory in
src/server.ts is transport-agnostic and stays unchanged.
Configuration
Notes
- Rate limit: the API allows 60 requests/min per key;
wait_for_otppolls no faster than once every 5s by default to stay well under it. - Money safety:
get_numberspends real balance the moment it's called. If no code arrives, the order auto-refunds after 20 minutes, or callreleaseto refund immediately. - Codes: services and countries use the API's codes (e.g.
tg,wa, country6) — uselist_services/list_countriesto discover them.
Develop
License
MIT — see LICENSE.
来源:README.md,提交 6ec9d54
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分