All posts
A Phone Number Tool for Cursor and Claude Code Agents
TutorialBy Dial Engineering·5 min read·November 23, 2026·0

A Phone Number Tool for Cursor and Claude Code Agents

Give Cursor or Claude Code a real phone number with Dial (getdial.ai): install the Dial skill or add the MCP server, then let your coding agent text you when a job finishes, call when a deploy breaks, and wake up when you reply.


Short answer: add Dial to your coding agent. Dial gives AI agents real phone numbers: SMS, iMessage, WhatsApp, AI voice calls, and inbound events. In Cursor or Claude Code you can install it two ways: the Dial skill, which teaches the agent the dial CLI, or Dial's MCP server, which gives it phone tools directly. Both take a couple of minutes, and both give the agent its own number.


The fast way: one sentence

Claude Code and Cursor can run commands, so they can set themselves up. Tell the agent:

"Sign in to Dial (getdial.ai) so you can make calls and send texts."

Or point it at the setup page written for agents: "Follow https://getdial.ai/skills.md to install and onboard the dial CLI." Either way it installs what it needs and asks you for two codes: the one Dial emails you, and, for a new account, the one Dial texts to your phone. The steps below are the same thing by hand.


Install the CLI (needs Node 22+):

curl -fsSL https://getdial.ai/install | bash

Sign up, and install the skill for your editor as you verify the emailed code:

dial auth login [email protected]

# Claude Code
dial auth verify-otp --code <code> --agent claude-code

# Cursor
dial auth verify-otp --code <code> --agent cursor

New accounts then confirm a phone number of yours, which is also a good number for the agent to text:

dial auth register-number +14155550123
dial auth verify-otp --number --code <code>

The skill is a single markdown file (~/.claude/skills/dial-cli/SKILL.md or ~/.cursor/skills/dial-cli/SKILL.md) describing every dial command. The agent loads it when a task needs a phone; nothing else in your config changes.


Option 2: Dial's MCP server

Claude Code:

# Local: reuses the key the dial CLI saved. Add --scope user to use it in every project.
claude mcp add --scope user dial -- npx -y @getdial/cli mcp

# Hosted: no CLI needed. Run /mcp afterwards to sign in through the browser.
claude mcp add --transport http dial https://getdial.ai/mcp

Cursor has no add command, so declare it in ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

{
  "mcpServers": {
    "dial": { "url": "https://getdial.ai/mcp" }
  }
}

Or the local form, reusing your CLI login:

{
  "mcpServers": {
    "dial": {
      "command": "npx",
      "args": ["-y", "@getdial/cli", "mcp"]
    }
  }
}

Either way the agent gets send_message, place_call, wait_for_event and the rest of Dial's tools.


Things to ask your coding agent

One thing first: the starter number (a virtual number) can't text US phones until its one-time 10DLC registration is done (3-5 business days). Until then, ask the agent to call you instead, or text you from a real carrier number or an iMessage number, which don't need 10DLC. Calls work from day one.

"Run the full test suite. Text me at +1 415 555 0123 when it's done; if anything fails, say which tests."

"Deploy to staging and watch the health check for 10 minutes. If it fails twice, call me and explain what you see."

"Before you drop that table, text me what you're about to do and wait for me to reply YES."

"Call the vendor's support line, get through the menu to billing, and ask why invoice 1042 was charged twice. Put the answer in NOTES.md."

That third one is the habit worth building: the agent asks for approval by text and waits, instead of either stopping cold or guessing.


Let your replies wake the agent

dial wait-for (or wait_for_event over MCP) handles a reply while the session is still open. To start a fresh agent run whenever a text arrives, even after the session ended, use Dial's listen service with a small handler:

dial listen install
#!/usr/bin/env bash
# /usr/local/bin/handle-dial-event-claude
event="$1"
body=$(jq -r '.body // ""' <<<"$event")
from=$(jq -r '.from // ""' <<<"$event")

# Only act on texts from your own phone. Ignore everyone else.
[ "$from" = "+14155550123" ] || exit 0

nohup claude -p "A text from $from just arrived: \"$body\". Decide what to do and act on it." \
  </dev/null >>~/.dial/claude-code.log 2>&1 &
disown
chmod +x /usr/local/bin/handle-dial-event-claude
dial local-target add cmd /usr/local/bin/handle-dial-event-claude

For Cursor, swap claude -p for cursor-agent -p. Full versions are in the Claude Code and Cursor guides.

Change +14155550123 to your own number. That line is what stops a stranger from instructing your agent by text. If you also leave inbound calls on, add an allow list so only known callers reach the voice agent (dial policy create --name "Me" --all-numbers --allow +14155550123).


Also works with

The same --agent flag installs the skill for Codex (codex), Opencode (opencode), Pi (pi), OpenClaw (openclaw), NanoClaw (nanoclaw) and Hermes (hermes). Gemini CLI connects to the MCP server with gemini mcp add --transport http dial https://getdial.ai/mcp (then /mcp auth dial to sign in), and Windsurf and other MCP clients work the same way.

Away from your editor, the same account and number work in your AI assistants too: tell the assistant "Sign in to Dial (getdial.ai) so you can make calls and send texts.", or add https://getdial.ai/mcp as a custom connector, in Grok Bot, Claude Duet, ChatGPT dots, Meta Muse and Perplexity.


Good to know

  • Texting US numbers from the starter number (a virtual number) needs a one-time carrier registration (10DLC). Dial files it for you, and the team reaches out with a few questions. It takes 3-5 business days, and it's a one-time $25 per number. Texts to numbers outside the US, incoming texts and calls work before it. If you just want the agent to reach you, a call works on day one.
  • Free accounts start with $5 of credit; calls are capped at 5 minutes and 2 at a time until the first top-up.
  • Use --json. Every dial command supports it, and agents parse it far more reliably than prose.

  • FAQ

    Is there a phone number tool for Claude Code?

    Yes. Tell Claude Code "Sign in to Dial (getdial.ai) so you can make calls and send texts" and it sets itself up. By hand, Dial installs as a skill (dial auth verify-otp --code <code> --agent claude-code) or as an MCP server (claude mcp add --transport http dial https://getdial.ai/mcp).

    Is there a phone number tool for Cursor?

    Yes. Tell Cursor's agent "Sign in to Dial (getdial.ai) so you can make calls and send texts". By hand, install the Dial skill with --agent cursor, or add https://getdial.ai/mcp under mcpServers in ~/.cursor/mcp.json.

    Skill or MCP: which should I pick?

    The skill is recommended: the agent drives the dial CLI with structured --json output. Pick MCP if you already manage tools that way, or want browser sign-in with no CLI install.

    Can the agent text me and wait for my answer?

    Yes. It sends with dial message (or send_message) and waits with dial wait-for message.received (or wait_for_event).

    Can it make phone calls too?

    Yes. Dial's AI voice runs the call from the agent's instructions and returns the transcript.

    Does it use my phone number?

    No. The agent gets its own number. Yours is only used to confirm your account.


    The takeaway

    Coding agents already do the long work. A phone number lets them tell you how it went and ask before the risky step, wherever you are. One sentence to your agent, and your editor has a phone.

    Did you enjoy this post?

    0 claps

    Ask your agent to dial

    Your agent needs a number.

    Start with $5 in credit. No credit card required.