Pipedrive MCP Server

Pipedrive MCP Server

pipedrive-mcp-server•bywilldent

A self-hosted, single-tenant Model Context Protocol server that exposes Pipedrive deals, persons, organizations, pipelines, stages, leads, notes, users, and search to MCP clients, read-only by default with opt-in preview-first write tools.

License: MIT•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Provides read tools for Pipedrive users, deals, deal notes, persons, organizations, pipelines, stages, and leads, plus search across them.
  • •Returns list/search results as structured content with items, count, optional nextCursor, a truncated flag, and filters.
  • •Offers gated write tools for moving a deal to a target stage and adding a deal note, both previewing unless execute is true.
  • •Supports stdio and Streamable HTTP transports, with legacy SSE compatibility routes.

BEST FOR

  • •Letting MCP-capable assistants read and search Pipedrive CRM records in a self-hosted deployment.
  • •Teams wanting controlled deal-stage moves and note additions with previews and an explicit write-tool allowlist.
  • •Deployments needing HTTP access behind a reverse proxy with host, origin, and JWT restrictions.

ABOUT PIPEDRIVE-MCP-SERVER

Pipedrive MCP Server is cataloged as an MCP server attributed to willdent. A self-hosted, single-tenant Model Context Protocol server that exposes Pipedrive deals, persons, organizations, pipelines, stages, leads, notes, users, and search to MCP clients, read-only by default with opt-in preview-first write tools. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Pipedrive MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can write operations happen without explicit opt-in?

No. Write tools are only registered when named in PIPEDRIVE_WRITE_TOOLS, and even then they preview unless execute is true.

Which Pipedrive API versions does the server use?

It uses Pipedrive API v2 for deals, persons, organizations, pipelines, stages, leads, and item search, while notes and users remain on scoped v1 adapters.

Does the server support multiple tenants?

No. Version 2.x remains single-tenant and self-hosted, and Pipedrive OAuth, MCP OAuth, persistent sessions, broad CRUD, and destructive delete tools are out of scope.

上游原版 README

在 GitHub 查看同一版本原文

readme.md · f2cfc432e21f · 采集于 2026-11-13 12:50:32 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Pipedrive MCP Server

A single-tenant, self-hosted Model Context Protocol server for Pipedrive. Version 2.x uses Pipedrive API v2 for deals, persons, organizations, pipelines, stages, leads, and item search. Notes and users remain isolated behind clearly scoped v1 adapters because Pipedrive has not moved those APIs to v2.

The server is read-only by default. Two narrowly scoped write tools can be enabled explicitly and remain preview-first.

Requirements

  • Node.js 22 or 24 (Node 24 recommended)
  • A Pipedrive API token

PIPEDRIVE_DOMAIN is not used. The official Pipedrive client supplies the API base URL.

Install and run with stdio

Install globally:

npm install --global pipedrive-mcp-server
PIPEDRIVE_API_TOKEN=your-token pipedrive-mcp-server

Or build this repository:

npm ci
npm run check
PIPEDRIVE_API_TOKEN=your-token npm start

Example desktop MCP configuration:

{
  "mcpServers": {
    "pipedrive": {
      "command": "pipedrive-mcp-server",
      "env": {
        "PIPEDRIVE_API_TOKEN": "your-token"
      }
    }
  }
}

Streamable HTTP

The modern HTTP endpoint defaults to http://127.0.0.1:3000/mcp:

PIPEDRIVE_API_TOKEN=your-token \
MCP_TRANSPORT=http \
pipedrive-mcp-server

GET /health is unauthenticated, host-validated, and returns only service status. The server creates an independent MCP server and transport for every session and closes active sessions during shutdown.

Binding to a non-loopback address requires both an HS256 JWT secret of at least 32 characters and an explicit hostname allowlist:

PIPEDRIVE_API_TOKEN=your-token \
MCP_TRANSPORT=http \
MCP_HOST=0.0.0.0 \
MCP_ALLOWED_HOSTS=mcp.example.com \
MCP_ALLOWED_ORIGINS=https://app.example.com \
MCP_JWT_SECRET='replace-with-at-least-32-random-characters' \
pipedrive-mcp-server

The built-in HTTP server does not terminate TLS. Never expose it directly on an untrusted network: place it behind a trusted HTTPS reverse proxy, keep the application port private, and configure the proxy to replace (not append to) forwarding headers. JWT bearer tokens are replayable if captured. Docker Compose therefore publishes the service only on host loopback by default; remote operators must add a TLS terminator before changing that binding.

Clients send Authorization: Bearer <token>. Tokens must use HS256. MCP_JWT_ISSUER and MCP_JWT_AUDIENCE add optional claim validation. There is no boot-token setting.

MCP_ALLOWED_ORIGINS is an exact, comma-separated allowlist. When it is empty the server emits no CORS headers; wildcard CORS is not supported. MCP_ALLOWED_HOSTS contains hostnames only, without schemes, paths, or ports.

Legacy SSE

