Purpose: pipedrive-mcp-server is an MCP server for connecting Pipedrive CRM to AI assistants (such as Claude Desktop, Claude Code, or any MCP client), letting users query, create, and update CRM data through natural language.
Main capabilities:
- Full CRM operations: covers deals, persons, organizations, activities, products, projects, tasks, leads, notes, and emails.
- Email analysis: can access email threads and messages for interaction analysis.
- Field discovery: maps hash codes of custom fields to readable names.
- Pipeline management: lists pipelines, stages, and users.
- Pagination support: cursor-based pagination, suitable for large datasets.
- Error handling: provides clear, actionable error messages.
- Number of tools: 155 tools in total, contract-tested against the Pipedrive OpenAPI v2 specification to ensure the tools do not drift from the documented API.
- Real-time smoke validation: broad tool-surface testing against a real Pipedrive account.
How to use:
- Fastest setup: run the npx … init guided installer and follow the prompts. The installer opens the Pipedrive API token page, validates the key in real time, and generates a working MCP configuration for your client (Claude Desktop, Claude Code, Cursor, Windsurf, or VS Code).
- Manual setup: add configuration in .mcp.json, using the scoped package name @ckalima/pipedrive-mcp-server, and set the environment variable PIPEDRIVE_API_KEY.
- Get an API key: log in to Pipedrive, go to Settings > Personal preferences > API, and copy the 40-character API key.
- Environment variables: set the capability mode via PIPEDRIVE_MODE (read-only, safe-write (default), full). full mode enables destructive tools (marked as 🔒 in the table); otherwise it returns a DESTRUCTIVE_DISABLED error; tools beyond the currentmode return a MODE_RESTRICTED error.
- Backward compatibility: when PIPEDRIVE_MODE is not set, the mode is derived from the legacy flag PIPEDRIVE_ENABLE_DESTRUCTIVE (true → full, otherwise safe-write). Unrecognized PIPEDRIVE_MODE values fall back to read-only.
Capability modes:
- read-only: recommended for first-time setup and agent evaluation, read-only.
- safe-write (default): read + non-destructive writes.
- full: enables all tools, including destructive operations (deletes, conversions, and other irreversible writes). The server hides tools beyond the mode from tools/list and rejects direct calls at the dispatcher level, ensuring the mode is a real guarantee rather than a UI hint. Each tool also carries MCP annotations (readOnlyHint / destructiveHint / idempotentHint) so policy-aware clients can distinguish read, write, and delete.
Use cases:
- Manage Pipedrive CRM data directly through an AI assistant, for example:
- "Show open deals worth more than $10,000"
- "Create a deal named 'Acme Contract' worth $50,000"
- "Find all contacts for TechCorp"
- "List the most recent email threads in my inbox"
- "What custom fields are defined for deals?"
Limitations:
- Transport currently supports only STDIO (Streamable HTTP is planned).
- Authentication is via Pipedrive API key, matching the local/self-hosted tier; there is no hosted OAuth option yet.
- API version: v2-first, with v1 used only for capabilities without a v2 equivalent (notes, emails, users, leads CRUD). Pipedrive is gradually phasing out v1, with some v1 endpoints scheduled to be terminated on 2025-12-31, and the complete v1 sunset expected around 2026-07-31.
- Some tools require a Growth+ plan (marked as ⭑).
- Destructive operations are disabled by default and require explicitly setting PIPEDRIVE_MODE=full.
- The server runs only via STDIO, with no network listener; API Tokens are read from the environment and never logged; destructive operations are off by default; CRM tool outputs are structurally marked as untrusted (as an advisory mitigation, not a guarantee).
- Connected account check: a one-time GET /v1/users/me is performed at startup, with a 10-second timeout, without blocking startup; after the first tool response, a one-time connection block may be appended, containing company_id, verified, and company_name, user_email, etc. nested under untrusted_display.
License: MIT License, published via npm build provenance.