CoCounsel Standalone MCP
MCP server enabling natural language queries across CoCounsel customer insights data sources, including Gong calls, NPS feedback, skills feedback, support cases, Teams messages, and SharePoint VOC documents.
README
CoCounsel Standalone — Customer Insights Tool MCP
FastAPI backend + MCP server for CoCounsel Standalone (Core/Web) customer insights data sources.
Architecture
┌─────────────────────────────────────────────────┐
│ Claude Desktop │
│ - User conversation interface │
│ - Synthesizes final answers from theme data │
└────────────────┬────────────────────────────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────────────────────────────────┐
│ MCP Server (mcp_server_standalone.py) │
│ - 11 MCP tools (6 source-specific + 5 utility) │
│ - HTTP client to FastAPI backend │
│ - Port 8766 │
└────────────────┬────────────────────────────────┘
│ HTTP (localhost:8766)
▼
┌─────────────────────────────────────────────────┐
│ FastAPI Backend (cit/api/main.py) │
│ - 6 data pipeline modules │
│ - Snowflake Cortex Search integration │
│ - OpenArena WebSocket LLM gateway │
│ - SSE streaming for real-time progress │
└─────────────────────────────────────────────────┘
Data Sources (6)
| # | Source | Service | Filter | Citation URLs |
|---|---|---|---|---|
| 1 | Gong Calls | COCOUNSEL_VOC_SEARCH_SVC |
None (shared, contextual) | ✅ CALL_RECORDING |
| 2 | NPS | COCOUNSEL_NPS_SEARCH_SVC |
NPS_SOURCE="General" |
❌ Dashboard only |
| 3 | Skills Feedback | COCOUNSEL_SKILLS_SEARCH_SVC |
None (Standalone-only) | ❌ Dashboard only |
| 4 | Cases | COCOUNSEL_CASES_SEARCH_SVC |
ESC_PRODUCT_TITLE_C != "CoCounsel Drafting" |
❌ Case ID only |
| 5 | Teams Messages | COCOUNSEL_TEAMS_SEARCH_SVC |
CHANNEL_NAME IN ("Core Product Feedback", "Core Product Support") |
✅ WEB_URL |
| 6 | SharePoint VOC | COCOUNSEL_SHAREPOINT_SEARCH_SVC |
None (Standalone-only) | ✅ FILE_URL |
Quick Start
1. Install Dependencies
cd cocounsel_standalone_mcp
python3 -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
pip install -r requirements-mcp.txt
2. Configure Environment
cp .env.example .env
# Edit .env with your Snowflake & ESSO credentials
3. Start Backend
./run_standalone.sh
Verify:
curl http://127.0.0.1:8766/health
# Expected: {"status":"ok","product":"standalone"}
4. Configure Claude Desktop
Edit ~/.config/Claude/claude_desktop_config.json (Linux/Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"cit-standalone": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/cocounsel_standalone_mcp/mcp_server_standalone.py"],
"env": {
"CIT_API_BASE": "http://127.0.0.1:8766",
"CIT_MCP_TIMEOUT": "200",
"SNOWFLAKE_ACCOUNT": "a206448_prod.us-east-1",
"SNOWFLAKE_USER": "your.email@thomsonreuters.com",
"SNOWFLAKE_PAT": "your-token",
"ESSO_TOKEN": "your-esso-token",
"WS_WORKFLOW_ID": "04d8d46e-0806-4653-b8ba-e718d919c567"
}
}
}
}
Restart Claude Desktop (quit completely, not just close).
5. Test
Click the tools icon (hammer) in Claude Desktop — you should see 6+ CIT tools:
search_gong_datasearch_nps_datasearch_skills_feedback_datasearch_cases_datasearch_teams_datasearch_sharepoint_datacit_health_check
Test prompt:
Check the health of the CIT system.
MCP Tools
Source-Specific Tools (6)
| Tool | Description |
|---|---|
search_gong_data |
Sales & customer call transcripts |
search_nps_data |
NPS feedback (General/Standalone) |
search_skills_feedback_data |
Skills feedback (Pendo) |
search_cases_data |
Support cases (excludes Drafting) |
search_teams_data |
Teams Core channel feedback |
search_sharepoint_data |
Customer interviews & VOC docs |
Utility Tools
| Tool | Description |
|---|---|
cit_health_check |
Check backend health |
Test Prompts
Single Source Queries
1. "What are the top pricing objections in Gong calls about CoCounsel Core?"
2. "What are the main NPS complaints for CoCounsel Standalone?"
3. "Which skills are users rating lowest?"
4. "What are the most common support cases for CoCounsel Core?"
5. "What feedback came through Core Product Feedback channel this month?"
6. "What themes emerged from VOC customer interviews?"
Multi-Source Query
7. "Compare NPS feedback and Gong calls about ease of use for CoCounsel Standalone."
Project Structure
cocounsel_standalone_mcp/
├── cit/
│ ├── api/
│ │ ├── main.py # FastAPI app entry point
│ │ ├── schemas.py # Pydantic request/response models
│ │ └── routers/
│ │ └── query.py # Query router with SSE streaming
│ ├── pipelines/
│ │ ├── standalone_gong.py # Gong calls (no filter)
│ │ ├── nps.py # NPS (filtered: General)
│ │ ├── skills.py # Skills (Standalone-only)
│ │ ├── cases.py # Cases (filtered: exclude Drafting)
│ │ ├── standalone_teams.py # Teams (filtered: Core channels)
│ │ └── standalone_sharepoint.py # SharePoint (Standalone-only)
│ ├── services/
│ │ ├── snowflake_conn.py # Snowflake connection management
│ │ ├── legacy.py # Cortex Search wrapper
│ │ ├── llm_gateway.py # OpenArena WebSocket LLM client
│ │ └── utils.py # Shared pipeline utilities
│ ├── core/
│ │ ├── errors.py # Custom exceptions
│ │ └── events.py # SSE event helpers
│ ├── config.py # Standalone-specific constants
│ └── settings.py # Environment variable loader
├── mcp_server_standalone.py # MCP server (stdio transport)
├── requirements.txt # Python dependencies
├── requirements-mcp.txt # MCP-specific dependencies
├── .env.example # Environment template
├── run_standalone.sh # Start script
└── claude_desktop_config_standalone.json # Claude Desktop config template
Troubleshooting
Tools don't appear in Claude Desktop
- Check Claude Desktop was fully quit and relaunched
- Verify config JSON is valid (use jsonlint.com)
- Check paths are absolute and correct
- Run server manually to see errors:
cd /path/to/cocounsel_standalone_mcp source .venv/bin/activate CIT_API_BASE=http://127.0.0.1:8766 python mcp_server_standalone.py
Cannot connect to CIT API
- FastAPI server (step 3) must be running
- Confirm:
curl http://127.0.0.1:8766/health - Check
CIT_API_BASEin Claude Desktop config matches port
Query timeout
- Increase
CIT_MCP_TIMEOUTin Claude Desktop config (e.g.,"240") - Default is 200 seconds
Support
Team: Product Analytics
Yugendar Sairam — RelangiyugendarSaiRam@thomsonreuters.com
Ashish Khurana — Ashish.Khurana@thomsonreuters.com
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。