VirtualSMS MCP Server
Enables AI assistants to purchase virtual phone numbers, retrieve SMS verification codes, and manage activations through natural language by wrapping the VirtualSMS Consumer API.
README
VirtualSMS MCP Server
An MCP (Model Context Protocol) server that wraps the VirtualSMS Consumer API, allowing AI assistants like Claude, Cursor, and Copilot to purchase virtual phone numbers, retrieve SMS verification codes, and manage activations — all through natural language.
What is VirtualSMS?
VirtualSMS is a platform for renting virtual phone numbers for SMS verification. It supports 200+ services (Telegram, WhatsApp, Google, Instagram, etc.) across 100+ countries with multiple provider backends.
What This MCP Server Does
This MCP server exposes 18 tools that map 1:1 to the VirtualSMS Consumer API actions. It normalizes the API's mixed text/JSON responses into clean structured JSON that LLMs can reason about.
Tool Categories
| Category | Tools | Purpose |
|---|---|---|
| Account | get_balance |
Check account balance |
| Information & Pricing | get_numbers_status, get_countries, get_services_list, get_operators, get_prices, get_prices_extended, get_prices_verification, get_top_countries_by_service |
Browse availability, services, and pricing |
| Ordering | order_number, order_number_v2 |
Purchase virtual phone numbers |
| Activation Management | get_active_activations, check_extra_activation, get_extra_activation, set_activation_status, get_activation_status, get_activation_status_v2 |
Manage ordered numbers and retrieve SMS codes |
| Notifications | get_notifications |
View account alerts and penalties |
Quick Start
Prerequisites
- Node.js 18 or higher
- A VirtualSMS API key (available from your VirtualSMS dashboard)
3-Step Setup
-
Get your API key from the VirtualSMS dashboard.
-
Add the MCP server to your IDE — see INSTALL.md for IDE-specific instructions. The short version for Claude Code:
claude mcp add virtualsms --env VIRTUALSMS_API_KEY=your_api_key_here -- npx -y @virtualsmslabs/mcp -
Start using it — ask your AI assistant:
"Check my VirtualSMS balance" "Get prices for Telegram in Brazil" "Order a number for WhatsApp in Argentina, then check for the SMS code"
Configuration
All configuration is via environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
VIRTUALSMS_API_KEY |
Yes | — | Your VirtualSMS API key |
VIRTUALSMS_API_URL |
No | https://api.virtualsms.de |
Base API URL (override for self-hosted or testing) |
VIRTUALSMS_POOL_PROVIDER |
No | — | Default provider alias: alpha, prime, gamma, or zeta |
Pool Providers
VirtualSMS supports multiple upstream providers behind aliases:
| Alias | Description |
|---|---|
alpha |
Default provider (smsbower backend) |
prime |
Herosms backend |
gamma |
Fivesim backend |
zeta |
Grizzlysms backend |
If VIRTUALSMS_POOL_PROVIDER is not set, the platform auto-routes to the best available provider. You can override it per-call using the poolProvider parameter on most tools.
Tool Reference
Account
get_balance
Get current account balance.
- Parameters: None
- Returns:
{ balance: number }
Information & Pricing
get_numbers_status
Get quantity of available numbers per service.
- Parameters:
country?,operator?,poolProvider? - Returns:
{ "serviceCode_countryId": count, ... }
get_countries
Get list of all available countries.
- Parameters:
poolProvider? - Returns: Map of
countryId→{ id, rus, eng, chn, visible, retry, rent, multiService }
get_services_list
Get available services for a country.
- Parameters:
country?,poolProvider? - Returns:
{ status, services: [{ code, name }] }
get_operators
Get available mobile operators for a country.
- Parameters:
country(required),poolProvider? - Returns:
{ status, countryOperators: ["any", "claro", "vivo", ...] }
get_prices
Get current prices for services.
- Parameters:
service?,country?,poolProvider? - Returns:
{ countryId: { serviceCode: { cost, count } } }
get_prices_extended
Get prices with price tiers.
- Parameters:
service?,country?,freePrice?,poolProvider? - Returns:
{ countryId: { serviceCode: { cnt, physicalCount, freePriceMap, cost } } }
get_prices_verification
Get prices organized by service then country.
- Parameters:
service?,poolProvider? - Returns:
{ serviceCode: { countryId: { count, price } } }
get_top_countries_by_service
Get top 10 countries by purchase share and success rate.
- Parameters:
service(required) - Returns:
[{ country, share, rate }]
Ordering
order_number
Purchase a virtual phone number for SMS verification.
- Parameters:
service(required),country(required),maxPrice?,operator?,phoneException?,forward?,activationType?,language?,useCashBack?,userId?,ref?,poolProvider? - Returns:
{ activationId, phoneNumber }
order_number_v2
Purchase a virtual phone number with richer JSON response.
- Parameters: Same as
order_number+orderId? - Returns:
{ activationId, phoneNumber, activationCost, countryCode, canGetAnotherSms, activationTime }
Activation Management
get_active_activations
Get all current active activations.
- Parameters: None
- Returns:
{ status, activeActivations: [{ activationId, serviceCode, phoneNumber, activationCost, activationStatus, smsCode, smsText, ... }] }
check_extra_activation
Check if a number is available for extra activation.
- Parameters:
id(required — original activation ID) - Returns:
{ status, cost, service, phone, country }
get_extra_activation
Create an extra activation on a previously used number.
- Parameters:
id(required) - Returns:
{ activationId, phoneNumber }
set_activation_status
Change activation status.
- Parameters:
id(required),status(required —"1"ready,"3"retry,"6"finish,"8"cancel) - Returns:
{ success: boolean, action: string }
get_activation_status
Get activation status (text format).
- Parameters:
id(required) - Returns:
{ status, code? }— status is one ofSTATUS_WAIT_CODE,STATUS_WAIT_RETRY,STATUS_OK,STATUS_CANCEL
get_activation_status_v2
Get activation status (JSON format, more detailed).
- Parameters:
id(required) - Returns:
{ status, code?, verificationType?, sms?, call? }
Notifications
get_notifications
Get user notifications (penalties, low balance, admin messages).
- Parameters: None
- Returns:
{ status, notifications: [{ id, type, title, content, read, createdAt }], unreadCount }
Error Handling
The VirtualSMS API uses text-based error codes. This MCP server normalizes them into structured JSON error objects:
{
"error": "NO_NUMBERS",
"message": "No phone numbers available for the requested service/country."
}
Errors are returned as tool results (not thrown as exceptions), so the LLM can reason about them and take corrective action.
Common Error Codes
| Code | Meaning |
|---|---|
BAD_KEY |
Invalid or missing API key |
NO_BALANCE |
Insufficient account balance |
NO_NUMBERS |
No phone numbers available |
WRONG_SERVICE |
Invalid service code |
WRONG_COUNTRY |
Invalid or missing country ID |
WRONG_ACTIVATION_ID |
Invalid activation ID |
EARLY_CANCEL_DENIED |
Cannot cancel within 5 minutes of ordering |
BANNED |
Account is blocked |
NO_ACTIVATION |
No activation found with the given ID |
Installation Guides
For step-by-step installation instructions for your specific IDE, see:
- docs/INSTALL.md — Covers Claude Code, Claude Desktop, Cursor, VS Code (Copilot Chat), Windsurf, Cline, and OpenCode
Guide for LLMs
If you are an LLM looking to install this MCP server autonomously, see:
- docs/LLM-GUIDE.md — Machine-readable instructions for self-installation
Typical Workflow
Here's a typical SMS verification workflow using the MCP tools:
1. get_balance → Check you have funds
2. get_prices(service="wa", country="73") → Check price and availability
3. order_number(service="wa", country="73") → Purchase a number → get activationId
4. set_activation_status(id, status="1") → Signal "ready to receive SMS"
5. get_activation_status(id) → Poll until STATUS_OK:{code}
6. set_activation_status(id, status="6") → Finish the activation
Development
git clone https://github.com/VirtualSMSLabs/mcp.git
cd mcp
npm install
npm run build
npm start
Testing with MCP Inspector
npm run inspector
This launches the MCP Inspector — a web UI for interactively testing MCP tools.
License
MIT — Copyright (c) 2026 VirtualSMS Labs
Links
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.