AISuffer
Managers Entrepreneurs

MCP Security: Connect AI to CRM and Email Safely

Dmytro Antonyuk Dmytro Antonyuk Updated October 26, 2026 9 min read

Your team wants an AI assistant that can look up a customer in HubSpot, find the contract in Google Drive and summarise the last email thread. The question you have to answer is not whether the AI is clever enough. It is what you are allowing it to touch, and what happens when something goes wrong.

I ran 12 of these connectors in production for 90 days, on two agents of my own, one of them my Hermes agent system. Some stayed. Several were removed, and two of those removals were about data safety. This post is what that taught me, written for the person who has to sign off on the access, not the person who installs it.

What MCP is, in one paragraph

MCP (Model Context Protocol) is a common plug format between AI assistants and business systems. Instead of every AI tool building its own HubSpot or Gmail integration, a system publishes one MCP server, and any assistant that speaks MCP can use it. The server describes a list of actions, such as “search contacts” or “read file”, and the assistant decides when to call them. That convenience is also the risk: whatever actions the server exposes, with whatever access you granted at login, are now available to a model that reads text from outside your company. If you want the longer technical version, see what MCP is.

What I connected, and what survived

SystemWhat the agent did with itDays runOutcome
Google DriveRead file content and metadata, read-only90Kept
NotionSearch and write notes90Kept
PlaywrightBrowser automation on a private network90Kept
VercelRead deployment status and logs90Kept
Google CalendarLook up and create events90Kept for reading; writes locked out under heavy use
LinearRead and update issues90Kept with care; rate limits on team workspaces
GmailSearch threads, read attachments, send19Removed: injected instructions reached the model
HubSpotLook up and update CRM records12Removed: writes failed silently
FigmaRead design files32Removed: login expired silently about every two weeks
ZoomRead meeting recordings28Removed: returned stale data after meetings
AhrefsSEO data lookups51Replaced with a smaller custom connector
SpotifyMusic control41Removed: no business use

The pattern is clear in hindsight. The connectors that lasted were mostly read-only and stateless. The ones that failed either had write access, long-lived logins, or read untrusted text.

Lesson 1: read-only is the setting that matters most

Google Drive ran for 90 days with no failure I could find in the logs. The main reason, in my view, is that it could only read. There was no write path to race, no permission to change, nothing to undo. Google Calendar was fine for reading, and the trouble started only on the write path.

Read-only also caps the damage. A read-only connector that gets confused returns a wrong answer, which a person can catch. A connector with write access that gets confused changes your data.

This matters more now than when I tested. HubSpot’s remote MCP server became generally available on April 13, 2026 and added write access to contacts, companies, deals, tickets and activities. HubSpot says actions respect the connected user’s existing permissions. That is good design, and it puts the decision on you: the AI can do whatever the person who connected it can do. If a sales director with full edit rights connects it, the assistant has full edit rights.

What to do:

  • Connect business systems read-only first, and run that way for a few weeks before adding any write.
  • Connect as a dedicated user with a limited role, not as an admin or a department head.
  • On Google Drive, prefer the read-only scope and limit the assistant to the folders the task needs.

Lesson 2: email is the riskiest system you can connect

I removed Gmail after 19 days. In a controlled test, instructions hidden inside an email attachment reached the model’s context through the connector. Nothing bad happened because it was a test, but the path was open. This is prompt injection: an email is text written by someone outside your company, and an AI that reads it can be steered by it.

Google now says the same thing in its own setup guide for the Workspace MCP servers, which are in developer preview. It warns that hidden instructions in emails and documents can hijack a session and lead to data being changed, stolen or deleted, and tells you to review every action the AI takes. Its Gmail server can search, read, label and create drafts. It has no send tool. I think that is the right shape for any email connector: the AI drafts, a person sends.

The rule I use now: an assistant that reads inbound email, supplier documents or web pages does not also get to send email, write to the CRM, share files or call payment systems without a person approving the action. Split reading and acting into separate steps with a human between them.

Lesson 3: OAuth through the vendor beats API keys in a config file

MCP connections come in two forms. A local server runs as a program on someone’s machine and usually gets its access from an API key or token stored in a config file. A remote server runs at the vendor, and your assistant connects to it over the web after you log in.

For remote servers, the current MCP authorization spec builds on OAuth 2.1. Tokens must be issued for that specific server, the server must reject tokens meant for anything else, and it must not pass your token on to other services. The spec also tells clients to request the narrowest scopes needed. Local servers are told to take credentials from the environment instead, which in practice means a key sitting in a file.

Remote server with OAuthLocal server with an API key
Tied to a named userYesOften not
Scopes visible at loginYesDepends on the key
Expires and refreshesYesUsually never
Revoke centrallyYes, from the vendor’s admin consoleOnly by rotating the key everywhere
Shows in your admin logsUsuallyRarely

Prefer the remote, vendor-published server with OAuth whenever one exists. If you must use an API key, create a dedicated key with the smallest permissions the system allows, store it in a password manager, and put a rotation date in the calendar.

