Security and governance
MCP Security Best Practices for E-commerce Teams
By Martin Lovfjall, Editor, MCP Ecommerce · Published · 8 min read

The short answer
MCP security best practices come down to six controls: keep an approved list of MCP servers, sign in with OAuth rather than shared keys, give each server the minimum permissions (read-only first), require human approval for changes, treat tool output as untrusted, and log every tool call. The protocol does not enforce these for you, so your team must.
MCP security best practices for an e-commerce team start with one idea: treat every MCP server as a separate, untrusted system that you approve, limit and monitor. MCP (Model Context Protocol) is the open standard that lets an AI assistant connect to tools and data such as your store, ad accounts and email platform. The protocol defines how the connection works. It does not decide who may connect, what they may change or whether anyone checks the results.
This guide is a practical sequence for merchants and agencies who want to roll out MCP across a team without creating unmanaged access to customer, order and ad-spend data. For a shorter merchant-level view, see the site's checklist on whether MCP is safe for your store.
What do enterprise MCP security controls actually protect?
Enterprise MCP security is about three assets that e-commerce teams hold:
- Credentials. An MCP server often holds sign-in tokens for several services. One compromised server can expose tokens for many of them, as security vendors such as SentinelOne point out.
- Data. Orders, customer details, margins and campaign performance.
- Actions. Editing products, changing budgets, pausing campaigns, sending emails or issuing refunds, depending on what the server allows.
The official MCP specification states that hosts must obtain explicit user consent before invoking any tool, and that tool descriptions should be treated as untrusted unless they come from a trusted server. It also says MCP cannot enforce these principles at the protocol level. In practice, enforcement sits with your clients, your identity provider and your internal rules.
What do you need before you start?
- A list of who on the team uses AI assistants with connectors today (including personal accounts used for work).
- An owner for each connected system (store, ads, email, analytics) who can approve access.
- Access to your identity provider or admin console, if you have one.
- The vendor documentation for each server. Verify features and permissions there, not in blog posts.
Step 1: Build an allow-list of approved MCP servers
Unapproved servers are the most common gap. The Coalition for Secure AI recommends allow-lists of approved servers backed by documented security reviews, and regular re-certification.
- List every MCP server in use, official or third-party, local or remote.
- For each, record the vendor, what it can read and change, where it runs and who owns it.
- Approve only servers that pass a review. The site's guide on how to evaluate an MCP server before connecting it covers the questions to ask.
- Treat each new server as a change request, not a personal preference.
- Re-review approved servers on a schedule and when a vendor changes permissions.
Prefer official, maintained servers from the platform vendor. Be cautious with community packages that have no clear owner or update history.
Step 2: Use OAuth sign-in instead of shared keys
MCP authentication with OAuth is the standard route for remote servers. OAuth lets a person sign in to the vendor and grant a limited set of permissions, without pasting a long-lived password or API key into a config file.
Points to know:
- Authorization is optional in the MCP specification. A server can be reachable with no authentication at all, so never assume one is protected.
- The current specification published on modelcontextprotocol.io (2026-07-28 at the time of writing) calls for OAuth 2.1 on authorization servers. Dynamic Client Registration is described as deprecated, with Client ID Metadata Documents preferred. Confirm details against the spec, since versions change.
- Token handling matters: tokens should be issued for the specific server that receives them, which the spec covers under audience binding.
- Avoid shared logins. Each person should authenticate as themselves so that actions can be traced.
- For larger organizations, the 2025-11-25 revision added an enterprise-managed authorization extension, which lets the company identity provider control which connections are allowed. Check whether your identity provider and your AI client actually support it before planning around it.
If a server asks you to paste a static API key, store it in a secrets manager, never in a shared document or chat, and give each server its own key.
Step 3: Apply least privilege and start read-only
OWASP's MCP Security Cheat Sheet advises granting each server the minimum permissions its function needs, and using scoped, per-server credentials rather than sharing tokens across servers.
For e-commerce, that translates to:
- Start every connection with read-only access (reporting, catalog, order lookups).
- Add write access only for a named use case, a named person and a review date.
- Choose the narrowest scopes the vendor offers. Do not tick every box on the consent screen.
- Use separate accounts or test stores where possible, for example a staging store before production.
- Remove access when a person leaves or a project ends.
The article on MCP permissions, read-only versus read-write for ads and stores, explains the differences by platform.
Step 4: Require human approval for any change
Keep a person between the assistant and any action that costs money or touches customers. Examples worth gating: budget changes, campaign status changes, price edits, discount creation, refunds, bulk email sends and customer data exports.
- Leave the client's per-tool approval prompt switched on. Do not enable blanket auto-approve for write tools.
- Read what the assistant is about to do, including the parameters, before approving.
- For high-risk actions, add a second reviewer outside the AI tool.
The CoSAI paper adds a useful point: tool implementations should not rely on the language model to enforce security-critical checks. Limits must live in the server and the vendor account permissions, not in a prompt that says "do not delete anything".
Step 5: Treat tool output and descriptions as untrusted
Prompt injection means hidden instructions inside content that the assistant reads, such as a product review, a support ticket or a web page. The assistant may follow them as if you had written them. OWASP's draft MCP Top 10 also lists tool poisoning, where a tool's own description is manipulated.
Controls that help:
- Keep read-only access in any workflow that reads customer-written text.
- Do not combine, in one session, a server that reads untrusted text with a server that can send email or change data.
- Where your tooling allows, pin or hash tool descriptions and flag changes, as some vendor guidance recommends.
- Sandbox locally run servers and restrict their network access to what they need.
Note that the OWASP MCP Top 10 is still a beta project, so use it as a checklist for awareness, not a final standard.
Step 6: Turn on MCP audit logging
MCP audit logging means keeping a record of every tool call: who, which server, which tool, what parameters and when. OWASP recommends logging all invocations with full parameters, user context and timestamps.
- Check what each client and vendor already logs. Many ad and store platforms have their own change history, which is a good starting point.
- If you run servers yourself or through a gateway, send logs to a central place your security or operations team can search.
- Keep logs long enough to investigate an incident, and restrict who can read them, since parameters can contain customer data.
- Review a sample weekly: unusual write calls, new servers, unexpected hours.
A gateway (a central proxy that sits between assistants and servers) can enforce approvals and logging in one place. It adds cost and effort, so it fits larger teams better than a three-person store.
Step 7: Control the supply chain
Local MCP servers are software that runs on a laptop with the user's access. Treat them like any other dependency.
- Install only from sources you have reviewed, and pin versions.
- Use a private package repository with scanning if your developers manage servers.
- Scan for unapproved servers on company machines and networks.
- Fail closed: if a server or policy check is unavailable, the workflow should stop rather than skip the check.
Which control reduces which risk?
| Control | Main risk reduced | E-commerce example |
|---|---|---|
| Server allow-list | Unreviewed or malicious servers | Staff install a random "Shopify helper" package |
| OAuth, per-user sign-in | Shared or leaked keys | An agency intern uses the owner's ad login |
| Read-only first, narrow scopes | Accidental or malicious changes | Assistant edits live prices during an analysis |
| Human approval of writes | Costly actions run unseen | Budget raised tenfold by a misread prompt |
| Untrusted-output rules | Prompt injection | A hostile review tells the assistant to export customers |
| Audit logging | No way to investigate | Nobody can say who paused a campaign |
| Supply chain controls | Tampered dependencies | A local server update adds a data-sending call |
What can go wrong with these controls?
- Approval fatigue. If every call prompts, people click through. Keep read tools frictionless and reserve prompts for writes.
- Shadow connections. Staff using personal AI accounts bypass every control above. Policy and training matter as much as settings.
- Overbroad scopes. Consent screens default to wide access in some products. Check each time.
- Spec drift. MCP revisions change authorization details. One third-party guide still describes an older revision as current, so rely on modelcontextprotocol.io.
- Unverified claims. Vendors differ in what their servers log or restrict. Confirm in their documentation rather than assuming.
- False confidence. These controls reduce risk. They do not remove it, and none of them replaces account-level permissions in the underlying platform.
Where should a small team begin?
If you cannot do everything this month, do these four: list the servers in use, move each to read-only, switch off auto-approve for write tools, and confirm where each platform records changes. Then add the allow-list review and a monthly access check.
Frequently asked questions
+What are the MCP security best practices?
Keep an approved list of MCP servers, authenticate each user with OAuth, grant the minimum scopes (read-only first), require human approval for write actions, treat tool output as untrusted, and log every tool call with user and parameters. Add supply chain checks for locally run servers and re-review approved servers regularly.
+Does MCP require authentication?
No. Authorization is optional in the MCP specification, so a server can be reachable without any sign-in. When authorization is supported on HTTP-based servers, the spec points to OAuth 2.1. Always check that a server you connect to requires sign-in, and confirm the details in its vendor documentation.
+How does MCP authentication with OAuth work?
You sign in to the vendor and approve a set of permissions. The server then receives a token limited to those scopes, instead of your password or a permanent key. Tokens should be issued for that specific server. Use per-person sign-ins, pick narrow scopes and revoke access when it is no longer needed.
+What should MCP audit logging include?
OWASP recommends logging all tool invocations with full parameters, user context and timestamps. For stores and ad accounts, also use the platform's own change history. Restrict who can read the logs, because parameters can contain customer data, and review unusual write calls on a regular schedule.
+Do small stores need enterprise MCP security?
They need the core of it, not the full program. Use official servers, sign in with OAuth, start read-only, keep approval prompts on for changes and check the platform's change history. A gateway and formal re-certification matter more as the number of people, servers and client accounts grows.
Sources
Questions and answers
Questions readers and searchers ask about this guide, answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.
Keep reading

Security and governance · 7 min read
Is Google Ads MCP Safe? What Claude Can Change in Campaigns. Is Google Ads MCP safe? Since v0.0.6 the official server is no longer read-only. See what it can change, what...

Security and governance · 7 min read
Is Shopify MCP Safe? What Claude and ChatGPT Can Change. Is Shopify MCP safe? See what Claude or ChatGPT can read and change in your store, what is blocked, and how to...

Security and governance · 7 min read