Pipedrive MCP Server
Enables users to manage Pipedrive CRM data including deals, contacts, and activities directly through an AI assistant. It supports full CRUD operations, email engagement analysis, and mapping of custom field metadata for comprehensive pipeline management.
README
Pipedrive MCP Server
An MCP (Model Context Protocol) server for Pipedrive CRM integration with Claude Code and Claude Desktop. Query, create, and update CRM data directly from your AI assistant.
Features
- Full CRM Operations: Deals, persons, organizations, activities
- Email Analysis: Access mail threads and messages for engagement analysis
- Field Discovery: Map custom field hash codes to human-readable names
- Pipeline Management: List pipelines, stages, and users
- Pagination Support: Cursor-based pagination for large datasets
- Error Handling: Clear, actionable error messages
Quick Start
1. Get Your Pipedrive API Key
- Log into Pipedrive
- Go to Settings > Personal preferences > API
- Copy your API key (40 characters)
2. Configure Claude Code
Add to your .mcp.json file:
{
"mcpServers": {
"pipedrive": {
"command": "npx",
"args": ["-y", "pipedrive-mcp-server"],
"env": {
"PIPEDRIVE_API_KEY": "your-40-character-api-key"
}
}
}
}
Or set the environment variable:
export PIPEDRIVE_API_KEY="your-40-character-api-key"
3. Start Using
Once configured, Claude can access your Pipedrive data:
- "Show me open deals worth more than $10,000"
- "Create a deal called 'Acme Contract' with value $50,000"
- "Find all contacts at TechCorp"
- "List recent email threads in my inbox"
- "What custom fields are defined for deals?"
Available Tools
Core CRM Operations (Tier 1)
| Tool | Description |
|---|---|
pipedrive_list_deals |
List deals with filtering (owner, person, org, pipeline, stage, status) |
pipedrive_get_deal |
Get deal details by ID |
pipedrive_create_deal |
Create new deal |
pipedrive_update_deal |
Update existing deal |
pipedrive_search_deals |
Search deals by text |
pipedrive_list_persons |
List persons with filtering |
pipedrive_get_person |
Get person details |
pipedrive_create_person |
Create new person |
pipedrive_update_person |
Update existing person |
pipedrive_search_persons |
Search persons by name/email/phone |
pipedrive_list_activities |
List activities with filtering |
pipedrive_create_activity |
Create new activity |
pipedrive_update_activity |
Update/complete activity |
Email/Mail Tools (Tier 2)
| Tool | Description |
|---|---|
pipedrive_get_person_emails |
Get mail messages for a person |
pipedrive_get_deal_emails |
Get mail messages for a deal |
pipedrive_list_mail_threads |
List mail threads by folder |
pipedrive_get_mail_thread |
Get thread with messages |
pipedrive_get_mail_message |
Get full message body |
Field Metadata (Tier 3)
| Tool | Description |
|---|---|
pipedrive_list_organization_fields |
All org field definitions |
pipedrive_list_deal_fields |
All deal field definitions |
pipedrive_list_person_fields |
All person field definitions |
pipedrive_get_field |
Get field by key |
Supporting Resources (Tier 4)
| Tool | Description |
|---|---|
pipedrive_list_organizations |
List organizations |
pipedrive_get_organization |
Get organization details |
pipedrive_create_organization |
Create organization |
pipedrive_search_organizations |
Search organizations |
pipedrive_list_pipelines |
List all pipelines |
pipedrive_list_stages |
List stages in pipeline |
pipedrive_list_users |
List users |
pipedrive_get_user |
Get user details |
pipedrive_get_current_user |
Get API key owner |
Example Workflows
Analyze Deal Pipeline
"Show me all open deals in the Sales pipeline, sorted by value"
"Get details for deal 12345 including custom fields"
"Move deal 12345 to the Proposal stage"
Customer Research
"Find contacts at Acme Corp"
"Get emails for person 456 to analyze their engagement"
"What custom fields do we have for persons?"
Activity Management
"List my overdue activities"
"Create a follow-up call with John Smith for tomorrow at 2pm"
"Mark activity 789 as done"
Field Discovery
"List all custom fields for deals"
"What does field '8a4d7f...' mean?" (40-char hash)
Development
Local Setup
git clone https://github.com/ckalima/pipedrive-mcp-server.git
cd pipedrive-mcp-server
npm install
cp .env.example .env
# Edit .env with your API key
Build & Run
npm run build
npm run start
Development Mode
npm run dev
Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js
API Versioning
This server uses both Pipedrive API versions:
- v2 (
/api/v2): Deals, Persons, Organizations, Activities - v1 (
/v1): Mail, Fields, Pipelines, Stages, Users
The client automatically routes to the correct version.
Error Handling
Errors are returned with actionable suggestions:
{
"error": {
"code": "INVALID_API_KEY",
"message": "API key is invalid or expired",
"suggestion": "Verify your API key at Pipedrive Settings > Personal preferences > API"
}
}
Common error codes:
MISSING_API_KEY- Set PIPEDRIVE_API_KEY environment variableINVALID_API_KEY- Check your API key in Pipedrive settingsNOT_FOUND- The requested resource doesn't existRATE_LIMITED- Wait 60 seconds before retryingVALIDATION_ERROR- Check your request parameters
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT - see LICENSE
Links
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。