Lesson 4: failures leak more than successes

Two of the connectors I removed, Figma and HubSpot, returned full error messages to the agent when their login failed, and those messages included refresh tokens. The model saw them. A refresh token is a long-lived key to the account. If an attacker could also inject instructions, that token was one step away from leaving.

The other failure was silent expiry. Figma’s login died roughly every two weeks with no visible error. The agent retried with the same expired token in a loop, which burned money and produced nothing. HubSpot writes failed the same quiet way: the agent reported success on updates that never landed.

What to do:

  • Put a small layer between the connector and the model that strips error details down to “login failed” before the model sees them.
  • Alert a person when a connector’s login fails, instead of letting the agent retry.
  • Check that a write actually landed by reading the record back.

Lesson 5: every connector costs money on every request

Each connector adds its list of actions to every request the assistant makes, whether it uses them or not. In my setup that was between about 800 and 4,100 tokens per connector. The 12 together added roughly 24,000 tokens of descriptions before anyone typed a question. The Ahrefs connector alone registered about 40 actions for an agent that called it a few times a session, so I replaced it with a small custom one exposing the 5 I used.

Fewer connectors also means fewer things that can be misused. Connect what the task needs, not everything your team uses.

Check who publishes the server

Not every MCP server with a vendor’s name on it comes from the vendor. Before connecting one, check:

  • Vendor-hosted and maintained: Notion’s hosted server is described in Notion’s docs as actively maintained, while its older open-source server is not. HubSpot’s remote server is generally available. Google’s Workspace servers are official but still in preview.
  • Archived: the original reference servers from the MCP project, including a Google Drive one, now sit in an archived repository that states it is unmaintained and offers no security guarantees. Do not connect company data through them.
  • Community: for Outlook and SharePoint, the options I found at the time of writing were community or gateway projects built on Microsoft Graph, not a server published by Microsoft. That does not make them bad, but someone on your side has to read the code and own the risk.

What to allow and what to block

SystemAllow firstBlock until reviewed
CRM (HubSpot, Salesforce)Read contacts, companies, deals as a limited userDeletes, bulk updates, owner and stage changes
Email (Gmail, Outlook)Search and read a shared inbox, create draftsSending, forwarding rules, passing attachments to other tools
Files (Google Drive, SharePoint)Read named foldersChanging sharing settings, HR and payroll folders
DatabasesA read-only role on a replica or on viewsAny write, raw tables with personal data

The same rules apply when the AI reads contracts or invoices as part of a workflow. Our document processing and finance pages show where the human review step sits in those processes.

Keep your own audit log

Vendor logs help. Google lets admins review OAuth log events, and HubSpot records changes on each record. But neither tells you what the assistant was asked, what it decided, and which records it read. Log every tool call on your side: who asked, which tool, which records, what came back, and whether a person approved it. When a customer asks why their data was touched, that log is your answer.

What stays with a person

An AI connector does not decide who should see what. Access rules, roles and folder permissions are set by you. Sending email to customers, changing deal stages that feed forecasts, sharing files outside the company and anything that moves money stay with a person who approves them. So does the decision to widen access after the read-only trial.

If your team is already asking to connect an assistant to the CRM, inbox or shared drive, it helps to map the access before anyone logs in. That is the core of our AI integration work, and the AI readiness audit covers it across your systems. Book a scoping call and we will go through which connections are worth making and which settings to start with.

Frequently asked questions

Is it safe to connect ChatGPT or Claude to our CRM?+

It can be, if the connection is read-only to start, runs as a user with a limited role, and is logged. The risk is less about the AI vendor and more about what the connector is allowed to do. Start with reading contacts and deals, and add writes one action at a time with a person approving them.

What is the biggest risk when AI reads our email?+

Prompt injection. An email is text written by a stranger, and an AI that reads it can be told by that text to do things. Keep any assistant that reads inbound email away from sending, CRM writes and file sharing unless a person approves each action.

Should we use OAuth or API keys for AI connectors?+

Prefer OAuth through a server published by the vendor. OAuth tokens are tied to a user, carry scopes you can see, expire, and can be revoked centrally. API keys pasted into a config file usually have broad access, never rotate and are invisible to your admin console.

Do we need an audit log for AI tool calls?+

Yes. You want a record of who asked, which tool ran, which records it touched and what came back. Some vendors log part of this on their side, but you still need your own log to answer what the assistant did last Tuesday.

Which systems should we connect first?+

Read-only access to documents and CRM records usually gives the most value for the least risk. Email and anything that moves money or changes permissions come last, and only with approval steps in place.

Want to see what this would look like in your team?

A short call to see if this is a fit. No pressure, no slides.

Dmytro Antonyuk

AI process automation consultant. Builds invoice, document and support workflows for operations and finance teams.

Related articles

Stay updated on AI

Get weekly insights on AI agents, tools, and prompt engineering delivered to your inbox.