Pipedrive MCP Server
Pipedrive MCP Server 是一个与MCP兼容的API服务器,它将AI工具连接到Pipedrive CRM,用于程序化数据管理和自动化。
概述
Pipedrive MCP Server 是一个Model Context Protocol (MCP)服务器,通过官方Pipedrive API v2 Node.js客户端连接到Pipedrive CRM,让Claude、Cursor等AI工具能与您的Pipedrive数据交互。
安装
git clone <repository-url>
cd pipedrive-mcp-server
npm install
配置
创建.env文件:
PIPEDRIVE_API_TOKEN=your_pipedrive_api_token
NODE_ENV=development
LOG_LEVEL=info
启动服务器
npm start # 标准模式
npm run dev # 开发模式(自动重启)
可用MCP工具
| 类别 | 工具 |
|---|---|
| 交易 | get_deals, get_deal, create_deal, update_deal |
| 联系人 | get_persons, get_person, create_person, update_person |
| 组织 | get_organizations, get_organization, create_organization, update_organization |
| 活动 | get_activities, get_activity, create_activity, update_activity |
| 管道 | get_pipelines, get_pipeline |
| 笔记 | get_notes, get_note, create_note, update_note |
| 用户 | get_users, get_user, get_current_user |
可用MCP资源
- 交易:
pipedrive://deals/{id?} - 联系人:
pipedrive://persons/{id?} - 组织:
pipedrive://organizations/{id?}
与Claude Desktop连接
-
创建Claude Desktop配置文件:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
添加以下配置:
{
"mcpServers": {
"pipedrive": {
"command": "node",
"args": ["/absolute/path/to/pipedrive-mcp-server/src/index.js"],
"cwd": "/absolute/path/to/pipedrive-mcp-server",
"env": {
"PIPEDRIVE_API_TOKEN": "your_api_token_here"
}
}
}
}
- 重启Claude Desktop并检查插件连接状态。
与Claude Web连接
使用/mcp命令:
/mcp connect node /path/to/pipedrive-mcp-server/src/index.js
使用NPX运行(可选)
如果服务器已发布到npm:
npx -y @your-org/pipedrive-mcp-server@latest --config "{"pipedriveApiToken":"your_api_token_here"}"
系统要求
- Node.js 16.x+
- npm或yarn
- Pipedrive账户(带API令牌)
WillDent