mcp-pipedrive
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-pipedrive move deal 123 to stage Negotiation"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-pipedrive (YvY Capital)
MCP server para gerenciar o pipeline de originação YvY no Pipedrive direto do Claude Code, com sistema de backup automático para desfazer qualquer alteração.
Tools (28 total)
Deals (7)
list_deals— listar deals (default: pipeline Renda Fixa id=6, status open)get_deal— detalhe completo de um dealsearch_deals— busca por título / camposupdate_deal— valor, currency, título, stage, pipeline, status, person_id, org_id, expected_close_date, custom_fields (auto-backup)move_deal_to_stage— conveniência: mover deal entre stages (auto-backup)clear_deal_custom_field— limpar valor de um custom field no deal (auto-backup)add_note_to_deal— anexar nota/descrição rica (HTML) (auto-backup)
Atividades (4)
link_meeting_to_deal— criar reunião vinculada (auto-backup)create_follow_up— task/call/email/meeting de follow-up (auto-backup)list_activities_for_deal— listar pendentes/concluídasmark_activity_done— concluir ou reabrir (auto-backup)
Pessoas / Contatos (5)
search_persons— buscar por nome/email/telefoneget_person— detalhe completocreate_person— criar com email/telefone/org (auto-backup)update_person— atualizar campos (auto-backup)link_person_to_deal— vincular contato a deal (auto-backup)
Organizações / Empresas (4)
search_organizations— buscar por nomeget_organization— detalhe completocreate_organization— criar com nome + endereço opcional (auto-backup)link_organization_to_deal— vincular empresa a deal (auto-backup)
Combinada (1)
attach_contact_to_deal— find-or-create person (por email) + org (por nome) + vincular tudo ao deal numa só chamada. Para"vincula a empresa X com contato fulano@y.com no deal Z"(auto-backup cada subetapa)
Custom Fields — schema (3) + valor (1)
list_deal_fields— lista todos os 88 fields da conta comkey(usar emupdate_deal(custom_fields={key: val}))add_deal_field— criar novo custom field (varchar, text, monetary, date, enum, set, address, phone, etc.) (auto-backup)remove_deal_field— ⚠️ deletar custom field (valores nos deals permanentemente perdidos; backup só recria o schema) (auto-backup do schema)clear_deal_custom_field— limpar valor sem deletar o field (preferir esse pra "remover" no dia-a-dia)
Backups (2)
list_backups— lista snapshots recentes (mais novo primeiro), retorna nome do arquivorestore_backup— desfaz: undo de update → PATCH com estado anterior; undo de create → DELETE; undo de delete → recreate
Pipeline metadata (2)
list_pipelines— descobrir pipeline_idlist_stages— etapas de um pipeline (default: Renda Fixa)
Related MCP server: Pipedrive MCP Server
Campos essenciais (protegidos contra remoção)
Chaves bloqueadas em remove_deal_field, clear_deal_custom_field e via custom_fields no update_deal:
value, currency, title, org_id, person_id, stage_id,
pipeline_id, status, id, add_time, update_time, creator_user_idTentativas (ex: clear_deal_custom_field(deal_id, "title") ou update_deal(title="")) retornam erro antes de chamar o Pipedrive. Pra mudar esses campos, use update_deal com o novo valor diretamente — só limpar não rola.
Customize a lista editando PROTECTED_FIELD_KEYS no topo do server.py.
Backup automático
Toda operação que muda dados grava um snapshot em backups/YYYYMMDD-HHMMSS_<operação>_<entidade>_<id>.json contendo:
{
"timestamp": "2026-05-13T20:45:12Z",
"operation": "update_deal",
"entity_type": "deal",
"entity_id": 222,
"before": { /* estado completo antes */ },
"params": { /* o que foi enviado no PATCH */ },
"after": { /* estado depois (Pipedrive response) */ }
}Para desfazer: restore_backup(backup_file="20260513-204512_update_deal_deal_222.json"). A restauração:
Update → reverte ao
beforeCreate → deleta a entidade criada
Delete → recria do
before(⚠️ valores per-deal de custom fields removidos não são recuperáveis — só a definição do field é recriada)
A própria restauração grava um novo backup, então dá pra "re-do" também.
Setup (primeira vez)
cd ~/yvy/mcp-pipedrive
cp .env.example .env
# edita .env com PIPEDRIVE_API_TOKEN e PIPEDRIVE_DOMAIN
uv venv --python 3.12 && uv pip install -e .Registrar no Claude Code
claude mcp add --scope user pipedrive-yvy \
/Users/leoceron/yvy/mcp-pipedrive/.venv/bin/python \
/Users/leoceron/yvy/mcp-pipedrive/server.pyValidar: claude mcp get pipedrive-yvy → Status: ✓ Connected.
⚠️ MCPs só carregam no startup do claude — reinicie a sessão depois de adicionar/atualizar o servidor pra ver as tools novas.
Defaults
Pipeline default = Renda Fixa (id=6). Tools que aceitam
pipeline_id(list_deals, list_stages) usam esse default. Pra outros pipelines, passarpipeline_id=Nexplicitamente.Auth via
?api_token=query param.Notas (
add_note_to_deal) e custom fields (list_deal_fields,add_deal_field,remove_deal_field) usam API v1 — Pipedrive não migrou ainda. Resto v2.
Pipelines da conta YvY (snapshot 2026-05-13)
ID | Nome |
1 | Venture Studio |
4 | Equity |
5 | Carbon Platform |
6 | Renda Fixa ← default |
12 | Investor Relations |
13 | PDI |
15 | Originação Geral |
16 | Relacionamento |
17 | Fundraising |
18 | Venture Studio - Pipeline |
Deploy HTTP (para Cowork / claude.ai web)
Cowork e claude.ai web não acessam MCPs locais (stdio). Pra usar de lá, sobe o servidor em HTTP num host (Railway recomendado).
Arquivos já prontos no repo
server.py— suportaMCP_TRANSPORT=stdio(default) ouMCP_TRANSPORT=httprailway.toml— config do deploy (healthcheck em/health)nixpacks.toml— força Python 3.12 + instala via pipBearer-token auth obrigatório em modo HTTP
Passos (GitHub → Railway, ~20min)
Inicializa git e cria repo privado no GitHub:
cd ~/yvy/mcp-pipedrive git init && git add . && git commit -m "initial MCP pipedrive yvy" gh repo create yvy-mcp-pipedrive --private --source=. --push(Confere que
.envestá no.gitignore— não pode subir token pro GitHub.)Cria conta na Railway (railway.app), conecta com GitHub.
New Project → Deploy from GitHub repo → seleciona
yvy-mcp-pipedrive.Settings → Variables, adiciona:
PIPEDRIVE_API_TOKEN = a6bddacf02621acb8bb9ab85575231b93df05d55 PIPEDRIVE_DOMAIN = yvy MCP_TRANSPORT = http MCP_AUTH_TOKEN = WlnCIMO1-O96Dp1lIK5ajI1cXPdoAnZZJVDzlivCxaQ(Railway injeta
PORTautomaticamente — não precisa setar.)Settings → Networking → Generate Domain. Pega a URL pública (ex:
mcp-pipedrive-yvy.up.railway.app).Testa o health check no browser:
https://<url>/health→ "ok".Registra no Claude Code local (opcional, pra usar HTTP em vez de stdio):
claude mcp add --transport http --scope user pipedrive-yvy-http \ https://<url>/mcp \ --header "Authorization: Bearer WlnCIMO1-O96Dp1lIK5ajI1cXPdoAnZZJVDzlivCxaQ"No Cowork: entra na config de MCP/Connectors → "Add Custom" → cola URL
https://<url>/mcp+ headerAuthorization: Bearer <token>.
Validação rápida
# Sem auth → 401
curl https://<url>/mcp -X POST -H "Content-Type: application/json"
# Com auth → 200 + JSON-RPC
curl https://<url>/mcp -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'Segurança
Token
MCP_AUTH_TOKENé o único guard entre a internet e suas 28 tools. Não vaze. Se vazar, gera novo e atualiza tanto na Railway quanto no header de cada cliente registrado.O
.envlocal está no.gitignore— confere antes de cada push.Railway tem env vars criptografadas at-rest; só você (owner) vê.
Stages do Renda Fixa
Leads (68) → Prospecção (43) → Engajamento (44) → Pré Análise (77) → Análise Estruturação (45) → NBO (46) → DD (69)
Available Tools
28 toolsadd_deal_fieldA
Create a new custom deal field on the Pipedrive account.
field_type: varchar | text | double | monetary | date | enum | set | address | phone | time | etc.
options: list of labels for enum/set (dropdown) fields.
Returns the new field's id and key to use in update_deal(custom_fields={key: value}).
Auto-backed up.
Inputs: name (required), field_type (required), options.
add_note_to_dealB
Attach a note (descrição rica, aceita HTML) to a deal. Notes API is v1. Auto-backed up.
Inputs: deal_id (required), content (required).
attach_contact_to_dealA
Find-or-create a person (by email) and optionally an organization (by name), then link both to the deal.
Flow:
Search person by email — if not found, create (requires contact_name).
If company_name given, search org — if not found, create.
Link person+org to the deal.
Each sub-operation is independently backed up. To fully undo, restore each backup file in reverse order (use list_backups).
Inputs: deal_id (required), contact_email (required), contact_name, company_name.
clear_deal_custom_fieldA
Clear (set to null) one custom field on a deal. Auto-backed up.
Refuses to clear essential fields (value, title, org_id, etc.) — those define the deal and shouldn't be blanked. Change them via update_deal with a new value.
Inputs: deal_id (required), field_key (required).
create_follow_upB
Create a follow-up (task/call/email) linked to a deal. Auto-backed up.
Inputs: deal_id (required), subject (required), due_date (required), activity_type, +1 more.
create_organizationC
Create a new organization. Auto-backed up.
Inputs: name (required), address.
create_personA
Create a new person. Email/phone added as primary 'work' contact. Auto-backed up.
Inputs: name (required), email, phone, org_id.
get_dealB
Fetch full details of a single deal.
Inputs: deal_id (required).
get_organizationC
Fetch an organization's full record.
Inputs: org_id (required).
get_personB
Fetch a person's full record.
Inputs: person_id (required).
link_meeting_to_dealC
Create a meeting activity linked to a deal.
due_date: "YYYY-MM-DD"; due_time: "HH:MM"; duration: "HH:MM"
participants: list of person_ids attending
Inputs: deal_id (required), subject (required), due_date (required), due_time, +3 more.
link_organization_to_dealB
Set org_id on a deal. Auto-backed up.
Inputs: deal_id (required), org_id (required).
link_person_to_dealA
Set person_id on a deal (replaces any previously-linked contact). Auto-backed up.
Inputs: deal_id (required), person_id (required).
list_activities_for_dealA
List activities on a deal. done=False=pending only, True=completed only, None=both.
Inputs: deal_id (required), done.
list_backupsA
List recent backup snapshots (most recent first). Use restore_backup with the filename to undo.
Inputs: limit. Returns: result
list_deal_fieldsA
List all deal fields (default + custom) with their key (used in custom_fields dict) and field_type.
Use the returned key in update_deal(custom_fields={key: value}).
Inputs: no named parameters.
list_dealsA
List deals. Defaults to Renda Fixa pipeline (id=6) + open status.
Pass pipeline_id=None to query across ALL pipelines.
Inputs: pipeline_id, status, limit.
list_pipelinesA
List all pipelines with ids and names.
Inputs: no named parameters.
list_stagesA
List stages of a pipeline (default: Renda Fixa, id=6). Returns stage_ids for move_deal_to_stage.
Inputs: pipeline_id.
mark_activity_doneC
Mark an activity done (or reopen it). Auto-backed up.
Inputs: activity_id (required), done.
move_deal_to_stageA
Move a deal to a specific stage. Use list_stages to find stage_id. Auto-backed up.
Inputs: deal_id (required), stage_id (required).
remove_deal_fieldA
DELETE a custom deal field. WARNING: per-deal values across ALL deals are PERMANENTLY lost.
Refuses to delete:
Essential keys (value, title, org_id, person_id, stage_id, etc.) — listed in PROTECTED_FIELD_KEYS
System fields (edit_flag=false) — Pipedrive API also blocks these
Backup recreates the schema on restore, but per-deal values are unrecoverable. Prefer clear_deal_custom_field for per-deal cleanups.
Inputs: field_id (required).
restore_backupA
Restore the state captured in a backup file (undo a previous operation).
CREATE ops → deletes the entity that was created.
UPDATE ops → PATCHes the entity back to the
beforestate.DELETE ops → re-creates the entity from
before(note: for remove_deal_field, only the schema is recreated; per-deal values are permanently lost).
Inputs: backup_file (required).
search_dealsC
Search deals by title or custom field content.
Inputs: term (required), limit.
search_organizationsC
Search organizations by name.
Inputs: term (required), limit.
search_personsC
Search persons by name, email, or phone.
Inputs: term (required), limit.
update_dealC
Update one or more fields on a deal. Auto-snapshots before+after for undo.
Essential fields (title, value, org_id, person_id, stage_id, etc.) cannot be blanked — passing "" for title is rejected. To change them, pass the new value.
Inputs: deal_id (required), value, currency, title, +7 more.
update_personC
Update a person. Email/phone REPLACE the primary entry. Auto-backed up.
Inputs: person_id (required), name, email, phone, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Most tools have distinct purposes, but some overlap exists between composite tools like attach_contact_to_deal and atomic ones (create_person, link_person_to_deal). Overall clear.
All tool names follow a consistent verb_noun pattern in snake_case, making them predictable and easy to understand.
28 tools is slightly high but covers the core functionality of deals, custom fields, activities, and backups without feeling bloated.
Missing delete operations for persons and organizations, and no listing endpoints for persons or organizations. Deal lifecycle is well-covered, but other entities are incomplete.
Maintenance
Related MCP Connectors
Manage Pipeline CRM deals, people, companies, notes and calendar entries.
Read deals, persons, organizations, activities and pipelines; create and update CRM records.
CRM1Operate the Plixana CRM from any AI: contacts, deals, quotes, WhatsApp and metrics.
A CRM you talk to: leads, deals and a pipeline board inside ChatGPT, Grok and other MCP clients.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides full CRUD access to Pipedrive CRM API, enabling Claude and other LLM applications to manage deals, persons, organizations, activities, notes, and leads with advanced filtering and fuzzy search capabilities.6MIT
- AlicenseBqualityBmaintenanceProvides comprehensive access to Pipedrive CRM with 100+ tools for managing deals, contacts, organizations, activities, and sales workflows through natural language conversations with Claude.30372 npm12MIT
- AlicenseBqualityBmaintenanceEnables 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.123225 npm10MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Pipedrive CRM to manage deals, contacts, organizations, and activities. It features automatic custom field synchronization and guided onboarding to ensure assistants follow specific business rules and pipelines.89 npmMIT