mcpField
V
Virtnumber

Virtnumber

Remote
virtnumber.comCommunication0Updated 6d ago

About Virtnumber

Virtnumber is an MCP server for AI agents to rent dedicated virtual phone numbers and manage their SMS. It supports number pricing, incoming-message retrieval and sending on two-way numbers in the US and Sweden.

Key features

  1. 01Check balances, permissions, and spending limits
  2. 02View number plans and prices
  3. 03Rent and cancel phone numbers
  4. 04Read SMS and detect codes
  5. 05Wait for incoming messages
  6. 06Send SMS from supported numbers

Use cases

  1. 01Receive verification codes on a rented number
  2. 02Check prices before renting a number
  3. 03Send SMS from a US or Swedish two-way number

MCP support

The remote MCP server at https://www.virtnumber.com/mcp exposes tools for account checks, number rental, and SMS handling. Clients can connect using OAuth 2.1 with PKCE, or API user and token headers for headless agents.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://www.virtnumber.com/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.