Sprites MCP · Pipedrive MCP server · Codex

How to connect Pipedrive to Codex

To connect Pipedrive to Codex, add https://mcp.sprites.ai/mcp as a remote MCP server in Codex, sign in to Sprites, and Codex can read your Pipedrive account and propose changes to it. Setup takes about two minutes and needs no API key. Every write comes back as an approval before it touches the account.

MCP server URLhttps://mcp.sprites.ai/mcp

5 steps · about 2 minutes

CodexSprites connected

Which campaigns produced won deals this quarter, and what did each cost?

Spritesanalyzerunning
SpritesPipedrive
  • LinkedIn · ABM Q39 deals · $186kScale$2.1k/deal
  • Google · Brand Exact14 deals · $121kScale$640/deal
  • Google · Competitor1 deal · $8kCut$9.4k/deal
Read-only · nothing changedSee the report

Add Sprites to Codex

Available on Anywhere Codex CLI runs — a ChatGPT plan that includes Codex, or an API key. You need a Sprites account with Pipedrive already connected — the connector acts on that connection, so Codex never handles a Pipedrive credential.

  1. Add the server

    One command writes the entry into ~/.codex/config.toml for you.

    Terminal
    codex mcp add sprites --url https://mcp.sprites.ai/mcp
  2. Or write the config by hand

    The same entry in ~/.codex/config.toml, or in .codex/config.toml inside a trusted project when you want the connector scoped to one repo.

    ~/.codex/config.toml
    [mcp_servers.sprites]
    url = "https://mcp.sprites.ai/mcp"
    auth = "oauth"
  3. Sign in

    Codex opens a browser for the Sprites consent screen and stores the token locally. Sprites supports dynamic client registration and client ID metadata documents, so there is nothing to pre-register.

    Terminal
    codex mcp login sprites
  4. Approve changes by name

    Codex renders results as text, so a pending change comes back written out rather than as a card you can click. Nothing is applied until you approve it, and the approval waits for you in Sprites — open it there and the same run continues.

    Pending change
    ChangeDaily budget $40 → $65Gategate_7f2c…

What permissions this needs

Connecting Pipedrive to Codex yourself means a Pipedrive API integration, and these are the permissions and gates it runs into. Through Sprites you sign in with OAuth instead, with no developer token or app review of your own.

deals:full, contacts:full, leads:full, activities:full

Read and change deals, people, organizations, leads and activities, including notes on them.

users:read and search:read

Resolve owners to names and find an existing record before creating a new one.

API token

The do-it-yourself route pastes a personal API token, which carries everything that user can do.

What Sprites asks for when you connect

Pipedrive sign-in for deals, contacts, leads and activities, plus user and search reads. Every write is an approval card, and no Sprites tool deletes anything.

What you skip

Your personal Pipedrive API token never sits in your AI client’s config. Codex signs in to Sprites with OAuth and never holds a Pipedrive credential.

Official Pipedrive MCP vs Sprites MCP

Pipedrive runs its own MCP server at Added from the connector directory in Claude and ChatGPT, or by custom URL. Here is what each one covers, so you can pick the one that fits in Codex — or connect both.

Pipedrive runs its own MCP server, available on every plan with usage limited by plan token allowances. Agents sign in with OAuth and can only see and change what your Pipedrive user is permitted to, with actions recorded in the change log. It searches deals, contacts, organizations and leads, creates and updates deals, contacts and activities, and converts leads. It knows nothing about your ad accounts.

Pipedrive’s official Pipedrive MCP compared with the Sprites MCP server
Pipedrive officialAdded from the connector directory in Claude and ChatGPT, or by custom URLSprites MCPapproval-gated
ReachesPipedrive onlyPipedrive beside Google Ads, Meta, LinkedIn, TikTok, Reddit, GA4 and SEO
WritesCreate and update deals, contacts and activities; convert leadsPersons, organizations, deals, leads, notes and activities — each approved on a card
ApprovalRuns within your user permissions; actions go in the change logAn approval card with before and after for every write, then a read-back
AttributionCRM data onlyWon deals matched to the ad spend that produced them
PlansEvery Pipedrive plan, within token limitsCRM integration on the Scale plan

