Shop MCP

Reference

Security

ShopMCP holds the keys to your ecommerce stack, so security is the floor, not a feature. Here's exactly what we do.

Credential encryption

Every credential you give us — Shopify offline tokens, Neto API keys, Google refresh tokens — is encrypted with envelope encryption before it touches Postgres:

  • A fresh data encryption key (DEK) is generated per stored credential via AWS KMS GenerateDataKey, with the workspace id bound as KMS encryption context. KMS binds decrypt requests to the same context, so a ciphertext belonging to workspace A cannot be decrypted under workspace B's scope even if the row is misrouted.
  • DEKs are wrapped by a customer master key (CMK) in AWS KMS. The plaintext DEK only exists in memory inside the runtime, cached for at most 60 seconds, then evicted.
  • Postgres only ever stores ciphertext + the wrapped DEK + the KMS key ID. A database dump on its own is useless — you'd also need KMS access with the correct encryption context.
  • KMS access is limited to a single IAM role used by the runtime, audited by AWS CloudTrail.

Tenant isolation

Tenant-owned runtime tables carry a workspace_id. Postgres Row-Level Security policies gate tenant-role queries by a session variable set at the start of each transaction. Even if a query is missing an explicit filter, RLS rejects rows from other workspaces on covered tables; admin/system jobs use a separate owner-role connection and explicit authorisation checks.

The dashboard and MCP runtime connect to Postgres as a dedicated tenant role that does not have the BYPASSRLS privilege. Explicitly cross-tenant paths — Stripe webhooks, scheduled jobs, the admin console — use a separate owner-role connection and always perform an authorisation check before any query. Delegated agency jobs must check permitted child workspaces and bind each child execution to its own tenant scope.

The MCP runtime resolves the workspace from either an OAuth bearer or the token in a static MCP URL on every request, opens an AsyncLocalStorage scope with the credentials, and runs the tool inside it. There is no shared module-level state holding credentials.

Write controls and approvals

Read-only by default. Supported changes require write-enabled workspace and key permissions plus provider access. Preview, confirmation and verification controls vary by tool; review the exact operation before enabling writes. A workspace write policy is not a separate human approval for every action.

For example, complete Shopify barcode replacement requires the preview's expected current values and plan hash, explicit confirmation flags, a fresh state check and independent readback. Other tools have different controls. A provider accepting a request does not prove a later business outcome.

Policy-authorized action receipts and exact user approvals are different records. Do not infer a separate human approval merely because an operation has an action receipt.

Stored data and retention

ShopMCP stores encrypted connection credentials, account and usage records, saved playbooks, job and action records, compact metric snapshots, and temporary result resources. Retention depends on the record type, plan and configured policy; temporary resources expire. See the privacy policy and security documentation.

Tool activity and supported action records are available in the workspace audit history. Full conversations remain in your AI client; prompts or arguments sent to ShopMCP may appear in job and action records.

ShopMCP retrieves data from connected sources. Provider processing delays, reporting windows, short-lived caches and saved results affect freshness; check the source and retrieval time.

Large results can be stored as workspace-scoped temporary resources; R2-backed payloads are encrypted before upload. An expiring result resource is not a durable warehouse or a guarantee that an earlier analysis can always be reproduced.

See the privacy policy, data deletion information and plan audit-history allowances for the applicable record types and retention boundaries.

GDPR

Our privacy policy and DPA describe data processing responsibilities and how to request access, deletion and portability:

  • Access: request a JSON export of everything we hold for your workspace.
  • Erasure: deleting a workspace removes active workspace records, connections, credentials, usage rows, temporary resources, and workspace-scoped PII-bearing webhook/email rows. Operational backups roll off on the current database retention window.
  • Portability: usage events and playbooks export as JSON.

A signed Data Processing Agreement is available on request — email legal@shop-mcp.app.

Subprocessors

