Skip to content
Afosto Blog

What is an MCP server and what can it do for e-commerce?

What is an MCP server and how does the Model Context Protocol work? A clear explanation, how it differs from an API, security and uses for your webshop.

By Sander Kah12 min read
What is an MCP server and what can it do for e-commerce?

An MCP server is a connector between an AI assistant and another system, such as your webshop, your order management or your accounting. The server tells the assistant which actions are available, for example "find an order", and carries them out when the assistant asks. This happens through the Model Context Protocol (MCP), an open standard. That way an assistant like ChatGPT or Claude works with real, up-to-date data instead of guessing.

In this article you'll learn how that works, how it differs from a regular API integration, what you can do with it in e-commerce and what to watch for when it comes to security.

What is an MCP server?

MCP stands for Model Context Protocol. Anthropic introduced the protocol in November 2024 as an open standard for connecting AI applications to the systems where data lives. Since December 2025, MCP has been part of the Agentic AI Foundation of the Linux Foundation, founded by Anthropic, OpenAI and Block. So MCP no longer belongs to a single company.

An MCP server is the piece of software on the system's side. It describes what an AI is allowed to request or do, checks every request and sends back a structured response. The AI never touches the underlying system itself.

The benefit is in the standard. Without MCP, every AI app needs its own integration with every system. With MCP, a vendor builds one server, and every app that speaks MCP can use it.

How does MCP work? Host, client and server

The MCP specification defines three roles. They sound technical, but you'll recognize them right away:

  • Host: the AI app you work in, such as ChatGPT, Claude or a code editor. The host manages the connections and asks you for permission.
  • Client: a connection inside that app. Each client talks to exactly one server.
  • Server: the program that gives access to a system, for example your order management or a folder of files.
Diagram of MCP: an AI app as host with three clients, each connected to its own MCP server for orders, files and calendar

So an AI app can be connected to several servers at once. A server doesn't see the whole conversation and can't look into other servers. That separation is a deliberate choice in the design of MCP.

Tools, resources and prompts

An MCP server offers three types of building blocks:

  • Tools: functions the AI can call, such as "search orders" or "create a ticket". Each tool has a name, a description and a fixed input format.
  • Resources: context and data to read, such as a document or a product specification.
  • Prompts: ready-made instructions or workflows that you choose as the user.

In practice, most servers are about tools. That's how an assistant looks something up or takes an action.

Local or online

MCP has two standard ways to connect. With stdio, the AI app starts the server as a program on your own computer, which is handy for developers. With Streamable HTTP, the server runs online and the AI app connects over the internet. For business software such as a commerce platform, the online option is the logical choice: you sign in with your own account and give permission, without installing anything.

What happens when you ask a question?

Say you type into your AI assistant: "Where is the order from jan@example.com?" Behind the scenes, this happens:

  1. The app asks the connected servers which tools they offer.
  2. The model picks a suitable tool, for example a search function for orders, and fills in the input: the email address.
  3. The client sends that call to the server, along with an access token.
  4. The server checks the token, retrieves the order from the underlying system and sends back the result.
  5. The model turns that into an answer in plain language, for example: "Order 1042 shipped yesterday. Here is the track & trace."

So the model doesn't make up the order status. It requests the status from the source and summarizes it.

MCP or a regular API integration: what's the difference?

MCP doesn't replace APIs, it builds on them. Behind the scenes, an MCP server often simply calls the system's API. The difference is in who uses the integration.

API integrationMCP server
UserA developer or another systemAn AI assistant, on your behalf
How it worksFixed route, programmed in advanceThe AI chooses which tool fits your question
BuildingOne integration per combination of systemsOne server works in every MCP app
DescriptionDocumentation for developersTool descriptions an AI understands
Typical useAutomatically passing orders on to your accounting"Find this customer's order and change the address"

For processes that always run the same way, such as forwarding orders to a warehouse, a fixed API integration remains the best choice. MCP fits work where every question is different.

Which AI apps support MCP?

MCP quickly became the common standard. According to Anthropic (December 2025), ChatGPT, Gemini, Microsoft Copilot, Cursor and Visual Studio Code, among others, use the protocol, alongside Claude itself. At that point, more than 10,000 active public MCP servers were already running.

