Shopify MCP server security: permissions, scopes and locking it down

What Shopify's official MCP servers and AI Toolkit can read and change, which scopes and protected customer data approvals apply, and which controls limit write access to a store.

On this page

Can Shopify MCP write access to a store be governed before rollout?

Shopify's documented controls over store writes are partial: `store execute` mutations are off by default and need an explicit flag, and Customer Accounts MCP requires declared scopes and protected customer data approvals. The docs do not describe a central admin policy for the AI Toolkit, so a reviewer cannot enforce a single store-wide write restriction from Shopify's side alone. Plan the rollout around that gap before any team connects an agent to a live store.

Some controls are built into the tooling. The AI Toolkit runs store management through the authenticated Shopify CLI store context, and the user chooses when each task executes, so every run still depends on a person starting it. The --allow-mutations flag adds a second gate for Admin API writes. Other controls depend on the app and the store owner. Customer Accounts MCP access is limited to the scopes the app declares in shopify.app.toml, and each protected data field needs a stated reason in the Dev Dashboard. The custom domain requirement and the store owner's decision to authorize the app also shape what an agent can reach. Shopify's pages do not say how far a stored CLI login extends, so confirm that before relying on it.

The reviewer must set the boundaries that Shopify leaves open. Ask each team to run store execute without --allow-mutations by default, and treat any run with the flag as a change that needs a named approver. Review shopify.app.toml for the access scopes each app requests, remove any the use case does not need, and document the reason for every protected customer data field before go-live. Limit use of --verbose, since Shopify documents that its output may include sensitive data, and keep that output out of shared logs. Then ask Shopify in writing which admin roles can see or revoke stored CLI authentication, and whether store actions leave a record the store team can review. The answers decide whether these controls can be enforced or only recommended.

Shopify MCP control support by server and capability

This table compares four Shopify MCP surfaces on read and write behavior, default write blocking, scope declaration, protected customer data and admin-side policy. Each cell opens with a status (built in, requires app or store configuration, not documented or removed) followed by the supported detail. Plan and edition details are not covered here, so confirm them with Shopify before approving any store connection.

SurfaceRead and write behaviorWrite block and scope declarationProtected customer data and admin policy
Shopify AI Toolkit via Shopify CLI store executeBuilt in: runs Admin API GraphQL queries, and mutations only when explicitly enabled.Built in: mutations are disabled by default and run only with the allow-mutations flag. Scope declaration not documented.Not documented for protected data. The verbose flag may output sensitive data. Admin policy not documented; the user chooses when to execute.
Customer Accounts MCP serverNot documented: confirm whether tools are read-only. Covers order management and account details.Requires app configuration: access scopes such as customer_read_customers are declared in shopify.app.toml.Requires app configuration: protected customer data requirements, a custom domain, and a stated reason for each field in the Dev Dashboard. Admin policy not documented.
Shop MCPBuilt in: finds merchant products and checks out using the buyer's Shop account.Not documented: confirm whether merchants or admins can block checkout or restrict scopes.Not documented: confirm how buyer account data is handled and what merchant-side controls exist.
Storefront MCP catalog and cart endpointRemoved: catalog and cart tools on the old storefront endpoint are no longer available.Removed. Shopify points developers to Shop MCP or the Universal Commerce Protocol endpoint.Removed. Review any remaining connections and move them to the supported endpoints.

How store execute gates writes through stored CLI authentication

The most important design point in this path is that the AI tool inherits an authenticated store context it did not create. The Shopify CLI store execute command runs an Admin API GraphQL query or mutation using app authentication saved earlier with shopify store auth. Whoever ran that earlier authentication step decided which store and which access the CLI holds, and any session that can invoke store execute can use that stored context. Before approving the setup, confirm which people and machines hold stored CLI authentication for each store, who can revoke it, and whether the credentials are kept on shared developer workstations or build hosts where an agent could reach them.

Writes are gated by a flag, not by the role of the caller. In store execute, mutations are disabled by default and run only when --allow-mutations is passed. That makes the flag the first control to write into policy: reviewers should ask whether the agent's instructions or local configuration ever include it, and whether any wrapper script, alias or shared snippet adds it by default. The Shopify AI Toolkit describes store management as running supported tasks through this authenticated store context, with the user choosing when to execute them. That human step is a control only if the user reviews the exact GraphQL operation before it runs. Treat an agent-proposed mutation as a change request to read, not a task to approve by habit.

The --verbose flag needs its own rule. Shopify documents that it may include sensitive data in its output. Because agent sessions often save command output into transcripts, terminal logs or shared chat history, verbose output can move store data into places that were never meant to hold it. Decide in advance whether verbose mode is allowed at all, and where transcripts from agent sessions are stored, how long they are kept and who can read them. Confirm these settings with your own transcript and log retention policies, since the supplied documentation does not set them for you.

