
CallRail MCP
io.github.pghdma由 GitHub 帳號 pghdma 發布v1.3.1更新於 Oct 24, 2026
CallRail REST API v3: 57 tools for calls, leads, trackers, tags, users, and agency reporting.
概覽
一個本機 MCP 伺服器,透過 57 個工具開放 CallRail REST API v3,讓助理用自然語言查詢通話、潛在客戶、追蹤號碼、標籤與代理商成本報表。
- 可以做什麼
- 查詢並統計通話、表單提交、簡訊、使用者、標籤與追蹤號碼,支援篩選、欄位選擇以及依來源、廣告活動或公司彙總的統計與趨勢。管理潛在客戶與簡訊對話,包含跨通路時間軸和加標籤、加備註。建立、更新與刪除標籤、公司、使用者、通知與追蹤號碼,新建追蹤號碼需通過計費確認參數保護。提供代理商報表,例如依客戶分攤成本、期間比較、批次更新通話與 Google Ads 轉換資格檢查。撥打外撥電話並檢視整合與 Webhook。
- 適用情境
- 適合管理多個 CallRail 客戶的代理商或團隊,想直接詢問通話量、未接來電、潛在客戶歷史和每個客戶的分鐘數或成本,而不必逐頁翻報表。也適合排查轉換問題和批次為通話加標籤。
- 執行需求
- 以 Python 套件(pipx 或 pip)在本機透過 stdio 執行。需要 CallRail API 金鑰,須由帳戶管理員權限建立,透過 CALLRAIL_API_KEY 環境變數或 CALLRAIL_API_KEY_FILE 指向的金鑰檔案提供。可選設定 CALLRAIL_ACCOUNT_ID 固定帳戶。需要連線至 CallRail API 的網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CallRail MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
callrail-mcp
[PyPI version] [Python versions] [CI] [License: MIT] [MCP] [Available on CodeGuilds]
A Model Context Protocol server for the CallRail REST API v3. Point Claude Code, Claude Desktop, Cursor, or any other MCP client at it and ask about your call tracking in plain English.
I'm Steve Japalucci. I run Pittsburgh Digital Marketing Agency (PGHDMA), and I built this for my own client work. CallRail bills per tracking number and per minute across every client I manage, and I was tired of clicking through its reports to answer questions like "which client is burning my minutes this month". Now I ask Claude.
Works with both major versions of the MCP Python SDK (1.x and 2.x).
What I use it for
These are the kinds of questions I ask it every week:
Reporting
- "Pull last week's calls for Alan Construction, grouped by source"
- "Show me every missed call 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
- "Why is my CallRail bill $174? Break it down by client"
- "Which client is the biggest minute user this cycle?"
Conversion debugging
- "Why didn't this call convert in Google Ads? CAL019..."
- "Is this 58-second call eligible to count as a Google Ads conversion?"
Lead management
- "Show me everything this person has ever done: calls, forms, texts"
- "Tag this SMS thread as a qualified lead and add a note"
Tag and 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 about $3/mo)
Installation
To install from source (latest unreleased):
Auth
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)
Option 2: key file
Or override with CALLRAIL_API_KEY_FILE=/path/to/key.txt.
Optional: pin the account
Every tool resolves the account id with one GET /a.json per process and caches it. Set CALLRAIL_ACCOUNT_ID to skip that lookup, or to pin one account when the key can see several.
Configure your MCP client
Claude Code / Claude Desktop (~/.claude.json or claude_desktop_config.json)
If you installed via pipx, callrail-mcp will be on your PATH automatically. Otherwise, point command at the full path to the executable.
Cursor and 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
57 tools total, covering roughly 95% of CallRail's REST API v3 surface: read tools, write tools, tracker provisioning, agency aggregation, account management, notifications, integrations discovery, outbound calls, offline-lead backfill, leads and cross-channel timelines, SMS-thread lead management, and server-side analytics.
Read tools
Write tools
Tracker provisioning
Account management
Notifications and integrations
Outbound calling
Leads and server-side analytics
Agency aggregation
All tools accept account_id optionally; if omitted, the first accessible account is auto-resolved and cached for the process. Set CALLRAIL_ACCOUNT_ID to pin it and skip the lookup. Most tools accept company_id to filter to a single client.
A note on filtering calls
CallRail's GET /calls.json accepts answer_status (answered, missed, voicemail) but has no answered or source parameter. Earlier versions of this server forwarded both and CallRail silently ignored them, so results looked filtered but were not. I fixed that in v1.2.0:
answer_statusis the documented filter and is applied server-side.answeredremains as a deprecated alias that translates toanswer_status.sourceis applied client-side, and the response includes asource_filterblock stating exactly what was matched. For source breakdowns, prefercall_stats(group_by="source").
Two more things CallRail does that bit me:
- Voicemail counts as answered on CallRail's side, because its system picked up. Since v1.3.0
call_summary,spam_detector,call_eligibility_checkandbulk_update_callstreat a call as answered only when a person answered (answeredand notvoicemail) and report voicemail separately.answer_status=missedincludes voicemail. - No date window means CallRail's
recentrange, the previous 7 days including today, not all time. Windowed tools accept an IANAtime_zoneso day boundaries match the client's reporting zone, andusage_summary/compare_periodsforward the account's zone automatically. Communication Records are retained for 25 months, so a window reaching past that returns an error asking for a narrower range.
Validation is strict throughout: phone-number format, area code (^\d{3}$), session pool size (CallRail's 4 to 50 range), name, whisper, and greeting length caps, and a 12-value source-type enum.
Rich field selection
The CallRail API returns a lean default payload. Ask for more fields on list_calls, get_call, or list_form_submissions via the fields parameter:
Conversation-intelligence and attribution fields are also available by name: lead_status, sentiment, call_summary, call_highlights, keywords_spotted, transcription, conversational_transcript, speaker_percent, milestones, timeline_url, msclkid, prior_calls, total_calls, person_id. See the CallRail API docs for the full field catalog per resource.
Tool annotations
Every tool declares MCP tool annotations: readOnlyHint on the 33 read tools, destructiveHint on deletes and bulk writes, idempotentHint on updates, and openWorldHint on create_outbound_call because it reaches the phone network. Clients that honor annotations can auto-approve reads and ask before writes.
How this compares to CallRail's official MCP server
CallRail offers an official hosted MCP server (documented at apidocs.callrail.com) using OAuth 2.0, with roughly 30 tools and a server URL provided by your CallRail account team. It is a good option if you want a fully managed remote server.
I built this one for a different job:
Both speak the same underlying REST API v3. If you run an agency across many client accounts and want cost attribution and bulk workflows, this is the one I built for myself.
A community TypeScript server also exists, @kanopi/callrail-mcp on npm (34 tools, stdio, API key auth). What I put into this one instead is the agency tooling, the safety guards, and request contracts checked against CallRail's documentation and live responses (see the 1.3.0 entry in the CHANGELOG).
Out of scope (deliberately not implemented)
The following CallRail capabilities are not in this MCP, by design. PRs are welcome if you have an account that supports them, or open an issue and I will prioritize.
Blocked by CallRail account permissions (returns 403)
These endpoints exist but need account upgrades or permissions that my standard CallRail account does not have. I re-probed them live on 2026-10-05:
- Send SMS/MMS (
POST /text-messages.json) needs A2P/TCR SMS registration. CallRail enforces TCPA-compliance keywords (STOP, CANCEL, UNSUBSCRIBE) on outbound text messages. MMS support was added by CallRail on 2026-05-05. - Webhook integration create, update, delete (
POST /integrations.jsonwithtype=Webhook) needs Integration-Admin permission. - Outbound Caller IDs (
/caller_ids.jsonCRUD) is documented by CallRail but returns 403 on a standard account. - Message Flows (
/message-flows.jsonCRUD, SMS auto-reply flows) is documented but returns 403. - Integration Filters (
/integration_triggers.jsonCRUD) is documented but returns 403. - Form submission endpoints return 403 when no company on the account has Form Tracking enabled. That is account state rather than a permission: enable Form Tracking on one company and the endpoints open up. The tools say so in the error.
Not exposed by CallRail's REST API
These have no API equivalent and are managed exclusively via the CallRail web UI:
- Numbers: account-level number ownership, porting, and transfers.
- Call Flows: the IVR builder and call routing tree configuration.
- Custom Fields CRUD: custom data columns are readable as part of call and form responses, but the schema management endpoint is not exposed.
- Do Not Call list: DNC number management.
Available but not yet shipped
Readable on a standard account, but I have judged them low value so far: summary_emails CRUD, companies/bulk_update.json (external form capture only), and form_submissions/ignored_fields.json.
Examples
Direct Python usage
The CallRailClient is also usable as a library:
paginate() accepts an optional stats dict that reports pages_fetched, items_yielded, total_records, and truncated, so you can tell a capped result from a complete one.
Running the server directly
For debugging, or to verify your key works:
The server speaks MCP stdio. It will wait for JSON-RPC messages on stdin. Press Ctrl-C to exit.
To smoke-test the API key without running the MCP loop:
Rate limits
CallRail's documented default limits are 1,000 requests per hour and 10,000 per day for general API requests, with separate budgets for SMS sends (150 per hour, 1,000 per day) and outbound calls (100 per hour, 2,000 per day). The client retries 429 responses using the Retry-After header, and retries 5xx responses with exponential backoff for idempotent methods only (GET, PUT, DELETE, HEAD, OPTIONS). POST is never retried on 5xx, so a lost response cannot create duplicate trackers. For heavy pagination, prefer the built-in paginate() helper.
Development
See DEVELOPMENT.md for release flow, API quirks worth knowing, and the conventions this codebase follows.
Contributing
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. I use this on my own client accounts every day, so bugs get noticed and fixed fast. Reach out at [email protected].
License
MIT. See LICENSE. Copyright (c) 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.
來源:README.md,提交 8049e3e
工具
0版本歷史
3- v1.3.1最新Oct 9, 2026
- v1.3.0Oct 6, 2026
- v1.2.2Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分