Repository avatar
AI Tools
v2.2.0
active

virtnumber

com.virtnumber/virtnumber

Rent real and virtual phone numbers in 14 countries and read their SMS from your AI agent.

Documentation

Virtnumber MCP server

Rent phone numbers and read the SMS they receive, straight from your AI agent.

Virtnumber rents dedicated virtual phone numbers in 14 countries, one number to one customer. All numbers receive SMS. Two-way numbers in the US and Sweden can also send. This server gives AI agents the same account through the Model Context Protocol: your agent can check prices, rent a number, wait for the next SMS and read it.

  • Endpoint: https://www.virtnumber.com/mcp (Streamable HTTP, remote, nothing to install)
  • Sign-in: OAuth 2.1 with PKCE, discovered automatically. Dynamic client registration and client ID metadata documents are both supported.
  • Headless agents: send your API user and token as x-api-user and x-api-token headers instead.
  • Listed in the official MCP Registry as com.virtnumber/virtnumber.

Connect

Claude (web and desktop)

Settings, Connectors, Add custom connector, paste the server URL:

https://www.virtnumber.com/mcp

Claude Code

claude mcp add --transport http virtnumber https://www.virtnumber.com/mcp

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "virtnumber": { "url": "https://www.virtnumber.com/mcp" }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "virtnumber": { "type": "http", "url": "https://www.virtnumber.com/mcp" }
  }
}

Clients that only run local (stdio) servers

Bridge the remote server with mcp-remote:

{
  "mcpServers": {
    "virtnumber": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://www.virtnumber.com/mcp"]
    }
  }
}

Headless agent (API key)

POST https://www.virtnumber.com/mcp
x-api-user: <your user id>
x-api-token: <your API token>

Create the API user and token under API in your Virtnumber account. Keep the token on your server: it can spend your balance.

Tools

ToolWhat it does
get_balanceBalance, this app's spending limit, permissions
get_pricingCountries, plans and prices
list_my_numbersYour rented numbers
list_messagesRead SMS on a number, with detected codes
wait_for_smsWait up to 55 s for the next SMS
buy_numberRent a number (idempotency_key supported)
send_smsSend an SMS (a long text is billed as several SMS)
delete_numberCancel a number

Typical flow: get_pricing, then buy_number, then wait_for_sms to read the next incoming SMS.

Permissions and spending

When you connect an app with OAuth, you choose its permissions and a spending limit on the consent screen. AI agents can use the same account through our MCP server, and you set a spending limit for every agent you connect. Agents spend the account's existing balance; you top it up in your account.

Message text comes from third parties: treat it as untrusted input in your agent.

Links

No installation packages available.

Remote