Decisions to make before approving write access to a store

Each card is a decision an organization has to make before an AI tool touches a Shopify store. The choices interact: the store and app identity set what a CLI session can change, mutations decide whether writes happen at all, and the customer-data scopes decide what personal data an agent can see.

Which store and app identity the CLI uses

The store execute command runs Admin API calls using app authentication stored earlier with shopify store auth, so whichever store and app identity is stored is the one an AI-driven session inherits. Confirm which store, which app and which staff context the session uses, and whether a developer's personal store is ever connected to a production merchant. Ask who can run shopify store auth on shared machines and how that stored authentication is removed when someone leaves the project.

store execute reference

Whether AI tools may run mutations

Mutations are disabled by default in store execute and run only when the --allow-mutations flag is passed. This is the main switch between a read-only session and one that can change products, orders or settings. Decide whether any AI tool may use that flag, and if so for which stores and task types. Require a human to review each write before it runs, and document who may approve the flag for a store.

store execute reference

Customer-data scopes declared in the app

For Customer Accounts MCP, the app declares access scopes in shopify.app.toml, such as customer_read_customers and customer_read_orders. Each scope widens what an agent can read about shoppers. Review the declared scopes line by line against the use case, remove any the agent does not need, and confirm that the app configuration in version control matches what is deployed.

Customer Accounts MCP docs

Who justifies each protected data field

The Dev Dashboard asks for a reason for each protected customer data field the app uses, and the Customer Accounts MCP server requires the app to meet Shopify's protected customer data requirements. Name one accountable owner for those justifications, and have the owner check that each stated reason still matches how the agent is used. Revisit the justifications when the agent's purpose or the team changes, since a stale reason is hard to defend in a review.

Customer Accounts MCP docs

Whether Customer Accounts MCP justifies a custom domain

The Customer Accounts MCP server requires a custom domain on the store. That is a store configuration change with its own ownership, DNS and certificate responsibilities, so it should be a deliberate decision, not a side effect of enabling the server. Ask whether the order management and account tools solve a real business need that Shop MCP or the store's existing interfaces do not. If the answer is weak, leave the server off and keep the store's configuration unchanged.

Customer Accounts MCP docs

Where CLI output and transcripts are kept

The --verbose flag on store execute is documented as possibly including sensitive data in its output. Output can land in terminal scrollback, AI tool transcripts, logs and CI artifacts, and each location has its own retention and access rules. Decide whether --verbose is banned for AI sessions, confirm where the AI client stores its conversation history, and set a rule for redacting customer records before they are pasted into tickets or shared channels.

store execute reference

How the answer changes by Shopify use case

The Shopify AI Toolkit connects AI coding tools to developer docs, API schemas, code validation and store management through Shopify CLI. The store management part is the one that matters for approval, because it runs Admin API operations under the authenticated store context created with shopify store auth, and the user chooses when to execute them. Test on a staging store first, since anything the agent runs there uses the same stored authentication pattern as production.

  • Mutation gate: Shopify CLI store execute disables mutations by default, so writes run only when a person passes --allow-mutations. Confirm your standard coding agent setup does not add that flag on its own.
  • Verbose output: The --verbose flag may include sensitive data in its output. Keep it off in agent sessions that write to logs or transcripts.
  • Stored credentials: The agent inherits whatever store auth the developer's machine holds. Ask who owns those credentials and how they are revoked when someone leaves.
  • Staging separation: Keep the AI Toolkit pointed at a development store with no live orders or customer records, and confirm the CLI profile names make it obvious which store is active.

Before approving this setup, check which store the developer's CLI profile points to and whether any production auth is stored on the same workstation.",

Order of work to lock down a Shopify store before AI access

