nextiva-mcp
MCP server for Nextiva/Thrio contact center platform, providing tools to list users, campaigns, contacts, queues, and work item history.
README
nextiva-mcp
MCP server for Nextiva (contact center platform, built on the acquired
Thrio product — API host is login.thrio.com / *.thrio.io). Exposes
the Thrio data and analytics API's users, campaigns, contacts, queues, and
work item history as MCP tools.
Naming note: MSPbots' own integration is registered as "Nextiva" (
subjectCode=NEXTIVA); the underlying API and all documentation reference "Thrio", the contact-center product Nextiva acquired. This MCP covers exactly the 5 methods MSPbots itself has configured.
Overview
- Stateless HTTP service. No credentials are ever persisted — each request supplies its own username/password via headers, used only for the lifetime of that single request.
- Supports concurrent requests; per-request credential isolation is done via
Python
contextvars, not a global/shared client instance. - Entry points:
POST /mcp(MCP protocol) andGET /health(health check). - Default port:
8080(configurable viaMCP_HTTP_PORT).
Authentication
Thrio's auth call returns both a token and the actual per-tenant API host to use — Thrio is deployed across multiple regional clusters, so there is no single fixed data-plane hostname:
GET https://login.thrio.com/provider/token-with-authoritieswith HTTP Basic Auth (username:password) →{"location": "https://<tenant-cluster>.thrio.io", "token": "..."}.- Every real data/analytics call then goes to
{location}(notlogin.thrio.com) with the token sent as-is in anAuthorizationheader — noBearerprefix.
Since there is no session to preserve, this server re-authenticates fresh on every single tool call — nothing is cached or persisted across MCP requests.
HEADER 授权参数说明
| Header | 类型 | 是否必填 | 默认值 | 枚举值 | 字段描述 | Example |
|---|---|---|---|---|---|---|
X-Nextiva-Username |
string | 是 | 无 | 无 | Thrio/Nextiva 账号用户名 | admin@example.com |
X-Nextiva-Password |
string | 是 | 无 | 无 | 对应密码 | •••••••• |
Missing either header returns 401:
{
"error": "Missing credentials",
"message": "This server requires the X-Nextiva-Username and X-Nextiva-Password headers",
"required_headers": ["X-Nextiva-Username", "X-Nextiva-Password"],
"optional_headers": []
}
An invalid username/password surfaces as a tool-level error during the internal login step, not an HTTP-level error from this server.
Environment Variables
| Variable | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
MCP_HTTP_PORT |
int | 否 | 8080 |
HTTP 监听端口 |
MCP_HTTP_HOST |
string | 否 | 0.0.0.0 |
HTTP 监听地址 |
NEXTIVA_AUTH_URL |
string | 否 | https://login.thrio.com/provider/token-with-authorities |
登录换 token/location 的固定入口地址 |
MCP Endpoint
POST /mcp— MCP protocol (streamable HTTP transport)GET /health— health check, returns{"status": "ok", "service": "nextiva-mcp", "transport": "http"}
Tool List
| Tool | 功能 | 参数 |
|---|---|---|
nextiva_get_users |
列出账号下所有用户(坐席/技术员) | start(可选,分页偏移量) |
nextiva_get_campaigns |
列出呼叫营销活动(campaign) | range_type(可选,默认 lastweek),start(可选) |
nextiva_get_contacts |
列出联系人(客户/线索) | start(可选) |
nextiva_get_queues |
列出呼叫/聊天/邮件队列 | start(可选) |
nextiva_get_workitems_history |
获取通话/聊天/短信/邮件工作项的历史活动及汇总统计 | range_type(可选,默认 lastweek) |
Responses are the vendor's JSON, pretty-printed, returned as-is.
测试示例
# Health check
curl -s http://localhost:8080/health
# Call a tool via the MCP protocol (streamable HTTP) — requires an
# initialize handshake first per the MCP spec; abbreviated example below
# shows the tool-call request body only:
curl -s -X POST http://localhost:8080/mcp \
-H "X-Nextiva-Username: admin@example.com" \
-H "X-Nextiva-Password: <your-password>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: <session-id-from-initialize>" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "nextiva_get_users",
"arguments": {}
}
}'
Live-verified (2026-07-30) against a real Nextiva/Thrio tenant, all 5
tools called end-to-end through this running server: nextiva_get_users
returned 101 real users; nextiva_get_campaigns returned 9 real campaigns
(e.g. "Nextiva - Transfers"); nextiva_get_contacts returned 99 real
contacts; nextiva_get_queues returned 18 real queues; and
nextiva_get_workitems_history returned real summary totals (e.g.
297 inbound, 195 outbound, 500 contacts in the last 7 days) — all with
the login step resolving the tenant's real cluster host dynamically
(https://mancity.thrio.io).
API Reference
- Public, no login required: https://api.thrio.com/ (Postman-generated documentation covering Authentication, Objects/Data API, Analytics, and more)
Known Gaps
- Scope is exactly MSPbots' 5 configured endpoints, not the vendor's full API surface — Thrio's API also covers Workitem actions, List Management, Dashboards, Recordings, Contact Consent, State DID, Chat, CRM, Client, Number Verification, WFM, TEAMS, Callbacks, and more (per the public docs' own navigation); those are out of scope here.
- Pagination is a
startoffset, confirmed empirically (passingstart=1shifted the result window by one and updated the response'spreviousfield accordingly) — the vendor's public docs describe this less explicitly than the request/response shape actually demonstrates, so this was verified against the live API rather than assumed from the docs alone. - The
session/loginstep described in the vendor's docs (POST {location}/users/api/login) is NOT used by this server — it appeared necessary only for creating a full interactive agent session (e.g. for telephony/ACD state), not for the read-only data/analytics endpoints MSPbots uses, which worked correctly with just the Authentication token. Confirmed by successfully calling all 5 endpoints without it.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。