Connect Patch to AI assistants (MCP)
What this covers: What Patch MCP is, how to connect it, available data, and troubleshooting. The Patch MCP server lets AI assistants access your Patch account data and take approved actions on your behalf. Ask questions about contacts, campaign performance, and automations — or trigger actions like creating contacts and building automations — without leaving your AI client.
What is MCP?
Model Context Protocol (MCP) is an open standard that lets AI models connect to external tools and data sources. Instead of copying data into a chat window, the AI calls Patch directly — with your permission.
Patch MCP is a remote connector. Add it once to your AI client, sign in with your Patch account, and the assistant can use Patch data in conversation.
Before you start
You'll need:
- An MCP-compatible AI client — ChatGPT, Claude, Cursor, Codex, or MCP Inspector.
- A Patch account with the permissions you want the AI to use.
- The Patch MCP endpoint:
|
Field |
Value |
|---|---|
|
Name |
|
|
URL |
|
|
Auth |
Leave blank. Clicking "Connect" will redirect you to sign in with your Patch account (OAuth) — no client ID, secret, or token needed. |
Connect your AI client
Every client uses the same endpoint and OAuth flow. Steps differ slightly by product.
Claude
-
Click here to auto configure all your Claude Patch MCP settings.
- Click Continue.
- Complete Sign in with Patch when prompted.
Alternative:
- Open Claude → Settings → Connectors.
- Click Add connector → Custom connector.
- Enter the name and URL from the table above.
- Leave advanced settings blank. Clicking "Connect" will redirect you to sign in with your Patch account (OAuth) — no client ID, secret, or token needed.
ChatGPT
- Open ChatGPT → Settings → Connectors (or Apps & Connectors).
- Click Add connector → Custom / Remote MCP.
- Enter the name and URL from the table above.
- Complete Sign in with Patch when prompted.
Requires a paid ChatGPT plan with custom connector support.
Claude Desktop
Add to claude_desktop_config.json and restart:
{ "mcpServers": {
"patch": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.patchretention.com/mcp"
]
}
}
}
On first use, complete the OAuth flow in your browser.
Cursor
Option A — Settings UI (recommended)
- Open Cursor → Settings → MCP.
- Add a remote server named
patchpointing athttps://mcp.patchretention.com/mcp. - Authenticate on first data use. Clicking "Connect" will redirect you to sign in with your Patch account (OAuth) — no client ID, secret, or token needed.
Option B — Project config
Add to .cursor/mcp.json:
{ "mcpServers": {
"patch": {
"url": "https://mcp.patchretention.com/mcp"
}
}
}
Codex
- Open your Codex environment → MCP Servers or Connectors.
- Add a remote server with the URL.
- Clicking "Connect" will redirect you to sign in with your Patch account (OAuth) — no client ID, secret, or token needed.
If your environment expects stdio servers, use the mcp-remote bridge (same config as Claude Desktop above).
Sign in with Patch
Regardless of client:
- The AI client redirects you to Patch's authorization page.
- Sign in with your Patch credentials.
- Select the account you want the AI to access.
- Approve the connection.
Your Patch credentials are never shared with the AI provider. The MCP server verifies your token with Patch's session API and delegates data calls through Patch's security layer.
To switch accounts, disconnect the connector and reconnect through OAuth.
Verify it's working
Start a new conversation and try:
- "What Patch data do you have access to?"
- "How many contacts are in my account?"
- "Show me my recent blasts."
- "List my automations."
The AI should call Patch MCP data and return live data from your account.
What can Patch MCP do?
Patch MCP exposes data from the Patch Agents platform. Ask naturally — you don't need to memorize data names.
|
You might say |
What happens |
|---|---|
|
"List my automations" |
Lists automation sequences |
|
"How many contacts match this filter?" |
Counts contacts in a segment |
|
"Show blast performance for last month" |
Pulls campaign metrics |
|
"What tags does my account have?" |
Reads account configuration |
Data categories
|
Category |
Examples |
|---|---|
|
Contacts |
List contacts, get profiles, create/update contacts, generate filters |
|
Campaigns |
List blasts, blast insights, campaign stats |
|
Automations |
List sequences, automation insights, create automations, validate workflows |
|
Analytics |
Dashboard metrics, event log summaries |
|
Messaging |
List and read messages |
|
Account data |
Groups, segments, tags, templates, offers, memberships, keywords, gateways, reports |
What MCP cannot do
- Access data from accounts you don't belong to
- Bypass Patch permissions or approval requirements
- Auto-approve write actions without your consent
Getting help
If you still can't connect after trying the steps above:
- Note the error message and which AI client you're using.
- Check whether the issue is auth, data discovery, or tool execution.
- Contact your Patch rep with the details.