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.

已验证STDIO仅桌面沟通与协作商业与电商

概览

AI 生成的概览

让助手通过 CODASMS 购买一次性手机号并读取收到的短信/OTP 验证码。

可以做什么
  • 查询账户余额,浏览可购买的服务与国家及其实时价格和库存
  • 按服务和国家购买号码,会从经销商余额中扣费
  • 轮询订单直到验证码到达,或单次查询订单状态
  • 释放订单以取消并立即退款
适用场景
当助手需要完成要求短信一次性验证码的注册或登录流程,且你愿意通过 CODASMS 经销商账户按成功送达的验证码付费时使用。
运行要求
通过 npx 以 stdio 在本地运行(需要 Node.js)。需要 CODASMS 经销商 API 密钥,通过环境变量 CODASMS_API_KEY 提供,并需要访问 CODASMS API 的网络。可选 CODASMS_MAX_PRICE_CENTS 用于限制购号价格上限。
安装前请注意
调用 get_number 会立即从 CODASMS 余额中扣除真实费用;建议设置 CODASMS_MAX_PRICE_CENTS,避免自主运行的助手超支。API 密钥属于计费凭证,不应写入共享配置。订单、退款和验证码均由第三方 CODASMS 服务处理,每个密钥的接口限速为每分钟 60 次请求。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Codasms Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

ToolWhat it does
get_balanceYour current spendable balance.
list_servicesBuyable services with live price + stock (filter by service / country).
list_countriesCountries with buyable numbers (optional service filter).
get_numberBuy a number for a service+country. Charges your balance (auto-refunds if no code in 20 min).
wait_for_otpPoll an order until the code arrives (or timeout / refund).
check_orderOne-shot status check for an order.
releaseCancel an order and refund now (unless the code already arrived).

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)

bash
export CODASMS_API_KEY=coda_live_xxxxxxxx   # from https://codasms.com/resellernpx codasms-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "codasms": {      "command": "npx",      "args": ["-y", "codasms-mcp"],      "env": { "CODASMS_API_KEY": "coda_live_xxxxxxxx" }    }  }}

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):

bash
npm run build && npm run start:http     # listens on :8080, POST /mcp
POST /mcpAuthorization: Bearer coda_live_xxxxxxxxContent-Type: application/json

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

Env varPurposeDefault
CODASMS_API_KEYYour coda_live_ reseller key (stdio mode).— (required)
CODASMS_API_BASEAPI base URL.https://api.codasms.com
CODASMS_MAX_PRICE_CENTSGlobal cap for get_number, in US cents.unset
PORTHTTP mode port.8080

Notes

  • Rate limit: the API allows 60 requests/min per key; wait_for_otp polls no faster than once every 5s by default to stay well under it.
  • Money safety: get_number spends real balance the moment it's called. If no code arrives, the order auto-refunds after 20 minutes, or call release to refund immediately.
  • Codes: services and countries use the API's codes (e.g. tg, wa, country 6) — use list_services / list_countries to discover them.

Develop

bash
npm installnpm run build      # tsc -> dist/npm start          # stdio

License

MIT — see LICENSE.

来源:README.md,提交 6ec9d54

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分