onlinesim-mcp

Local MCP server (Streamable HTTP) and CLI for OnlineSim — let an AI agent order receive-only numbers and read SMS.

onlinesim is a single binary. onlinesim mcp runs a local MCP server that Cursor, Claude Code, VS Code Copilot, Codex and any other Streamable HTTP client can use. The same binary is a CLI for the terminal and scripts.

MCP client  ── Streamable HTTP ──►  onlinesim mcp  ──►  OnlineSim API
                                  http://127.0.0.1:8787/mcp
CLI: onlinesim sms|rent|…  ────────────────────────────┘
                       local config or ONLINESIM_APIKEY

The API key stays on your machine (local config or ONLINESIM_APIKEY). Agents never see it and never pass it in tool arguments.

Quick start

  1. Install the binary (macOS / Linux; Windows and other options in Install):
    curl -fsSL https://raw.githubusercontent.com/on-org/onlinesim-mcp/master/install.sh | sh
    
  2. Save your API key (from the OnlineSim profile) and check it:
    onlinesim login
    onlinesim doctor
    
  3. Start the server and keep it running (or enable autostart):
    onlinesim mcp
    # http://127.0.0.1:8787/mcp
    
  4. Wire your client, e.g. Cursor for this project (others in Connect a client):
    onlinesim mcp install
    
  5. Ask the agent: "Get me a number for Telegram and wait for the code."

Two product lines

Quick SMSRent
WhatA short-lived number for one service (telegram, google, …)A number of your own for days; every SMS to it
Flowbalance → catalog → order → user enters the number → wait / check → cancelrentals → rent → messages → extend / cancel
MoneyThe price is reserved at order and refunded when the order closes without SMSThe price is reserved and charged by the first SMS
Toolsorder_sms_verification, wait_sms_verification, check_sms_verification, cancel_sms_verificationrent_sms_number, get_sms_rental_messages, extend_sms_rental, cancel_sms_rental

Do not mix them: a Quick SMS order id is not a rental receipt id. All tools are described in MCP tools.

Pages

  • Install — install script per OS, agent skill, updates, uninstall.
  • Connect a client — Cursor, Claude Code, VS Code, Codex, Claude Desktop, any HTTP client.
  • MCP tools — every tool: inputs, answer, errors, and the agent flows.
  • CLI — the same operations from the terminal, JSON output for scripts.
  • Configuration — API key, config file, environment, logs, autostart, tray, network safety.
  • Changelog.