bd-crm-analytics
A read-only MCP server that exposes BD Leads CRM analytics (win rate, conversion funnel, connects economics, sales velocity, forecast, and lead lookup) to MCP clients like Cursor and Claude Desktop.
README
BD CRM Analytics — MCP server
A read-only MCP server that exposes the Meissasoft BD Leads CRM analytics (win rate, conversion funnel, connects economics, sales velocity, forecast, and lead lookup) to MCP clients like Cursor and Claude Desktop.
It talks only to the CRM public API (/api/v1/) using a Personal Access Token
(X-Api-Key). It never writes anything — every tool is a GET. What a token can see is
governed entirely by the CRM: a token only returns analytics if its owning user is a
workspace admin AND (the workspace owner OR has been granted analytics access).
Tools
| Tool | What it returns |
|---|---|
list_metadata |
Custom fields (+ their options) and pipeline states — the valid values for filters. Call this first to discover profiles/countries/contract types/states. |
get_win_rate |
Win rate. dimension="bd" → overall + per-rep; profile/lead_source/country/contract_type → win rate sliced by that field. |
get_conversion_funnel |
Applied → … → Won funnel with per-step conversion %, drop-off, and biggest-leak stage. |
get_connects_economics |
Connects-per-win overall, ROI by segment (spend, connects/win, est. revenue-per-connect, wasted connects), and boosted-vs-not. `dimension="profile" |
get_velocity_and_cycle |
Sales velocity ($/day) with its 4 inputs, plus avg cycle length by Profile and Country. |
get_forecast |
Weighted pipeline forecast (open leads × stage win-probability × est. deal value) with per-stage breakdown. |
list_leads |
Paginated leads with key fields + BD custom fields. Filter by state, profile, country, date range; limit/offset. |
Analytics tools accept an optional date range: date_filter (e.g. this_month, last_month,
last_3_months) or an explicit start_date/end_date (YYYY-MM-DD). Omit for all-time.
1. Prerequisites
- Node.js 18+ (uses the built-in
fetch).
2. Install & build
cd bd-crm-mcp
npm install
npm run build # compiles to dist/
3. Mint a CRM Personal Access Token
- Sign in to the CRM (e.g.
https://bd-crm.meissasoft.com) as a user who can see BD Insights — i.e. a workspace admin who is the workspace owner or has been granted analytics access. (If your token's user isn't allowed, every tool returns a clear403— that's expected.) - Go to Profile → Settings → Personal access tokens (API tokens) and create a token.
- Copy it — it looks like
plane_api_xxxxxxxx…. Store it asCRM_API_TOKEN.
Find the other values:
WORKSPACE_SLUG— the workspace segment in the CRM URL, e.g.bd-leadsin…/bd-leads/projects/….PROJECT_ID— open the BD Leads project; it's the UUID in the URL:…/projects/<PROJECT_ID>/….
4. Environment variables
| Var | Example | Notes |
|---|---|---|
CRM_BASE_URL |
https://bd-crm.meissasoft.com |
No trailing slash. |
CRM_API_TOKEN |
plane_api_… |
Sent as X-Api-Key. |
WORKSPACE_SLUG |
bd-leads |
|
PROJECT_ID |
99361d89-… |
The BD Leads project UUID. |
For local testing you can copy .env.example to .env; when wired into a client, set them
in the client config (below) instead.
5. Configure your MCP client
Use the absolute path to the built dist/index.js.
Cursor
Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:
{
"mcpServers": {
"bd-crm-analytics": {
"command": "node",
"args": ["/absolute/path/to/bd-crm-mcp/dist/index.js"],
"env": {
"CRM_BASE_URL": "https://bd-crm.meissasoft.com",
"CRM_API_TOKEN": "plane_api_xxxxxxxxxxxxxxxxxxxx",
"WORKSPACE_SLUG": "bd-leads",
"PROJECT_ID": "99361d89-81b6-4eee-83a6-24e622182383"
}
}
}
}
Reload Cursor; the bd-crm-analytics tools appear in the MCP tool list.
Claude Desktop
Edit the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bd-crm-analytics": {
"command": "node",
"args": ["/absolute/path/to/bd-crm-mcp/dist/index.js"],
"env": {
"CRM_BASE_URL": "https://bd-crm.meissasoft.com",
"CRM_API_TOKEN": "plane_api_xxxxxxxxxxxxxxxxxxxx",
"WORKSPACE_SLUG": "bd-leads",
"PROJECT_ID": "99361d89-81b6-4eee-83a6-24e622182383"
}
}
}
}
Fully quit and reopen Claude Desktop. Ask e.g. "What's our win rate by profile this quarter?" or "Show the conversion funnel and biggest leak."
Windows note: if
nodeisn't on Claude Desktop's PATH, use its full path (e.g."command": "C:\\Program Files\\nodejs\\node.exe") and a double-backslashedargspath.
Behavior & troubleshooting
- Read-only. No tool creates, edits, or deletes anything.
401→ token missing/invalid/expired: checkCRM_API_TOKEN.403→ the token's user lacks analytics access (needs workspace admin + owner-or-flag).404→ checkCRM_BASE_URLandWORKSPACE_SLUG.- Errors are returned as readable tool results; the server does not crash.
- Estimated figures (deal value, revenue-per-connect, velocity, forecast) come straight from the CRM's deal-value proxy and are labelled as estimates there.
Development
npm run dev # run from source with tsx (no build step)
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。