Back to Blog
Developer ResourcesMarch 28, 20265 min read

How to Use AgentCall MCP Server with Claude Code in VS Code

Step-by-step guide to connecting AgentCall's 19 MCP tools to Claude Code in VS Code. Give Claude phone numbers, SMS, OTP extraction, and voice calls.

Claude Code is Anthropic's AI coding agent that runs directly in your terminal and VS Code. With MCP (Model Context Protocol) support built in, you can give Claude access to external tools like AgentCall — letting it provision phone numbers, send SMS, extract OTP codes, and make voice calls, all from your editor.

This guide walks you through connecting AgentCall's 19 MCP tools to Claude Code in under 2 minutes.

What You Need

  • Claude Code — install via CLI (npm install -g @anthropic-ai/claude-code) or search "Claude Code" in the VS Code Extensions Marketplace and install the official Anthropic extension directly
  • An AgentCall API key (free at agentcall.co/sign-up)

Step 1: Get Your AgentCall API Key

Sign up at agentcall.co/sign-up and navigate to the API Keys page in your dashboard. Copy your API key (it starts with ac_live_).

The free plan gives you 1 phone number, 10 SMS/month, 5 call minutes, and 5 OTP extractions. No credit card required.

Step 2: Add AgentCall MCP Server to Claude Code

Open your terminal in VS Code and run:

claude mcp add agentcall -- npx -y @agentcall/mcp-server --api-key YOUR_API_KEY

Replace YOUR_API_KEY with your actual ac_live_ key.

Alternatively, you can set the API key as an environment variable for better security:

# Set the environment variable
export AGENTCALL_API_KEY=ac_live_your_key_here

# Add the MCP server
claude mcp add agentcall -- npx -y @agentcall/mcp-server

Step 3: Verify the Connection

Start Claude Code and ask it to list the available tools. You should see 19 AgentCall tools registered:

You: What MCP tools do you have for phone numbers?

Claude: I have access to AgentCall's MCP tools:
- provision_number — Get a new phone number
- send_sms — Send a text message
- get_otp_code — Extract OTP verification codes
- initiate_ai_call — Make an AI-powered phone call
... and 15 more tools

Step 4: Start Using Phone Tools

Now you can ask Claude to perform phone operations directly. Here are some examples:

Provision a Phone Number

You: Provision a local US phone number for me

Claude: I'll provision a local US number for you.
[Calls provision_number with country: "US", type: "local"]

Done! Your new number is +1 (314) 555-0123
Number ID: num_abc123

Send an SMS

You: Send an SMS from my new number to +12125559876 saying "Hello from my AI agent"

Claude: [Calls send_sms]
SMS sent successfully.

Test OTP Verification

You: I entered my number in a signup form. Wait for the OTP code.

Claude: [Calls get_otp_code with long-polling]
Got it! The verification code is: 847291

Make an AI Voice Call

You: Call +12125559876 and ask them about their business hours

Claude: [Calls initiate_ai_call with system prompt]
Call completed. Here's the transcript:
...

Using the Hosted MCP Server (Alternative)

If you don't want to run npx locally, you can connect to AgentCall's hosted MCP server. Add this to your Claude Code MCP config:

claude mcp add agentcall --transport http https://agentcall-mcp-production.up.railway.app/mcp

Using via Smithery

AgentCall is also available on Smithery, the MCP server registry:

smithery mcp add agentcall/agentcall

All 19 Tools at a Glance

Once connected, Claude Code has access to these tools:

  • provision_number, list_numbers, get_number, release_number
  • send_sms, get_sms_inbox, get_otp_code
  • initiate_call, initiate_ai_call, get_call_status, get_call_transcript, list_calls
  • create_webhook, list_webhooks, delete_webhook
  • get_usage, get_plan, list_invoices, get_account

Next Steps

Questions? Email us at support@agentcall.co.

Ready to get started?

Give your AI agents their own phone numbers in minutes.

Start Building