# Build a Pipedrive MCP server with Gemini: n8n workflow template

> Started by an incoming Telegram message, and works across Gmail and Telegram. It puts Gemini behind a retrieval step, so answers are drawn from documents...

Source: https://millionrounds.com/workflow/build-a-pipedrive-mcp-server-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Setup and learning](https://millionrounds.com/workflows?category=Setup+and+learning#library)

# Build a Pipedrive MCP server with Gemini

Started by an incoming Telegram message, and works across Gmail and Telegram. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-a-pipedrive-mcp-server-with-gemini)

**25 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 4 Service 19

The steps in the order they run, from what starts it.

- 1 **On new message** Telegram trigger *Starts it*
- 2 **Simple Memory** Memory Buffer Window *Model*
- 3 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 4 **MCP Client** Mcp Client Tool *Model*
- 5 **Create Organization Deal** Pipedrive Tool *Service*
- 6 **Create Person Deal** Pipedrive Tool *Service*
- 7 **Update Deal** Pipedrive Tool *Service*
- 8 **Search & Return Deals** Pipedrive Tool *Service*
- 9 **Create Person Lead** Pipedrive Tool *Service*
- 10 **Get Lead** Pipedrive Tool *Service*
- 11 **Get Deal** Pipedrive Tool *Service*
- 12 **Update Lead** Pipedrive Tool *Service*
- 13 **Return Many Leads** Pipedrive Tool *Service*
- 14 **Create Person** Pipedrive Tool *Service*
- 15 **Get Person** Pipedrive Tool *Service*
- 16 **Search Person** Pipedrive Tool *Service*
- 17 **Update Person** Pipedrive Tool *Service*
- 18 **Create Organization** Pipedrive Tool *Service*
- 19 **Get Organization Data** Pipedrive Tool *Service*
- 20 **Search & Return Organizations** Pipedrive Tool *Service*
- 21 **Update an Organization** Pipedrive Tool *Service*
- 22 **Create Organization Lead** Pipedrive Tool *Service*
- 23 **AI Agent** Agent *Model*
- 24 **MCP Server Trigger** Mcp trigger *Starts it*
- 25 **Send summary** Gmail *Service*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 25
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Telegram
- **Model:** Gemini
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-a-pipedrive-mcp-server-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also setup and learning, with the same services where possible, closest in size first.

- [**Manage your Shopify store with OpenAI and MCP** 26 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/manage-your-shopify-store-with-openai-and-mcp)
- [**Agentic email triage & inbox manager n8n template with OpenAI** 27 steps · calls a model · Gmail, Pinecone](https://millionrounds.com/workflow/agentic-email-triage-and-inbox-manager-n8n-template-with-ope)
- [**Gmail MCP server – your all‑in‑one AI email toolkit** 22 steps · Gmail](https://millionrounds.com/workflow/gmail-mcp-server-your-all-in-one-ai-email-toolkit)
- [**AI-powered Telegram task manager with MCP** 19 steps · calls a model · Google Tasks, Telegram](https://millionrounds.com/workflow/ai-powered-telegram-task-manager-with-mcp)
- [**Expose CRM read/write tools to Claude and ChatGPT with Gmail** 18 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/expose-crm-read-write-tools-to-claude-and-chatgpt-with-gmail)
- [**Freelancer Client Onboarding Automation - n8n Workflow Template** 17 steps · Airtable, Gmail](https://millionrounds.com/workflow/freelancer-client-onboarding-automation-n8n-workflow-templat)
