AI_Calling Retell HubSpot MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI_Calling Retell HubSpot MCP Servercheck tour availability in Madrid for Thursday morning"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AI_Calling — Retell HubSpot MCP Server
Middle layer between Retell AI (Cara), HubSpot Scheduler/CRM, and Supabase for tour availability, booking, and call logging.
Retell call → Render MCP server → HubSpot Scheduler API + CRM → Supabase loggingArchitecture
MCP tool | Purpose |
| Check HubSpot availability for virtual or in-person tours |
| Book a tour after guest confirms |
| Save Retell session metadata to Supabase |
| Log tour interest without booking |
HTTP routes
Route | Auth | Purpose |
| No | Render health check |
| Bearer | MCP Streamable HTTP endpoint for Retell |
| Bearer | Retell post-call webhook → Supabase |
| Bearer | HubSpot deals ( |
Related MCP server: HubSpot MCP Server
Local setup
Copy environment file:
cp .env.example .envFill in
.envwith your real values (never commit.env).Run Supabase SQL from
supabase/schema.sqlin the Supabase SQL editor.Install and start:
npm install npm run devVerify health:
curl http://localhost:3000/health
Environment variables
Use these exact names locally (.env) and in Render (Dashboard → Web Service → Environment).
Variable | Description |
| Server port ( |
|
|
| Random secret; Retell sends |
| HubSpot Private App Retell Connection token only |
|
|
| Supabase project URL |
| Supabase service_role key (server-side only) |
|
|
| In-person meeting page URL |
| Virtual meeting page URL |
|
|
|
|
|
|
| Retell API key (required for call sync) |
|
|
|
|
| Comma-separated deal properties that store a Retell call id |
|
|
|
|
|
|
Where to get secrets
HubSpot token: Settings → Integrations → Private Apps → Retell Connection → Access token
Supabase service role: Supabase → Project Settings → API →
service_rolekeyMCP secret: Generate a long random string; use the same value in Retell MCP headers
Important: Do not use the Supabase publishable (anon) key for server-side inserts if RLS is enabled. Use the service role key in Render only — never expose it client-side or in Retell.
Important: Do not use the old Carabanchel_Direct_Booking_Integration HubSpot app. Use Retell Connection only.
HubSpot scopes required
The Retell Connection private app needs:
crm.objects.contacts.writecrm.objects.contacts.readcrm.objects.deals.writecrm.objects.deals.readcrm.schemas.deals.readcrm.objects.contacts.read(contact phone lookup during call sync)crm.schemas.contacts.readcrm.objects.owners.readautomationscheduler.meetings.meeting-link.readmeetings-write← required for booking; add before live booking tests
Render deployment
Setting | Value |
Build command |
|
Start command |
|
Health check path |
|
Instance | Starter recommended (Free tier cold starts can exceed Retell's 20s MCP timeout) |
Do not use yarn or yarn start — this repo uses npm (package-lock.json). Using yarn alone skips the TypeScript build and can resolve incompatible dependency versions.
Recommended Render settings:
Setting | Value |
Build command |
|
Start command |
|
Health check path |
|
If Render still uses yarn for build, the app will start via tsx (commit 1a6921c+) but you should switch to npm for reliable installs. Node 22 is required (see .nvmrc).
Add all environment variables from the table above in Render → Environment.
After changing build/start commands in the Render dashboard, trigger Manual Deploy → Clear build cache & deploy.
Connect Retell MCP
In Retell → MCP → Add MCP:
Field | Value |
MCP server URL |
|
Timeout |
|
Headers |
|
Select these tools after deploy:
get_tour_availabilitybook_tour(requires HubSpotmeetings-writescope)log_retell_sessionlog_tour_preference
Optional webhook (post-call): POST https://ai-calling-j1hu.onrender.com/webhooks/retell with the same bearer header.
Cara prompt behavior
When the guest wants a tour:
Ask whether they prefer a virtual or in-person tour.
Ask which day works best.
Ask what Madrid time generally works best.
Call
get_tour_availability.Offer one or two available slots.
Ask clearly: "Should I book that for you?"
Only after the guest clearly confirms, call
book_tour.Do not say the tour is booked until
book_tourreturns success.If booking fails, say: "No problem, I'll send you the tour links by WhatsApp so you can choose the time that works best for you."
Log the result with
log_retell_sessionorlog_tour_preference.
Manual test scripts
# Test HubSpot availability (requires HUBSPOT_ACCESS_TOKEN in .env)
npx tsx scripts/testAvailability.ts
# Test Supabase inserts (requires SUPABASE_* in .env)
npx tsx scripts/testSupabaseInsert.ts
# Test live booking (guarded — only runs when enabled)
RUN_BOOKING_TEST=true TEST_BOOKING_EMAIL=you@example.com npx tsx scripts/testBookTour.tsPre-live checklist
Run
supabase/schema.sqlin SupabaseDeploy to Render with all env vars
Confirm
GET /healthreturns{ "ok": true }Run
testAvailability.tsandtestSupabaseInsert.tsConnect Retell MCP with bearer auth
Test a call with your own HubSpot contact and phone
Add
meetings-writescope if booking fails with missing scope errorsOnly then enable for real leads
Supabase tables
retell_sessions— Retell call/session metadata plus HubSpot deal/contact enrichment (upsert bysession_id)mcp_tool_calls— MCP tool request/response logstour_bookings— Tour bookings and preferencessync_runs— Audit log for HubSpot deal → Retell call sync jobs
See supabase/schema.sql for full schema. Existing projects should also run:
HubSpot fields stored on retell_sessions after sync:
Column | Source |
| Deal ID |
| Deal name |
| Pipeline label (e.g. Hubs B2C - Carabanchel) |
| Stage label (e.g. Contacted) |
| Stage internal ID |
|
|
|
|
|
|
| Associated contact ID |
| Contact first + last name |
| Contact email |
| Contact phone |
HubSpot deal → Retell call sync
Syncs deals where ai_call_attempted = true into retell_sessions, linked by hubspot_deal_id.
Matching order (first hit wins):
Deal property in
HUBSPOT_RETELL_CALL_ID_PROPERTIES(default:retell_call_id,retell_session_id,ai_retell_call_id)Retell call
metadata.hubspot_deal_idAll syncable Retell calls to the deal's associated contact phone (connected and failed dials:
dial_no_answer,dial_busy,telephony_provider_permission_denied)
Failed attempts are stored with end_reason = the Retell disconnection reason and session_outcome = failed_dial.
One-time historical backfill (local or Render shell):
npm run backfill:callsOngoing sync — option A: Render Cron Job (recommended)
Setting | Value |
Schedule |
|
URL |
|
Header |
|
Ongoing sync — Option B: in-process scheduler (active in render.yaml)
Set on the Render web service:
Variable | Value |
|
|
|
|
|
|
| Your Retell API key |
The server runs an incremental sync ~60s after startup, then every hour. Only deals modified since the last successful sync are re-processed (24h overlap buffer). Overlapping runs are skipped if a previous sync is still in progress.
Redeploy after changing environment variables in Render (Manual Deploy if needed).
Manual full re-sync:
curl -X POST "https://ai-calling-j1hu.onrender.com/cron/sync-call-data?full=true" \
-H "Authorization: Bearer <MCP_SERVER_SECRET>"Security
No secrets in code or
.env.example.envis gitignoredBearer auth on
/mcpand/webhooks/retellLogs scrub Authorization headers and token values
All tool inputs validated with Zod
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tech4lifeatepisode/AI_Calling'
If you have feedback or need assistance with the MCP directory API, please join our Discord server