How you add a server differs by app and by plan. Claude calls it a custom connector, ChatGPT a plugin or custom MCP server. And not every plan lets you make changes through such a connection. That's what the help documentation from Anthropic and OpenAI says (December 2026):

AI app and planConnect your own MCP serverMake changes
Claude FreeYes, one custom connectorYes
Claude, paid plansYesYes
ChatGPT Business and EnterpriseYes, as a plugin. In Business, an admin creates itYes, ChatGPT asks for confirmation for each action
ChatGPT ProYesNo, lookups only
ChatGPT Plus, Go and FreeNot mentioned by OpenAINo

So if you mainly work in ChatGPT on a Plus plan, you can't connect your own MCP server yet. In Claude, you can, even with a free account.

What can it do for e-commerce?

For a webshop or retailer, the value is in questions that take time today, because you piece the answer together from different screens. A few realistic examples:

SituationQuestion to your assistantWhat the MCP server does
Customer service"Where is the order from jan@example.com?"Finds the order by email address, returns the status and track & trace
Address change"Change the shipping address of order 1042 to Kerkstraat 12."Retrieves the order and updates the address. The answer shows the new address from the system
Cancelling"Cancel one salami from order 1042."First shows what will be cancelled, and only carries it out after you approve
Settings"Which payment methods are enabled on the B2B webshop?"Retrieves the payment methods per channel and lists them

Which questions work depends entirely on the tools a server offers. If the server has no stock tool, the assistant can't look up stock either. So always check which tools a vendor provides.

Two caveats. An AI assistant is good at looking things up and summarizing, but it's no replacement for your analytics and regular reports. And for tasks that go the same way every day, such as printing labels or forwarding orders, regular automation is more reliable than an assistant that works it out again each time.

Security: what do you let an AI do, and what not?

An MCP server gives an AI access to real business data and sometimes to real actions. That calls for clear boundaries. The MCP specification says so itself: there should always be a human in the loop who can deny a tool call.

Check these points with any MCP server:

  • Sign-in via OAuth. For online servers, MCP describes signing in via OAuth: you give permission at the vendor, without a password or API key in the AI app.
  • Limited permissions. A good server only asks for what it needs. Where possible, start with read-only access.
  • Confirmation for anything that can't be undone. Cancelling, deleting or restocking should only go through after you've checked it. See which actions that applies to with your vendor, because an address change often goes through right away.
  • Scoped data. Check that the assistant only sees your own environment, never that of other customers.
  • Logging. Check whether you can see afterwards which actions the assistant carried out on your behalf.
  • Where the data goes. What an MCP server returns ends up in the conversation with your AI app, and so with the provider of that app. Read their terms, especially when customer data is involved.
Afosto's permission screen: an AI app asks for access to one Afosto environment, with the permissions per section and the Cancel and Approve buttons

There's also a less visible risk. A model also reads text from your data, such as a customer note or a product description. If that text contains a hidden instruction, the model may follow it. That's called prompt injection.

That's why OWASP puts "excessive agency", too much freedom to act, in its top 10 risks for AI applications. There are three causes: too many functions, too many permissions and too much autonomy. So the answer is few tools, limited permissions and a human confirmation for actions with impact.

Only connect MCP servers from vendors you trust. The specification itself warns that you shouldn't blindly trust a tool's description if the server isn't trustworthy.

The Afosto MCP

Since December 2026, Afosto has its own MCP server: the Afosto MCP. It lets you work with your orders and settings in Afosto from Claude. The server runs online at https://afosto.app/mcp, and you connect it with your own Afosto account via OAuth.

A question in an AI assistant becomes a search in Afosto through MCP and comes back as an answer with order number, status and order lines

What you can do with it:

  • Look up orders by email address, order number or track & trace code, and view an order with its lines, status and address.
  • Change the shipping address of an order. That happens right away.
  • Cancel an order line, close or delete an order, and restock a return. That always takes two steps.
  • Prepare a refund on the original payment. You make the actual payout in Afosto.
  • View and update your settings: channels, payment and shipping methods, discount codes and price lists.