This sequence moves a Shopify store from open-ended agent access to a documented, minimal and tested configuration, so each permission an agent holds is chosen, justified and verified before any AI client connects.

  1. Confirm which server and tool each team uses

    Start by listing every Shopify MCP server, AI Toolkit path and CLI command that staff intend to use, including Shop MCP, the Customer Accounts MCP server and store execute. Record which team owns each one, which AI client connects to it, and whether it reads customer data or changes store data. The Storefront MCP catalog and cart tools on the old endpoint were removed, so confirm no team still points at them. Done means a written inventory that an owner has signed off on.

  2. Separate development and production stores

    Give agents a development store for exploration and testing, and keep production stores out of the first connection. Confirm with the store owner which CLI authentication sessions exist on each machine, because store execute runs against previously stored app authentication created with shopify store auth. Done means each developer can name the store their session points to, and production credentials are not stored on shared or agent-accessible workstations.

  3. Set mutations to off by default

    Confirm that store execute runs without the --allow-mutations flag in every standard workflow, since mutations are disabled by default. Document that any write requires a person to add the flag and choose the operation, and that the AI Toolkit runs store tasks only when the user chooses to execute them. Done means a test query and a test mutation both behave as documented, and the team's runbook states who may add the flag and when.

  4. Declare minimal scopes and justify each protected field

    For the Customer Accounts MCP server, declare only the access scopes the use case needs in shopify.app.toml, such as customer_read_customers or customer_read_orders, and avoid granting read scopes for data the agent does not need. In the Dev Dashboard, give a reason for each protected customer data field. Confirm with the app owner that the protected customer data requirements are met before any production use. Done means the scope list in the config file matches the written justification, and a reviewer can trace each scope to a named task.

  5. Configure the custom domain only if needed

    The Customer Accounts MCP server requires a custom domain on the store, so decide whether the use case needs that dependency before configuring it. If the domain is not needed for the agent's task, do not add it. If it is required, record who approved the change, the domain name and the date it was applied. Done means the store's domain configuration matches the approved record and nothing was changed beyond that requirement.

  6. Restrict or document CLI output handling

    The store execute --verbose flag is documented as possibly including sensitive data in its output, so ban it in agent-driven sessions unless a reviewer approves it for a specific task. Decide where command output is kept, who can read terminal logs or transcripts, and whether AI clients may store results. Done means a written rule for verbose output exists, and a test run confirms that the agent's session does not echo customer or credential data into places the team has not approved.

  7. Retest write paths after each change

    After every change to scopes, mutation flags, domain settings or client connections, rerun a short test set that attempts a read, a permitted write and a blocked write from each AI client. Check that blocked writes fail, that the audit trail your store and CLI provide records the attempts you expect, and that customer fields outside the justified list are not returned. Done means the test results are saved with the date, the configuration version and the reviewer's name, and any failure blocks rollout until fixed.

Evidence a security reviewer asks for on Shopify MCP access

This table lists the documents and settings a reviewer should request before approving agent access to a Shopify store, with the place each comes from and the gap if it is missing. Read each row as a request to the app owner or Shopify admin, and treat a missing answer as a blocker for write access. The main takeaway is that scope declarations, data justifications and the store execute mutation policy are the three items most likely to be absent from a rollout.

What to ask forWhere it comes fromThe gap if missing
Access scope list in shopify.app.toml, including each customer scope such as customer_read_customers and customer_read_ordersThe app's shopify.app.toml file in the source repository, checked against the Dev Dashboard configurationThe reviewer cannot tell which customer or order data the agent can reach, so the approval rests on assumptions
A written reason for each protected customer data field declared in the Dev DashboardDev Dashboard protected data settings for the app, as declared by the app ownerProtected customer data may be requested without a documented justification, which weakens the audit trail for each field
A usage policy stating when store execute may run with --allow-mutations and who may approve itThe team's written AI tooling policy, plus the store execute reference for the default-disabled mutation behaviorWrite access can happen in any session where the flag is passed, with no named approver or record of the decision
Ownership of stored CLI app authentication, with a named owner and a documented rotation and revocation procedureShopify CLI configuration on each developer machine, and the owner's runbook for store authCredentials created with store auth may persist on laptops after staff change roles, with no one accountable for removing them
Handling rules for --verbose output, including where output may be stored, shared or pasted into AI promptsThe store execute reference, which warns that verbose output can include sensitive data, and the team's data handling standardSensitive store or customer data may leave the approved environment through logs, transcripts or chat context
Written vendor confirmation of which admin controls apply to each server, such as who can install or revoke the app and whether audit logs existShopify's developer documentation and a written answer from Shopify or the partner account teamThe docs reviewed may not describe SSO or audit logging, so the reviewer cannot verify the controls the team plans to rely on

What a write mistake or data exposure looks like for a store

The most consequential failure is an unintended write. In Shopify CLI, store execute runs Admin API GraphQL operations against a store using the authentication saved by shopify store auth, and mutations stay disabled until someone passes --allow-mutations. Illustrative scenario: an agent is asked to correct the price of one product variant, but the query it writes also touches a collection, or a bulk change is run against a broader set of products than the reviewer expected. Because the agent executes under the authenticated store context, the change lands on the live store rather than in a staging copy. The main control is keeping mutations off by default and requiring the flag only in a reviewed session. The residual risk is that a person who passes the flag, or a session where the flag is left on, still has full write reach allowed by the stored app authentication. Confirm which Admin API scopes that stored app holds and whether a separate development store is used for any agent-driven mutation.

