home / mcp / pipedrive mcp server
Provides programmatic access to Pipedrive CRM data and related resources via MCP for querying, creating, and updating CRM information.
Configuration
View docs{
"mcpServers": {
"ckalima-pipedrive-mcp-server": {
"command": "npx",
"args": [
"-y",
"pipedrive-mcp-server"
],
"env": {
"PIPEDRIVE_API_KEY": "your-40-character-api-key"
}
}
}
}You can query, create, and update Pipedrive CRM data directly from your AI assistant by running an MCP server that connects to Pipedrive’s API. This server exposes CRM operations, email analysis, field discovery, and pipeline insights in a standardized way, letting you build powerful workflows with natural language prompts and automated actions.
To use this MCP server with a compatible MCP client, first ensure your server is running and configured with your Pipedrive API key. You can then issue natural language requests that map to the available tools, such as listing deals, retrieving a specific contact, creating a new organization, or analyzing email threads related to a deal. The system routes your requests to the correct API endpoints and returns structured results you can act on, all without leaving your AI assistant.
Prerequisites: you need Node.js and npm installed on your machine.
# Clone the server repository
git clone https://github.com/ckalima/pipedrive-mcp-server.git
cd pipedrive-mcp-server
# Install dependencies
npm install
# Copy example environment configuration
cp .env.example .env
# Edit .env to provide your PIPEDRIVE_API_KEYConfigure your MCP client to connect to the server using the provided command. The server is intended to be run locally or in your development environment. When you start the server, you can begin making requests like listing deals, getting details for a deal, creating a new person, or retrieving email threads related to your CRM data.
Build and run the server in development mode, then use the MCP Inspector to verify interactions.
npm run build
npm run start
```
# Development mode
```
npm run dev
```
# Test with MCP Inspector
```
npx @modelcontextprotocol/inspector node dist/index.jsAnalyze CRM data by combining multiple tool calls in natural language prompts. For example, you can ask to list deals in a specific pipeline, fetch details for a particular person, or retrieve email messages related to a deal to assess engagement.
If you encounter errors, the MCP server returns structured error objects with codes and actionable suggestions. Typical issues include missing or invalid API keys, resources not found, rate limits, and validation errors. Follow the provided suggestions to correct the request and retry after the recommended wait time if applicable.
Keep your Pipedrive API key secure. Do not expose it in client requests or logs. Use environment variables or secure secret management in your deployment environment to provide the API key to the MCP server.
The server interacts with Pipedrive APIs across two versions. v2 handles core CRM data such as deals, persons, organizations, and activities, while v1 covers mail, fields, pipelines, stages, and users. The client automatically routes requests to the appropriate version.
List deals with filtering by owner, person, organization, pipeline, stage, and status.
Retrieve detailed information for a specific deal by its ID.
Create a new deal with specified properties.
Update properties of an existing deal.
Search deals by text query.
List persons with filtering options such as name, email, or phone.
Get details for a specific person by ID.
Create a new person in the CRM.
Update an existing person’s details.
Search persons by name, email, or phone.
List activities with filtering options.
Create a new activity (call, meeting, etc.).
Update or complete an existing activity.
Retrieve mail messages associated with a person.
Retrieve mail messages associated with a deal.
List mail threads by folder.
Get a thread with all messages.
Fetch the full body of a mail message.
List all organization field definitions.
List all deal field definitions.
List all person field definitions.
Get a field definition by key.
List organizations.
Get organization details.
Create a new organization.
Search organizations.
List all pipelines.
List stages in a pipeline.
List users.
Get details for a user.
Get API key owner details.