CallRail MCP
This MCP server exposes the CallRail REST API v3, enabling AI assistants and MCP-compatible clients to manage call tracking, reporting, and agency operations. Key capabilities include:
Reporting & Analytics
List and filter calls by company, date range, source, and answered status
Summarize call activity with aggregate stats (totals, answered/missed, by source, duration)
Search calls by phone number, get recordings (signed audio URL), and transcripts (via CallScribe)
List form submissions and text message conversations
Call & Lead Management
Update calls — notes, tags, spam flags, customer names, and lead status
Add or remove tags additively (without overwriting existing tags)
Bulk update calls matching a filter with a dry-run safety mode
Update or manually create form submissions to backfill offline leads
Tag Management
Full CRUD (list, get, create, update, delete) on company-level tags
Tracker (Phone Number) Management
List, get, create, update, and delete call tracking numbers
Provision new numbers with specific configurations (requires
confirm_billing=True; ~$3/month)Soft-delete trackers (releases number, preserves history)
Account & Company Management
List, get, create, update, and delete companies and users
Invite users by email, assign roles and company access
Agency Aggregation & Analytics
Per-company cost attribution (minutes, numbers, estimated cost share)
Compare performance metrics between time periods with per-company deltas
Spam detection — heuristically flag likely-spam calls with optional auto-tagging
Google Ads conversion eligibility auditing (gclid, duration, answered status)
Notifications & Integrations
Full CRUD on notification rules for call/text/form events across channels (email, desktop, push)
List integrations per company (Google Ads, Facebook, Slack, Webhooks, etc.)
Read webhook subscriptions (write operations blocked by CallRail permissions)
Outbound Calling
Place outbound calls via CallRail bridge dialing (requires
confirm_dialing=True— dials real phones)
Allows querying Facebook integration details attached to a company.
Allows querying Google Ads integration details and checking call conversion eligibility for Google Ads.
Allows querying Slack integration details attached to a company.
callrail-mcp
A Model Context Protocol server that exposes the CallRail REST API v3 to any MCP-compatible client (Claude Code, Claude Desktop, Cursor, etc.).
Created by Steve Japalucci — Founder of Pittsburgh Digital Marketing Agency (PGHDMA).
What you can ask Claude to do
Once installed, any MCP-aware assistant can answer things like:
Reporting
"Pull last week's calls for Alan Construction, grouped by source"
"Show me every missed call from Google Ads this month"
"Find any calls from 412-555-1234 across all clients in the last 90 days"
"Get the transcript for call CAL019abc..."
Agency cost attribution (new in v0.4)
"Why is my CallRail bill $174? Break it down by client"
"Which client is the biggest minute user this cycle?"
Conversion debugging (new in v0.4)
"Why didn't this call convert in Google Ads? CAL019..."
"Is this 58-second call eligible to count as a Google Ads conversion?"
Tag + tracker management
"Tag this call as 'lead' and add a note"
"Provision a new Google Ads call-extension tracker for Renaissance in area code 412" (requires
confirm_billing=True— costs ~$3/mo)
Related MCP server: Kommo CRM MCP Server
Installation
# Recommended: pipx for isolated CLI install
pipx install callrail-mcp
# Or with pip
pip install callrail-mcpTo install from source (latest unreleased):
pipx install git+https://github.com/pghdma/callrail-mcp.gitAuth
Get an API key at Settings → API Keys in your CallRail account. You need Account Admin permission to create one.
Provide it one of two ways:
Option 1: environment variable (recommended for most setups)
export CALLRAIL_API_KEY="your_key_here"Option 2: key file
mkdir -p ~/.config/callrail
echo "your_key_here" > ~/.config/callrail/api-key.txt
chmod 600 ~/.config/callrail/api-key.txtOr override with CALLRAIL_API_KEY_FILE=/path/to/key.txt.
Configure your MCP client
Claude Code / Claude Desktop (~/.claude.json or claude_desktop_config.json)
{
"mcpServers": {
"callrail": {
"command": "callrail-mcp",
"env": {
"CALLRAIL_API_KEY": "your_key_here"
}
}
}
}If you installed via pipx, callrail-mcp will be on your PATH automatically. Otherwise, point command at the full path to the executable.
Cursor / other clients
The server speaks standard MCP stdio. Any client that supports stdio MCP servers will work — just run callrail-mcp as the command.
Available tools
59 tools total — ~95% of CallRail's REST API v3 surface. Read tools, write tools, tracker provisioning, agency aggregation, account management (Companies/Users CRUD), notifications, integrations discovery, outbound calls, offline-lead backfill via create_form_submission, and (new in v1.1) leads, SMS-thread lead management, server-side analytics, and per-call page views.
Read tools
Tool | Purpose |
| List accessible CallRail accounts |
| List companies (clients) under an account. Optional |
| List tracking phone numbers + their source mapping. Optional |
| Full detail for one tracker |
| Paginated call list — filter by company / date / source / answered |
| Full detail for a specific call |
| Aggregate stats (total, answered, by source, duration) for a window |
| CallRail Form Tracking submissions |
| SMS conversations |
| Account users |
| Recording URL (if recording enabled) |
| Conversation Intelligence transcript |
| Find calls by phone number across a window |
| List tags in account or filtered to one company |
Write tools (v0.2+)
Tool | Purpose |
| Update note, tags, spam flag, customer name, lead status |
| Additive/subtractive tag changes (preserves existing) |
| Same field surface as |
| Full CRUD on the per-company tag taxonomy |
Tracker provisioning (v0.3+)
Tool | Purpose |
| Provision a new tracking number. Requires |
| Update mutable settings: name, destination, whisper, greeting, SMS |
| Soft-delete a tracker (releases the phone number, preserves history) |
Account management (v0.6+)
Tool | Purpose |
| Full company (client) CRUD. Free — CallRail bills per number, not per company. Soft-delete semantics |
| Full user CRUD. |
| Single tag detail (completes tag CRUD) |
| Single form-submission detail (was list+update only) |
| Single SMS conversation detail with all messages |
| Manually create a form submission (backfill walk-in / paper-form / offline leads) |
Notifications + Integrations (v0.7+)
Tool | Purpose |
| Full per-user alert-rule CRUD (who gets pinged on which call/text/form event) |
| Discover GMB / Google Ads / Facebook / Slack / Webhook integrations attached to a company |
| Read webhook subscriptions (write CRUD blocked by CallRail account permissions — see "Out of scope" below) |
Outbound calling (v0.7+)
Tool | Purpose |
| Place an outbound call (CallRail dials your tracker first, then bridges to recipient). Requires |
Validation is strict: phone-number format, area code (^\d{3}$), pool_size ∈ [1, 50] (safety cap to prevent accidental 5-figure provisioning bills), name/whisper/greeting length caps, source-type enum (12 values: the 10 documented at apidocs.callrail.com plus facebook_all / bing_all which are proven in production but still absent from the docs). Tag colors validate against the full documented 24-color set.
Leads & server-side analytics (v1.1+)
Tool | Purpose |
| CallRail's deduplicated person records + full cross-channel history (calls + forms + texts) per lead, with first/last-touch attribution |
| SMS-thread lead management — tag / note / qualify texting leads like calls ( |
| Server-side call aggregation ( |
| Per-day call-volume trend line ( |
| Server-side form-submission totals |
| The visitor's page-view journey behind a call — pairs with |
Agency aggregation (v0.4+)
Tool | Purpose |
| Per-company cost-attribution breakdown for the cycle. Returns minutes used, active numbers, estimated $ cost share — sorted by biggest cost driver. Useful for "which client is burning my CallRail budget" |
| Audit whether a specific call qualifies as a Google Ads conversion. Checks |
| Compare current N-day window vs previous N-day window. Per-company minute/call deltas + biggest mover. Catches traffic trends before they hit the invoice |
| Apply a single update (tag / note / lead_status / spam) to every call matching a filter. |
| Heuristically flag likely-spam calls (short duration, unanswered, repeat-caller patterns). Optional |
All tools accept account_id optionally — if omitted, the first accessible account is auto-resolved. Most accept company_id to filter to a single client.
How this compares to CallRail's official MCP server
CallRail now offers an official hosted MCP server (documented at apidocs.callrail.com) — OAuth 2.0, ~30 tools, with the server URL "provided by your CallRail account team." It's a good option if you want a fully managed remote server.
This project remains different on purpose:
callrail-mcp (this project) | Official CallRail MCP | |
Install |
| URL provisioned by your CallRail account team |
Hosting | Local stdio (your API key never leaves your machine) | Hosted remote (OAuth) |
Tools | 59 | ~30 |
Agency tooling |
| Not offered |
Safety guards |
| — |
Source | MIT, open, auditable | Closed |
Both speak the same underlying REST API v3. If you're an agency running Claude against multiple client accounts and want cost attribution and bulk workflows, this project is built for exactly that.
Out of scope (deliberately not implemented)
The following CallRail capabilities are NOT in this MCP, by design. PRs welcome if you have an account that supports them — or open an issue and we'll prioritize.
Blocked by CallRail account permissions (returns 403)
These endpoints exist but require account upgrades / additional permissions our standard CallRail account doesn't have. Verified live 2026-04-24:
Send SMS (
POST /text-messages.json) — needs A2P SMS registration / dedicated SMS API permission. CallRail enforces TCPA-compliance keywords (STOP / CANCEL / UNSUBSCRIBE) on outbound text messages.Webhook integration create / update / delete (
POST /integrations.jsonwithtype=Webhook) — needs Integration-Admin permission. CallRail manages webhooks via the Integrations framework, not a standalone endpoint.
Not exposed by CallRail's REST API (UI-only on standard plans)
These have no API equivalent at all — managed exclusively via the CallRail web UI:
Outbound Caller IDs — verification flow for outbound caller identification.
Numbers — account-level number ownership, porting, transfers.
Call Flows — IVR builder / call routing tree configuration.
Custom Fields CRUD — custom data columns are readable as part of call/form responses but the schema management endpoint isn't exposed.
Do Not Call list — DNC number management.
Will work on if/when
Either CallRail upgrades the API or the user upgrades their account permissions, the above can be added without breaking changes — we'd just expose them as new MCP tools.
Rich field selection
The CallRail API returns a lean default payload. Ask for more fields on list_calls / get_call / list_form_submissions via the fields parameter:
fields=company_name,source_name,keywords,landing_page_url,device,first_call,value,tags,note,gclid,fbclid,utm_source,utm_medium,utm_campaign,utm_content,utm_term,referrer_domainSee the CallRail API docs for the full field catalog per resource.
Examples
Claude Code
> List companies under our CallRail account.
(Claude calls list_companies → returns clients with IDs and primary numbers)
> Pull today's calls for company COM019ab... — include source and keyword.
(Claude calls list_calls with company_id, days=1, fields="source,keywords,landing_page_url")
> Why is my CallRail bill $174 this month? Break it down by client.
(Claude calls usage_summary → returns per-company cost share, sorted by biggest user)
> Why didn't this call show up as a conversion in Google Ads? CAL019dbf79...
(Claude calls call_eligibility_check → returns gclid/duration/answered checks
+ targeted reason like "duration 58s under Google Ads minimum (60s)")
> Provision a new Google-Ads-call-extension tracker for Alan Construction in 412.
(Claude calls create_tracker — refuses unless you also pass confirm_billing=True
since it incurs a ~$3/mo charge)Direct Python usage
The CallRailClient is also usable as a library:
from callrail_mcp.client import CallRailClient
cr = CallRailClient() # picks up CALLRAIL_API_KEY
aid = cr.resolve_account_id()
for call in cr.paginate(f"a/{aid}/calls.json", {"per_page": 250}, items_key="calls"):
print(call["id"], call.get("source"), call.get("customer_name"))Running the server directly
For debugging or to verify your key works:
python -m callrail_mcpThe server speaks MCP stdio. It will wait for JSON-RPC messages on stdin. Ctrl-C to exit.
To smoke-test the API key without running the MCP loop:
python -c "from callrail_mcp.client import CallRailClient; c=CallRailClient(); print(c.get('a.json'))"Rate limits
CallRail allows 60 requests/minute per API key. The client retries 429 responses using the Retry-After header, and 5xx responses with exponential backoff (max 3 retries by default). For heavy pagination, prefer the built-in paginate() helper which uses per_page=100 by default.
Development
git clone https://github.com/pghdma/callrail-mcp
cd callrail-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytestContributing
Contributions welcome — see CONTRIBUTING.md for dev setup, test conventions, and release flow. Please file issues via GitHub Issues and follow the Code of Conduct.
Security
If you discover a security vulnerability, please report it privately per SECURITY.md instead of opening a public issue.
Author
Steve Japalucci — Founder of Pittsburgh Digital Marketing Agency. Reach out at s@pghdma.com.
License
MIT — see LICENSE. Copyright © 2026 Steve Japalucci / Pittsburgh Digital Marketing Agency.
Disclaimer
This project is an independent open-source integration and is not affiliated with, endorsed by, or officially supported by CallRail. "CallRail" is a trademark of CallRail, Inc. All product names, logos, and brands are property of their respective owners.
Maintenance
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/pghdma/callrail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server