If you only need an assistant inside Pipedrive, answering questions and updating records, Pipedrive’s own server is built for that and comes with your plan. Use Sprites when the CRM question is really a marketing question: which campaigns produced won deals, which leads came from where, and what to change in the ad accounts as a result, with every CRM write held for your approval.

Why run Pipedrive ads through Sprites

Codex is the interface; the connector decides what it can see and what it is allowed to do. Six things change when that connector is Sprites.

The CRM next to the ad accounts

A Pipedrive-only connector answers with Pipedrive. Sprites reads Pipedrive beside Google Ads, Meta and LinkedIn, so cost per won deal is one question, and the budget move it implies is the next one.

Every channel on one connector

No delete action to misuse

Sprites writes four kinds of record change to Pipedrive — deals, persons, organizations and leads; notes; activities — and has no tool that deletes. A request to remove records gets Pipedrive links back, however it is phrased.

Every write approved, then verified

Contact imports, deal updates, notes and activities each arrive as a card with the before and after. After you approve, Sprites reads the record back to confirm the change landed as shown.

Run the first prompt

Ask Codex this. It routes to a Sprites door, which reads your Pipedrive account and answers — no account to name, no confirmation to give first.

  • With Sprites, which campaigns produced won deals in Pipedrive this quarter?
  • Ask Sprites how many Pipedrive deals were won last month by lead source, next to our ad spend.
  • Use Sprites to add the 40 webinar sign-ups in this CSV to Pipedrive as persons.
  • Have Sprites move the Acme renewal deal to Negotiation and set the expected close date to the 15th.
  • Every Monday, have Sprites summarize open Pipedrive deals by stage and owner.

Run `codex mcp list` and confirm sprites shows as connected.

Running Pipedrive from Codex

The jobs people hand over first, start to finish: what you type, what Sprites does with it, and what comes back to approve.

  1. Cost per won deal

    You, in CodexWith Sprites, what did each won deal cost us this quarter, by campaign?

    Sprites does
    Summarizes won deals by lead-source field in Pipedrive, then reads spend for the same period from the ad accounts.
    You get back
    One table of cost per deal by campaign, and the budget changes it suggests as approval cards.
  2. Event list to CRM

    You, in CodexAsk Sprites to add these event sign-ups to Pipedrive as persons.

    Sprites does
    Reads the list, checks your custom field keys, and matches each row on email against existing persons.
    You get back
    One approval showing new versus updated records; the batch is written only when you approve.
  3. Monday pipeline

    You, in CodexEvery Monday, have Sprites summarize open Pipedrive deals by stage and owner.

    Sprites does
    Summarizes open deals by stage and owner on a schedule.
    You get back
    A short pipeline read in your thread each week, with stalled deals named.

What Codex can do with Pipedrive

The same doors, whichever client you are in. Marketing work that belongs in a commit: Codex can read the landing page it is about to ship and brief Sprites on the campaign pointing at it, in one session.

Ad spend and won deals in one answer

Pipedrive sits beside Google Ads, Meta and LinkedIn in the same conversation, so "which campaigns produced revenue" is read from the ad accounts and the CRM together rather than from two exports and a spreadsheet.

Totals computed from the data, not guessed

Deal counts and value come from a summary query grouped by stage, owner, lost reason or a source field, with currencies kept apart. The agent reads your pipelines, stages and custom field keys first, so a renamed stage or a custom field does not break the report.

Contacts and leads in from a campaign list

Hand over a form export or an event list and Sprites creates or updates up to 50 persons, organizations, deals or leads per call. Persons match on email and organizations on name, so a known person is updated rather than duplicated.

Deal updates you approve on a card

Stage, status, value, expected close date, owner or a custom field. Only what you name changes, the card shows before and after, and the deal is read back afterwards to confirm the write landed.

Notes and activities where the context belongs

