agentsim-mcp
OfficialLease temporary programmable US phone numbers and manage SMS OTP sessions through MCP tools.
Lease a temporary number with
provision_number(E.164 number +session_id, hold forttl_seconds)Block until an SMS OTP arrives with
wait_for_otp, with optional auto-reroute on timeoutInspect received SMS messages without consuming the OTP using
get_messagesRelease a number back to the pool with
release_numberList active sessions, optionally filtered by
agent_id, usinglist_numbers
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentsim-mcp Provision a US number and wait for OTP"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentsim-mcp
Availability: Live SMS is self-serve for owned public HTTPS services after exact-origin verification and an allow policy. Hobby includes 10 live US SMS sessions per UTC month, with one active live session per account and no card required. Builder is $99/month and includes 50 live US SMS sessions. Checkout shows tax and renewal terms before payment, and existing agreements keep their terms. Check current access and channel support before using live examples.
MCP server that exposes AgentSIM challenge tools to AI coding assistants: Codex CLI, Claude Code, Cursor, Windsurf, and any other MCP-compatible host. Primary tools: open_challenge, wait_for_verdict. Aliases: provision_number, wait_for_otp.
Setup
For Codex CLI, follow Connect Codex. It covers key handling, the SMS wait timeout, and browser access. Then use the complete phone sign-in prompt.
Claude Code
claude mcp add agentsim -e AGENTSIM_API_KEY=asm_live_xxx -- uvx agentsim-mcpClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"agentsim": {
"command": "uvx",
"args": ["agentsim-mcp"],
"env": {
"AGENTSIM_API_KEY": "asm_live_xxx"
}
}
}
}Cursor / Windsurf
Add agentsim-mcp as a stdio MCP server with AGENTSIM_API_KEY in the environment config.
Remote (no install)
Connect directly to the hosted MCP server without installing anything locally:
{
"mcpServers": {
"agentsim": {
"type": "streamable-http",
"url": "https://mcp.agentsim.dev/mcp",
"headers": {
"x-api-key": "asm_live_..."
}
}
}
}The hosted endpoint uses stateless HTTP and does not issue mcp-session-id headers. The session_id returned by AgentSIM tools identifies a challenge and remains valid across tool calls.
Related MCP server: Grizzly SMS MCP Server
Tools
Control-Plane Nouns (Recommended)
Tool | Description |
| Add a stable agent ID to the console without opening a challenge, sending SMS, or using allowance |
| Open an authentication challenge session for a required owned |
| Long-poll for the challenge verdict — returns structured outcome including otp_code, magic_link, or webauthn_required; policy denial fails on open |
| Read SMS metadata and parsed codes; reading codes consumes them |
| Release a session early (allocation returned to pool) |
| List all active sessions for this account |
Legacy Aliases (Backward Compatibility)
Tool | Maps to | Description |
|
| Provision a temporary programmable US number for SMS OTP — kept for backward compatibility |
|
| Legacy wait with automatic extension after timeout by default; number may be unchanged |
Auth
For stdio, set AGENTSIM_API_KEY in the process environment. For hosted HTTP, every request must send its own x-api-key; the server validates and forwards that caller-scoped key. Get a key at console.agentsim.dev.
Supported Countries
US
Available Tools
5 toolsget_messagesAInspect
List all SMS messages received in this session without consuming the OTP.
Use this to inspect raw messages or check if an SMS arrived before calling wait_for_otp. Does NOT mark the OTP as consumed.
Inputs: input (required). Returns: object
list_numbersAInspect
List active sessions, optionally filtered by agent_id.
Use this to check for leaked sessions or inspect what numbers are currently active in your account.
Inputs: agent_id. Returns: object
provision_numberAInspect
Lease a temporary programmable phone number for receiving SMS OTP codes.
Returns the phone number (e164 format) and a session_id needed for all subsequent calls. The number is reserved for your session for ttl_seconds.
Next step: use the returned number on your target service to trigger an SMS,
then call wait_for_otp with the returned session_id.
Inputs: input (required). Returns: object
release_numberAInspect
Release a provisioned number back to the pool.
Always call this when you are done with the session — even on error — to avoid consuming pool capacity unnecessarily.
Inputs: input (required). Returns: object
wait_for_otpAInspect
Block until an SMS OTP arrives for this session, then return the code.
Polls the AgentSIM API for up to timeout_seconds. Returns the OTP code
and the message it was extracted from.
If the OTP does not arrive in time, raises a ToolError with advice on retrying.
Always call release_number after you have used the OTP.
Inputs: input (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct, non-overlapping purpose: provisioning, releasing, waiting for OTP, listing messages, and listing sessions. No ambiguity.
All tool names follow a consistent verb_noun pattern with underscores, e.g., provision_number, release_number, wait_for_otp.
Five tools is exactly right for the domain of temporary phone number management, covering all necessary operations without bloat.
The tool surface covers the full lifecycle: provision, release, wait for OTP, list messages, and list sessions. No obvious gaps.
Maintenance
Related MCP Connectors
ORDan's MCP server: calls, SMS and phone numbers for AI agents, under their owner's spend controls
Phone, SMS and email for AI agents. One remote MCP endpoint, OAuth login, zero install.
Give AI agents a phone number. Voice calls, SMS, and phone number management for MCP clients.
Give AI agents real phone numbers, messages, and voice calls via MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for provisioning dedicated real-SIM US phone numbers, receiving inbound SMS, and extracting OTP codes. Built for AI agents automating phone verification workflows.12134 npm1MIT
- AlicenseAqualityDmaintenanceMCP server for integrating with Grizzly SMS platform to rent virtual numbers, receive SMS verification codes, and manage activations directly from AI assistants like Cursor, Claude Desktop, and OpenClaw.822MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that gives AI agents disposable email addresses and real phone numbers with automatic OTP extraction and self-destructing identities.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server enabling AI assistants to make voice calls, send SMS/MMS, and manage group conversations using Twilio and OpenAI.21 npmMIT