The vendors that handle data on our behalf:

  • Vercel — dashboard and MCP runtime hosting (iad1, US East)
  • Neon — Postgres database (us-east-1)
  • Upstash — Redis rate limiting, workflow queues, and short-lived caches
  • AWS KMS — credential encryption keys
  • Stripe — billing
  • Sentry — error tracking with credential and common PII scrubbing
  • Sequenzy — transactional email and verification
  • Cloudflare — DNS, edge TLS, and encrypted temporary resource object storage

Prompt injection & ecommerce tool safety

An LLM reading untrusted text — a support email, a product review, a return reason, even a page it was asked to summarise — can be tricked into issuing tool calls on the user's behalf. Mark Shust's well-known warning about Magento MCPs crystallises the threat model. ShopMCP takes it seriously and applies the same defences to every ecommerce module — Shopify, Neto, BigCommerce, Magento:

  • Allowlist-only tools. Every MCP tool is a hand-written handler bound to a specific upstream endpoint, verb, and field-level input schema. There is no generic call_rest, execute_graphql, or run_shell escape hatch. An LLM that has been prompt-injected cannot invent new endpoints — it can only invoke tools we shipped.
  • Read-only by default. Supported write tools are mounted only when the applicable release, workspace and key policies permit them. The connected provider must also grant the required permissions. An integration being included in a plan does not enable writes.
  • Field-level write whitelists. When writes are on, each write tool accepts a hand-picked subset of fields via a strict Zod schema. For example, magento_update_product accepts only name, price, special_price, status, visibility, description, short_description, weight, qty, and is_in_stock — SKU rename, attribute_set_id, website_id, and bulk custom-attribute replacement are rejected before an HTTP request is built. Dangerous fields (password, role_id, is_active) are hard-coded forbidden regardless of the upstream ACL.
  • Upstream ACL is the final gate. For platforms that support it — Magento Integrations, Neto API users, Shopify custom app scopes — we ask the merchant to mint a token with the narrowest possible scope and walk them through it in the connect docs. Even if the runtime is compromised, the upstream platform rejects out-of-scope calls.
  • No TLS bypass, no auto-retry on 4xx. Upstream clients never disable certificate verification (the boldcommerce/magento2-mcp reference does this “for development” — we don't). 4xx responses surface immediately to the LLM so the user sees the failure; we do not retry injected-failure loops that could amplify damage.
  • Tool activity records. The runtime records tool execution metadata for usage and observability. Supported writes also record action details; the available verification evidence depends on the tool. Review recorded activity from /settings/connections.
  • Rate limiting. Every authenticated MCP request flows through an Upstash sliding-window limiter keyed by workspace. A runaway prompt-injected loop is capped by plan tier before it can exhaust the upstream API budget.
  • Short-lived provider caching. Repeated Xero read-only tool calls can be cached briefly by workspace and connection id to avoid duplicate provider usage; writes bypass cached reads immediately.
Defences lower the blast radius — they don't eliminate it. Treat any text from outside your company (support emails, reviews, shipping comments, user-generated content) as potentially hostile before you paste it into a chat alongside a write-capable tool call. Always start a new merchant read-only and review /settings/connections usage before turning writes on.

Data loss prevention & incident response

ShopMCP maintains internal data loss prevention and incident response policies that map these controls to day-to-day operations: data classification, scoped MCP keys, encrypted temporary result storage, retention sweeps, log scrubbing, incident severity, evidence handling, and breach notification.

The public commitments are reflected in this security page, the DPA, the data deletion page, and our security contact. We notify affected customers of a Personal Data Breach without undue delay and within the DPA timeframe.

Compliance roadmap

ShopMCP is pre-audit. Many of the technical controls commonly required by SOC 2 (envelope encryption, tenant isolation, audit logging, least-privilege IAM, dependency scanning, and prompt-injection controls) are already in production or actively tracked in the hardening backlog; formal audit preparation starts once the business reaches sustained paying usage. We will publish the timeline and any interim attestations here as they land.

Reporting a vulnerability

Email security@shop-mcp.app. We reply within 24 hours, acknowledge valid reports, and credit you in our changelog if you'd like.