A call summary or the campaign a lead came from, written as a note on a deal, person, organization or lead. A call, meeting or follow-up task logged as an activity. Each is approved first, then read back.

Sprites does not delete

No Sprites tool deletes a Pipedrive record. Ask to remove records and Sprites finds them and hands you their Pipedrive links, so the delete stays with you.

How approvals work here

Codex renders tool results as text, so a Pipedrive change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

What it reads

  • Deals, pipelines and stages, with your own stage names
  • Persons, organizations and leads
  • Activities (calls, meetings, tasks) and notes
  • Users, for resolving owners to names, and custom field definitions
  • Deal counts and value by stage, owner, status, lost reason, source field or month

What it can change

  • Persons, organizations, deals and leads, created or updated — up to 50 per call
  • One deal at a time: title, pipeline and stage, won or lost, value, close date, owner or custom fields
  • Notes on a deal, person, organization or lead
  • Activities: a call, meeting or task logged, or a follow-up scheduled
  • Every write is an approval card first, and is read back after
  • Nothing is deleted: Sprites has no delete action

When it does not work in Codex

Three things go wrong in this client specifically, and each has a one-line fix.

Codex says the tool is not found.

The config was edited while a session was open. Restart Codex — it reads config.toml at startup.

Login loops without ever completing.

The OAuth callback defaults to http://127.0.0.1/callback. If something else on the machine holds that port, set mcp_oauth_callback_url in config.toml and log in again.

Codex says a change was applied and nothing happened in the account.

It was proposed, not applied — that is the design. The approval is waiting in Sprites; open it there and the run continues from where it stopped.

And on the Pipedrive side

Sprites says a stage or field does not exist.

Pipedrive accounts rename stages and add custom fields. Sprites reads your pipelines and field keys before writing; if one was just added in Pipedrive, ask again and it will be picked up.

Deals do not show which campaign they came from.

Attribution reads the source or campaign fields on your Pipedrive records. If deals arrive without them, the report can only group by what is there; set the source when records are created and the next report can use it.

A record I just created is not found.

Pipedrive search lags recent changes. Sprites confirms with a direct listing, so a brand-new record is usually found on the second ask.

Sprites asks me to reconnect Pipedrive.

Reconnect Pipedrive on the Sprites integrations page, then ask again. A connection made before the required permissions were granted, or one Pipedrive has revoked, has to be re-authorized.

Pipedrive and Codex: questions

Which URL do I paste into Codex?

https://mcp.sprites.ai/mcp. There is one endpoint and every client uses it — every OAuth grant is bound to exactly that address, so a variant of it will not be honoured.

Can Codex change my Pipedrive account without asking?

Codex renders tool results as text, so a Pipedrive change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

Do I need a Pipedrive API key or developer token?

No. Pipedrive is connected once inside Sprites through Pipedrive (Pipedrive OAuth), and the connector acts on that connection. Your personal Pipedrive API token never sits in your AI client’s config. Codex never sees a credential for it.

Why Codex for Pipedrive specifically?

Marketing work that belongs in a commit: Codex can read the landing page it is about to ship and brief Sprites on the campaign pointing at it, in one session.

Is there an official Pipedrive MCP server?

Yes. Pipedrive runs a native MCP server. It is available on every Pipedrive plan, with usage limited by plan token allowances, and it is an official connector in Claude and ChatGPT. It searches deals, contacts, organizations and leads, creates and updates deals, contacts and activities, and converts leads, within your own Pipedrive permissions, with actions in the change log. Sprites is a separate MCP server that reads Pipedrive beside your ad accounts and holds every CRM write for approval.

Which Sprites plan includes Pipedrive?

The pricing page lists CRM integration, covering Zoho CRM, HubSpot, Salesforce and Pipedrive, as a Scale plan feature. The MCP server itself comes with every paid plan.

Keep going

The same Codex connector reaches every other channel — nothing else to add.

All Pipedrive guides

Pipedrive, from Codex

Paste one URL, sign in once, and the next Pipedrive question you ask Codex gets answered from the live account.