MCP Security and Data Handling
What an AI client connected to MerchantFlow can and cannot do: read scopes, the two opt-in write scopes, tenant isolation, PII redaction, what gets logged, token lifetimes, and how to revoke access.
MCP Security and Data Handling
Connecting an AI client to MerchantFlow grants that client permission to read your store's analytics on your behalf. This page states exactly what it can reach, what it cannot, what we record, and how to end the connection.
The connection is read-only unless you grant a write scope
Of MerchantFlow's 76 MCP tools, 74 only read. The other two can write, each behind its own scope, and neither scope is granted unless it is asked for by name and you approve it.
MerchantFlow defines thirteen granular read scopes. mcp:read:all, the default on the consent screen, expands to those thirteen and nothing else. The two write scopes are separate:
| Write scope | Tool | What it allows |
|---|---|---|
mcp:settings:write | settings_update | Changing your own preferences for this store: the MerchantFlow app in ChatGPT, your Daily AI Summary schedule and your anomaly alert emails. No store data, and no setting that affects your team |
mcp:cogs:import | start_invoice_import_draft | Uploading a supplier invoice to start a draft cost import, which uses one of your monthly invoice extractions. No cost changes until you review and apply the draft in MerchantFlow |
A write scope reaches a connection only in one of two ways: an AI client asks for it by name and you leave it ticked on the consent screen (you can untick it under Customize), or you tick it yourself when creating a personal access token, where it is never preselected. Either way, a connection only gets the scopes your role allows -- mcp:cogs:import needs a role that can manage COGS.
No scope, read or write, lets a client change your connected Shopify, WooCommerce, or ad platform accounts. Every read-only tool advertises readOnlyHint: true and destructiveHint: false in its tools/list entry; the two write tools advertise readOnlyHint: false.
If an AI client offers to refund an order, change a price, pause a campaign, or edit a product through MerchantFlow, it cannot. There is no tool to call.
Your data is isolated at the database layer
Every query an MCP tool makes is scoped to your store in the database itself, not filtered afterwards in application code. Another store's data is unreachable even if someone guesses or enumerates an internal ID.
Access tokens are bound to a single resource and carry your workspace identity as a signed claim. A token issued for one workspace cannot be replayed against another.
Customer personal data is redacted
Responses pass through a redaction layer that masks emails, phone numbers, names and addresses before anything leaves our servers. It is unconditional - there is no setting, on our side or yours, that turns it off.
The search and fetch tools used by ChatGPT's standard connector surface are built differently: rather than redacting customer fields, they never read them. Order documents from those tools carry order number, dates, status and money only.
You will still see aggregate customer analytics - cohorts, lifetime value, repeat purchase rate - because those are computed figures, not identities.
What we log
Every tool call writes an audit row containing:
- Your workspace and the user who authorized the client
- Which client called, and the client name it reported
- Which tool ran, and the parameters it was given (with sensitive keys stripped)
- How long it took, whether it succeeded, and the response size
You can review connected clients and recent usage under Settings > Developer > MCP (/dashboard/settings/developer/mcp).
We do not log tool responses, so your figures are not duplicated into the audit trail. We do not log access tokens.
What the AI provider sees
The tool results MerchantFlow returns are sent to whichever AI client you connected - Claude, ChatGPT, Cursor or another - and are handled under that provider's privacy policy, not ours. This is the same as any document or file you share with an AI assistant.
MerchantFlow does not choose what a connected client asks for. You do, through your prompts.
This is a separate matter from MerchantFlow's own in-dashboard AI features, which send data to a model provider on our behalf as our subprocessor. See the privacy policy for both.
Tokens and lifetimes
OAuth (the default for Claude, ChatGPT, Cursor, Windsurf and VS Code):
- Access tokens last one hour.
- A refresh token, issued only if you approve the "stay connected" permission, lasts 90 days and rotates on every use. Reusing a rotated token revokes the whole chain - that is how a stolen token is contained.
- Authorization codes expire after 30 minutes and are single-use, bound with PKCE (
S256only).
Personal access tokens for headless environments:
- You choose 30, 90, 180 or 365 days at creation.
- The token is shown once and never stored. We keep only a SHA-256 hash, so a database copy cannot be turned back into a working token.
Revoking access
From Settings > Developer > MCP, revoke any connected client or personal access token. Revocation is immediate with no grace period - the next call that client makes fails.
Revoking access does not delete any MerchantFlow data. It only ends that client's ability to read it.
If an account is suspended
Suspending a MerchantFlow account -- whether a workspace owner removes the member or MerchantFlow support suspends the account -- cuts off its MCP access at once. Every connected AI client starts failing with:
This MerchantFlow account cannot use the MCP server. Its access was suspended, so no data can be returned. Contact your account owner to have it restored.
The cut-off is permanent for credentials issued before the suspension. Reactivating the account does not bring them back: every access token minted before the suspension stays dead, so an attacker who held a live token when the account was suspended cannot resume once it is restored. After reactivation, reconnect each AI client to mint fresh credentials, and reissue any personal access token the client was using.
Rate limits
Each plan has an hourly, daily and per-minute call budget, which also caps how much data any single connection can pull. See plan limits.
Reporting a security issue
Email [email protected]. Please include the client you were using and the approximate time, and do not include access tokens in your message.
Related
Last updated on
MCP Personal Access Tokens (Headless Connections)
Generate scoped personal access tokens to connect MerchantFlow MCP from headless environments - VMs, SSH sessions, CI runners, and dev containers - without an OAuth browser flow.
MerchantFlow MCP Tool Reference
Complete list of the 76 MCP tools MerchantFlow exposes -- 74 read-only tools and 2 write tools behind their own scopes -- with parameters, defaults, and required scopes, plus the built-in prompts and resources available to compatible MCP clients.