MCPSecurityE-commerce6 min read · 2026-11-03

MCP Security Checklist for E-commerce: 10 Checks Before You Connect

A practical security checklist for MCP servers that touch a store: OAuth, least privilege, read-only first, logging, rate limits and prompt injection. Use it before you connect an AI agent.

To secure an MCP server for a store, use proper authentication such as OAuth, give it the least privilege it needs, start read-only, log every call, add rate limits, and treat all store text as untrusted input because of prompt injection. This checklist covers each point in order. It is general guidance, not legal advice or a full security audit.

Why MCP needs its own checklist

An MCP server connects an AI model to real systems. The model decides which tool to call, and it reads text that may come from outside, such as product reviews, support tickets and emails. That mix creates risks that normal API integrations do not have.

Your goal is simple. Limit what the AI can do, limit what it can see, and keep a record of what it did.

1. Authenticate every connection

A server that anyone can call is a server that anyone can abuse.

2. Apply least privilege

Give the server the smallest set of rights that lets it do its job.

If a tool does not need customer emails, the credential should not be able to read them.

3. Start read-only

Read-only tools cannot refund an order or change a price.

4. Limit what data comes back

A tool can be safe to call and still return too much.

Personal data in the EU falls under GDPR. Check your duties with a qualified adviser.

5. Validate every input

The AI model writes the tool inputs. Treat them like input from any other untrusted caller.

6. Defend against prompt injection

Prompt injection happens when text that the model reads contains instructions that try to steer it. In a store, that text can come from many places:

No single fix removes this risk. Use several layers:

7. Require human approval for risky actions

Some actions should never run without a person.

The server or the agent runtime should pause the action and show a person what will happen. The person approves or rejects it.

8. Add rate limits and quotas

An agent in a loop can make thousands of calls in minutes.

9. Log everything and review it

Logs let you answer "what did the AI do, and why?"

10. Test on staging and keep a way to switch off

Quick checklist

Frequently asked questions

Is a local MCP server automatically safe?

No. A local server still holds credentials and can still reach your shop. Use a restricted credential and validate inputs, even when the server only runs on your own machine.

Can prompt injection be fully prevented?

No known method removes it completely. You reduce the risk with small tool sets, limited data access, treating outside text as untrusted, and human approval for sensitive actions.

Should I use OAuth for MCP?

For servers reached over HTTP, yes, an OAuth-based approach is the sensible default. The MCP specification describes it. For a local server, a restricted credential plus operating system protection is often the starting point.

How often should I review the setup?

Review it whenever you add or change a tool, and on a fixed schedule such as every quarter. Check permissions, logs and unused tools each time.

Keep AI access to your store under control

2folk builds commerce automation for Shopify and WooCommerce with clear limits. See our products.

See our products →