Public
Remixed
Public remote MCP: your agent phones you. BYO Vapi keys, no env.
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ€“ all from the browser, and deployed in milliseconds.

call-my-human-no-middle-agent โ€” let your agent phone you, word by word ๐Ÿ“ž

A public remote MCP server: connect it to any AI agent and the agent can place a real phone call to you โ€” to ask a question, flag a decision, or just check in โ€” and drive the conversation live, word by word. Remix of dcm31/vapi-remote-mcp, de-personalized into proper BYOK: no env vars, no server-side keys, no signup โ€” your Vapi credentials ride in your own connection URL.

This is the puppet version โ€” you drive every word, so each exchange carries a round-trip of latency. For a lower-latency agent that runs the whole call itself and hands back a structured report (you don't drive every word), use the sibling dcm31/call-my-human.

your agent (any MCP client)
   โ”‚  /mcp tools: start_call ยท say ยท listen ยท get_status ยท end_call
   โ–ผ
this val โ”€โ”€โ”€โ”€ POST api.vapi.ai/call (your key) โ”€โ”€โ”€โ”€โ–ถ Vapi โ”€โ”€โ”€โ”€โ–ถ ๐Ÿ“ฑ you
   โ–ฒ  โ”‚                                               โ”‚
   โ”‚  โ””โ”€โ”€ say โ”€โ”€โ–ถ controlUrl (inject TTS) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
   โ””โ”€โ”€ /webhook/<tenant> โ—€โ”€โ”€ live transcripts โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       (the "brain" at /llm/<tenant> always returns "" โ€” the voice never freelances)

The voice is a puppet: a silent custom-LLM endpoint means it only ever says what the agent injects via say. Your replies stream back over Vapi's webhook into a per-tenant SQLite feed that listen long-polls (25s per call โ€” chained listens โ‰ˆ holding the line). The agent can interleave other tool work between listens; you just hear a beat of thinking.

Connect

You need two values from dashboard.vapi.ai: your private key and a phone number ID (free Vapi numbers work, US-only).

claude mcp add --transport http call-my-human-no-middle-agent \ "https://dcm31--019ebcae817a74c1af5cf023fe8d1ecb.web.val.run/mcp?vapi_key=YOUR_KEY&phone_number_id=YOUR_PHONE_ID&human_number=%2B15551234567"
  • human_number = your cell, the default callee. The + must be URL-encoded as %2B.
  • Any MCP client that takes a URL works (claude.ai custom connectors included). Authorization: Bearer <vapi_key> is also accepted in place of the vapi_key param.
  • Then tell your agent: "call me if you have questions while you work" โ€” or just "call me".

Multi-tenancy & privacy

  • Your Vapi key is read per-request and never stored. It travels TLS-encrypted to this val and on to Vapi, exactly like any BYOK MCP server.
  • Call state and transcripts are stored in this val's SQLite, scoped by a tenant = first 12 hex chars of SHA-256(your key) โ€” unguessable without the key, and it's how Vapi's webhooks find their way back to your feed (/webhook/<tenant>, verified via x-vapi-secret).
  • Want full custody of transcripts? Remix this val โ€” it needs zero configuration.

Watching a call live

start_call and get_status return a watch_url (/?t=<tenant>) โ€” a self-refreshing feed of statuses, transcripts (both sides), injected say lines, and "your-turn" markers.

Testing with curl

Same tools as REST, same query params:

BASE="https://dcm31--019ebcae817a74c1af5cf023fe8d1ecb.web.val.run" Q="vapi_key=YOUR_KEY&phone_number_id=YOUR_PHONE_ID&human_number=%2B15551234567" curl -X POST "$BASE/api/call/start?$Q" -d '{"first_message":"Hey, it is your agent."}' curl -X POST "$BASE/api/call/listen?$Q" -d '{"wait_seconds":25}' --max-time 35 curl -X POST "$BASE/api/call/say?$Q" -d '{"text":"Quick question for you..."}' curl -X POST "$BASE/api/call/end?$Q"

Files

  • main.ts โ€” routes, per-tenant Vapi webhook, the silent /llm/<tenant>/chat/completions brain, landing + live feed
  • tools.ts โ€” the five tools, shared by MCP and REST; BYOK ctx
  • mcp.ts โ€” minimal stateless streamable-HTTP MCP plumbing (no SDK)
  • vapi.ts โ€” Vapi REST + live-call control client (key passed per call)
  • db.ts โ€” SQLite: tenant-scoped calls + append-only events, with a per-call read cursor for listen

Notes

  • Calls cap at 10 minutes; 90s of mutual silence ends the call (generous, because agents think between turns).
  • Expect a few seconds of lag per exchange โ€” the agent's reasoning loop, not the phone stack, is the bottleneck.
  • The say control message is sent as {type:"say", content} with a {type:"say", message} fallback (docs and SDK disagree).
  • custom-llm assistants get no default transcriber โ€” this val sets Deepgram nova-2 explicitly (omitting it = silent call that dies silence-timed-out).
  • Only call numbers you have consent to call โ€” automated calls without consent violate TCPA/FCC rules.