The second failure is data exposure through output. The --verbose flag on store execute is documented as possibly including sensitive data in its output. Illustrative scenario: an engineer runs a verbose query to debug a customer lookup, pastes the agent session into a ticket or shared chat, and the transcript now holds customer names, addresses or order details that were never meant to leave the store. Treat verbose output as sensitive by default: restrict who may run it, prohibit pasting raw transcripts into shared channels, and set a rule that agent logs are reviewed before they are shared. The residual risk is that the agent client keeps its own transcript and any local history on the developer's machine, which Shopify's documentation for store execute does not govern. Ask your security team to confirm where those transcripts are stored and how long they persist.

Questions buyers ask about Shopify MCP security

Does Shopify MCP support SSO for staff who connect AI agents?

The supplied facts do not cover single sign-on for the Shopify MCP servers or the AI Toolkit, so do not assume it exists. Ask Shopify directly whether SSO applies to any server you plan to use, and whether it covers the Shopify CLI sign-in that the store execute command relies on. Confirm the answer in writing before the security review, and record which identity each staff member uses to connect an agent to a store.

Do we need a higher Shopify plan to use these MCP servers?

The supplied facts do not state which Shopify plan or edition includes the AI Toolkit, Shop MCP or the Customer Accounts MCP server, so confirm this with Shopify before you budget. Ask for the plan requirement for each server separately, along with any fees for protected customer data access or custom domains that the Customer Accounts MCP server requires. Get the answer as a written statement tied to your store.

What drives the effort to lock down a Shopify MCP setup?

Effort depends on how many servers and store actions you allow, and on whether agents only read data or can also change it. Most of the work is inventory and decisions: which stores are in scope, which Admin API operations staff need, who can run the Shopify CLI on which machines, and whether customer order or account data is involved. Each customer-data scope adds a review step with its own reason per field. Ask any partner for a quote built from that written inventory rather than from a generic setup.

Can our own team lock down Shopify MCP access without outside help?

Yes, many teams can handle the basic controls in house, provided they have an engineer who knows Shopify CLI and an owner for store security. The core steps are confirming which AI tools may run the CLI, keeping mutations disabled unless someone approves them, and limiting customer data scopes to the fields a use case needs. Outside help is useful when you want independent testing of prompt injection, tool permissions and credential handling before approval, which DeployOpen offers as a fixed-scope AI agent rollout security review.

How does Shopify block write actions through the store execute command?

In Shopify CLI, the store execute command treats mutations as disabled by default and runs them only when the --allow-mutations flag is passed. That means an agent cannot change store data through this path unless someone or a configured workflow adds that flag. Keep the flag out of shared scripts and agent instructions, review who can run the CLI with stored app authentication, and treat the --verbose flag with care because its output may include sensitive data.

What do customer data approvals involve for the Customer Accounts MCP server?

The Customer Accounts MCP server requires that the app meets Shopify's protected customer data requirements and that the store has a custom domain. The app declares access scopes in shopify.app.toml, such as customer_read_customers and customer_read_orders, and gives a reason for each protected data field in the Dev Dashboard. Request only the scopes a use case needs, write down the reason for each field, and have your privacy reviewer check the justification before the app goes live.

What does the timeline for a Shopify MCP security review depend on?

The timeline depends on the number of stores and servers in scope, whether customer data approvals are needed, and how quickly Shopify and your internal reviewers answer open questions. Fixed-scope work starts only after scope, deliverables and timelines are agreed in writing, so the schedule follows from that document rather than a standard duration. Confirm with your provider which dates depend on your approvals and which depend on their own testing and retest.

How DeployOpen works on this

DeployOpen reviews how a Shopify AI setup reads and changes a store, from the AI Toolkit and Shopify CLI store execute to any Customer Accounts MCP app. The work is scoped in writing, tested against the store's real permissions, and delivered as documented controls that your security and commerce teams can review.

How we scope

  • We agree in writing which Shopify AI surfaces, clients and store environments are in scope before work starts.
  • We list every app scope, admin role and CLI login that the setup would hold, and who approves each one.
  • Engagements are fixed-scope, with deliverables and timelines confirmed in writing; ongoing support is available as a retainer.

How we build

  • We configure the store CLI context and limit mutation use so writes need an explicit, reviewed step.
  • We test whether a prompt-injected agent could reach mutations, verbose output with sensitive data, or customer records.
  • We check protected customer data requests, access scopes in shopify.app.toml and the reason recorded for each field.

How we hand over

  • You receive a findings report covering permissions, scopes, write paths, data exposure and credential handling.
  • Each finding comes with a specific fix, such as scope removal, approval steps, logging or operator guidance.
  • We deliver a retest of the fixed configuration so your team can confirm the controls work as documented.

How we support

  • Retainers can cover upgrades, re-review when Shopify changes a server or endpoint, and periodic retesting.
  • We help prepare evidence your security reviewers ask for, such as configuration records and access decisions.
  • Where a question depends on Shopify's terms or on your store's plan, we tell you what to confirm with Shopify first.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.