The deprecated compatibility routes are GET /sse and POST /messages. They are enabled by default in 2.x and can be disabled with MCP_ENABLE_LEGACY_SSE=false. MCP_TRANSPORT=sse remains an alias for HTTP mode and emits a warning. These routes are planned for removal in 3.0.

Docker

Copy .env.example to .env, set PIPEDRIVE_API_TOKEN, and set a random MCP_JWT_SECRET of at least 32 characters. Then run:

docker compose up --build -d
docker compose ps

Compose serves /mcp on port 3000, requires JWT for MCP routes, runs as the unprivileged node user, and checks /health with Node’s built-in fetch. Published images use ghcr.io/willdent/pipedrive-mcp-server.

For stdio in Docker, override the transport and disable the HTTP health check:

docker run --rm -i --no-healthcheck \
  -e PIPEDRIVE_API_TOKEN=your-token \
  -e MCP_TRANSPORT=stdio \
  ghcr.io/willdent/pipedrive-mcp-server:latest

Tools and response contract

Read tools:

  • get-users
  • get-deals, get-deal, get-deal-notes, search-deals
  • get-persons, get-person, search-persons
  • get-organizations, get-organization, search-organizations
  • get-pipelines, get-pipeline, get-stages
  • search-leads, search-all

List/search tools return JSON text and structured content shaped as:

{
  "items": [],
  "count": 0,
  "nextCursor": "optional-cursor",
  "truncated": false,
  "filters": {}
}

Single-record tools return { "item": {} }. Stable failures return { "code", "message", "retryable" } with MCP isError: true; raw API errors, credentials, and token-bearing URLs are not exposed.

get-deals has no hidden status or activity-date defaults. It supports owner, stage, pipeline, status, updated-time, value, cursor, limit, and generic custom-field selection. Page size defaults to 100 and is capped at 500. Value filtering scans at most 2,000 deals and reports truncated and nextCursor when more records remain. Use search-deals for title searches.

Gated writes

No write tools are registered unless named in PIPEDRIVE_WRITE_TOOLS:

PIPEDRIVE_WRITE_TOOLS=move-deal,add-deal-note
  • move-deal requires dealId, targetStageId, and expectedCurrentStageId. It performs a best-effort optimistic stale-state check immediately before the update. Pipedrive does not expose an atomic conditional stage update, so concurrent changes by another client can still race this check.
  • add-deal-note accepts at most 10,000 characters of plain text and HTML-escapes it before sending.
  • Both tools preview by default. A mutation happens only with execute: true.
  • Audit output contains only operation, entity ID, outcome, and timestamp—never note contents or credentials.

Configuration

VariableDefaultPurpose
PIPEDRIVE_API_TOKENrequiredPipedrive API token
MCP_TRANSPORTstdiostdio, http, or deprecated sse alias
MCP_HOST127.0.0.1HTTP bind address
MCP_PORT3000HTTP port
MCP_HTTP_PATH/mcpStreamable HTTP path
MCP_ALLOWED_HOSTSlocal hostsExact hostname allowlist
MCP_ALLOWED_ORIGINSemptyExact CORS origin allowlist
MCP_ENABLE_LEGACY_SSEtrueKeep /sse and /messages
MCP_MAX_SESSIONS100Maximum combined HTTP/SSE sessions
MCP_SESSION_IDLE_TIMEOUT_MS1800000Close sessions idle longer than this duration
MCP_JWT_SECRETemptyHS256 secret; required off loopback
MCP_JWT_ISSUERemptyOptional JWT issuer
MCP_JWT_AUDIENCEemptyOptional JWT audience
PIPEDRIVE_WRITE_TOOLSemptyExplicit write-tool allowlist
PIPEDRIVE_RATE_LIMIT_MIN_TIME_MS250Minimum delay between queued calls
PIPEDRIVE_RATE_LIMIT_MAX_CONCURRENT2Maximum concurrent calls

All ports, paths, numeric limits, origins, hosts, boolean values, and tool names are validated at startup.

Migrating from 1.x

  1. Upgrade Node to 22 or 24.
  2. Remove PIPEDRIVE_DOMAIN, MCP_JWT_TOKEN, MCP_JWT_ALGORITHM, and MCP_ENDPOINT.
  3. Replace HTTP MCP_TRANSPORT=sse with MCP_TRANSPORT=http; keep the alias temporarily if a client still uses legacy SSE.
  4. Point modern clients at /mcp; legacy clients may use /sse through 2.x.
  5. Update callers for cursor pagination and the structured response contract.
  6. Review deal queries: get-deals no longer silently forces open status or a 365-day activity window.
  7. Leave PIPEDRIVE_WRITE_TOOLS empty until each write has been reviewed and sandbox-tested.

Development and release

npm run typecheck
npm test
npm run build
npm run validate:package

See docs/release-checklist.md for automated, Docker, and manual Pipedrive sandbox gates. Releases are tag-driven and use npm trusted publishing plus GHCR semantic tags.

Scope

Version 2.x remains single-tenant and self-hosted. Pipedrive OAuth, MCP OAuth, persistent sessions, broad CRUD, and destructive delete tools are intentionally out of scope.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Pipedrive MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/pipedrive-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops