get_balance
Wallet balance
Get the current wallet balance for the authenticated account.
无需输入参数。

ai.asms由 asms.ai 发布官方发布者v1.1.0更新于 Oct 29, 2026
Phone numbers for AI agents: SMS verification codes and rented numbers that receive SMS.
ASMS 为 AI 助手提供手机号:可购买一次性短信验证码号码,或租用可持续接收短信的号码,费用从 asms 钱包扣除。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/ai.asms%2Fasms/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"asms": {
"type": "http",
"url": "https://asms.ai/mcp"
}
}
}Phone numbers for AI agents. Connect asms.ai to Claude, ChatGPT, Codex, Cursor, Grok or any MCP client, and your agent can:
Everything is paid from your asms wallet, and the tools that spend are marked so your client asks you first.
Remote server, Streamable HTTP. Sign in with your asms account (OAuth), or send an API key from your dashboard as Authorization: Bearer <key>.
Full step-by-step pages, including a prompt your agent can follow on its own, are at asms.ai/agents.
Most clients that take a URL and headers accept:
Connecting is free. Verification codes are priced per service and country and charged only when the code arrives; rentals are priced per country and period. See asms.ai/pricing.
MIT
来源:README.md,提交 6e08514
Wallet balance
Get the current wallet balance for the authenticated account.
无需输入参数。
Verification code prices
Get the retail price per OTP activation for a service in a country. Omit `service` to list prices for every available service.
country必填serviceVerification number stock
Get how many numbers are in stock for a service in a country. Omit `service` to list stock for every available service.
country必填serviceOrder a verification number
Buy a number to receive an OTP: allocates a number, debits the wallet, and returns an orderId + phoneNumber. Then poll with poll_sms. If no code arrives, do NOT cancel to retry: simply call create_otp_order again for a fresh number and keep polling that one. Unfilled orders auto-refund within 10 minutes, so you only pay for codes that actually land and there is no penalty for ordering repeatedly. When a service keeps rejecting codes, order on the "us1" (Non-VoIP AT&T) pool, which has the highest delivery rate. WARNING: this spends real wallet balance.
country必填service必填Check for the verification code
Check for the SMS / OTP code on an order. Returns the code once it has arrived, otherwise an empty result: poll again after a few seconds. If nothing lands after a minute or two, the fastest path is to order a fresh number with create_otp_order (prefer the "us1" Non-VoIP pool) and leave the original: it auto-refunds within 10 minutes. Never cancel just to retry, and there is no charge for ordering again, you only pay for codes that arrive.
orderId必填List verification orders
List recent OTP orders for the account (awaiting a code or already received).
limitCancel a verification order
Rarely needed. To retry a verification do NOT cancel: just call create_otp_order again, because every unfilled order auto-refunds within 10 minutes on its own, and cancel is blocked for the first 10 minutes anyway. Only use this to release an order you are certain you no longer need once its 10-minute hold has passed.
orderId必填Number rental prices
List the rental periods and prices for a country (1 day to 12 months). A rented number is yours for the whole period and receives every SMS sent to it, unlike an OTP order, which is for one code. Omit `country` to list the countries numbers can be rented in.
countryRent a phone number
Rent a phone number in a country for a period (get the periods and prices from get_rental_offers first). Debits the wallet and returns the number and when the rental ends. Read its SMS with read_rental_sms. WARNING: this spends real wallet balance; confirm the country, period and price with the user first.
period必填country必填List rented numbers
List the account's rented numbers with their country, period and end date. Ended rentals are left out unless `includeEnded` is true.
includeEndedRead a rented number's SMS
Read the SMS a rented number has received during this rental, newest first. Poll again every few seconds while waiting for a message.
number必填Cancel a rental for a refund
Cancel a rented number and refund it. Only possible between 5 and 120 minutes after renting, and only if the number has received no SMS; after that the rental runs to its end date.
number必填已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
https://asms.ai/mcp{ "mcpServers": { "asms": { "url": "https://asms.ai/mcp", "headers": { "Authorization": "Bearer <ASMS_API_KEY>" } } }}