You can see how those two steps work when you cancel. If you ask to cancel one of two salamis, the assistant first shows what would happen: 1 of 2, and nothing has been cancelled yet. That preparation is valid for five minutes and works once. Only when you confirm does Afosto carry it out. Afosto then adds a −1 line to the order and the total drops by the price of that salami.

An AI assistant prepares the cancellation of one salami, with the message that nothing has been cancelled yet, and waits for confirmation

When you connect, you see in advance which permissions you grant. One connection gives access to one Afosto environment, and in Afosto the assistant can't do more than you can with your own account. You can't set permissions per employee in the connection itself, so have everyone connect with their own account.

The Afosto MCP uses the same functions as the rest of the platform. So a change made through your assistant simply shows up on the order in Afosto, and that's also where you review it.

What's not included: searching by name, postal code or date, revenue figures and reports, and editing products. The assistant also doesn't pay out money or email your customers. The Afosto MCP is included in every paid Afosto plan. We tested it with Claude. Other AI apps that support MCP with sign-in may also work, but we haven't tested them yet.

The guide explains step by step how to connect Claude and what you can ask. Would you rather build something yourself or set up a fixed integration? The Afosto API is still available. On the developers page you can read what you can do with it.

Where do you start?

An MCP server only pays off when it fits work that takes you a lot of time today. Here's how to approach it:

  1. Pick one recurring question. For example "where is my order?" in customer service. That's where you'll see fastest whether it saves time.
  2. Check the tools and permissions. See which tools your vendor's MCP server offers and which permissions you grant with it.
  3. Start with reading. Only turn on write actions once you know how your team uses the assistant.
  4. Decide what needs a confirmation. Cancelling, refunds and address changes belong on that list in any case.
  5. Measure after a few weeks. Does it save time per customer question, or do you end up looking it up yourself again?

Run every channel from one place

Orders, stock, POS and shipping in one system.

Create free accountBook a demo

Frequently asked questions

What is the difference between MCP and an API?

An API is a technical integration for developers and systems: a fixed route you program in advance. MCP builds on it and is meant for AI assistants. An MCP server describes its functions as tools an AI understands, so the assistant chooses which tool fits your question. Behind the scenes, an MCP server often simply calls the system's API.

Are MCP servers safe?

That depends on how the server and the AI app are set up. Look for sign-in via OAuth, so you don't share passwords or API keys, limited permissions and a confirmation before the assistant does something that can't be undone. Only use servers from vendors you trust. A model can also follow hidden instructions in data (prompt injection), so never give it more permissions than it needs.

Does MCP only work with Claude?

No. MCP is an open standard and works with any AI app that supports the protocol. According to Anthropic, ChatGPT, Gemini, Microsoft Copilot, Cursor and Visual Studio Code, among others, used the protocol at the end of 2025, alongside Claude itself. How you connect an MCP server differs by app and by plan. Sometimes it's called a connector, sometimes an app or integration.

Can I connect my own MCP server with ChatGPT Plus?

Not according to OpenAI's help documentation (December 2026). You can connect your own MCP servers with ChatGPT Business, Enterprise and Edu, where you can also have it make changes, and with ChatGPT Pro, where you can only look things up. Plus, Go and Free aren't mentioned. In Claude, you can add one custom connector even with a free account.

What does MCP stand for and who created it?

MCP stands for Model Context Protocol. Anthropic introduced it in November 2024 as an open standard for connecting AI applications to the systems where data lives. In December 2025, Anthropic placed MCP with the Agentic AI Foundation of the Linux Foundation, which it founded together with OpenAI and Block. Since then, that foundation has managed the standard, not a single company.

Does Afosto have an MCP server?

Yes. Since December 2026, you can connect Claude to your Afosto environment with the Afosto MCP, at https://afosto.app/mcp. You can then look up orders, change a shipping address, prepare a cancellation or refund and view your settings. Anything that can't be undone, such as cancelling, you confirm yourself first. The Afosto MCP is included in every paid Afosto plan.

Share this article

Ready to simplify your commerce?

Start with a free account and set up your first integration in 10 minutes. Or book a demo and we'll walk you through it together.

May we use cookies to measure how you use our site and to improve our ads? Privacy policy