Skip to content

Connect Claude to Afosto (Afosto MCP)

Connect Claude to your Afosto environment with the Afosto MCP. Then look up orders, change an address or prepare a cancellation, all in plain language.

With the Afosto MCP, you connect Claude to your Afosto environment. Then you can ask about an order in plain language, have a shipping address changed, or prepare a cancellation. Claude looks it up and handles it in Afosto, and anything that can't be undone, you confirm yourself first.

This guide is for everyone who will use it: your customer service team, the owner who does everything themselves, or the agency that helps you.

Want to know what an MCP server is first? Read the blog post about MCP. The Afosto MCP page shows what you can do with it in customer service.

What is the Afosto MCP?

MCP stands for Model Context Protocol: an open standard that lets an AI app talk to other software. The Afosto MCP is the connection between your AI app and Afosto, at https://afosto.app/mcp. You sign in with your own Afosto account and decide which permissions the connection gets. You don't need an API key.

The connection works with orders and settings in Afosto:

AreaWhat Claude can do
OrdersSearch by email address, order number or tracking code. View an order with its lines, status and address. Change the shipping address. Cancel lines, close an order or delete it.
Returns and refundsRestock a return. Prepare a refund on the original payment.
Channels and settingsView and update your channels, payment methods, shipping methods and shipping zones.
Discount codesCreate a discount campaign and generate codes, for example five single-use codes.
Price lists and price rulesView and create price lists, and set prices per item.
Customer groupsView and create customer groups, such as dealers or wholesale. Move a contact or organization to a different customer group.

What you need

  • An Afosto account with access to the environment you want to connect. Claude can never do more in Afosto than you can with that account.
  • A paid Afosto plan. The Afosto MCP is included in every paid Afosto plan.
  • Claude. Any plan works, including a free account: it lets you add one custom connector.

If more people will use it, have everyone connect with their own Afosto account. That way Claude works with each person's own permissions.

Connect in Claude

  1. In Claude, go to Customize > Connectors, click + Add and choose Add custom connector.
  2. Enter Afosto as the name and https://afosto.app/mcp as the URL, then click Continue.
  3. Claude detects the sign-in settings itself and sets them to Detected. Leave them as they are and click Add.
  4. Click Connect. An Afosto window opens. Sign in with your Afosto account.
  5. You'll see the authorization screen (see below). Check the environment and the permissions, then click Approve.

Then start a new chat, click + and turn on Afosto under Connectors. Start with a question that only reads data, for example: "Which payment methods are enabled in Afosto?"

Team or Enterprise? Then an Owner adds the connector once for the whole organization, via Organization settings > Connectors: Add, then Custom and Web, enter the name and URL, and click Add. After that, each team member goes to Customize > Connectors, clicks Connect and signs in with their own Afosto account.

Connect in Claude Code

Run this command in your terminal:

Shell
claude mcp add --transport http afosto https://afosto.app/mcp

Start Claude Code, type /mcp, choose afosto and then Authenticate. Your browser opens the Afosto sign-in screen. Sign in and click Approve. After that, afosto shows connected.

The authorization screen

After you sign in, Afosto shows which app is requesting access, and to what.

The Afosto authorization screen: Claude is asking permission to access information of your Afosto account, with the account button Afosto, the sections Automation, Catalog, Contacts and Orders, and the Cancel and Approve buttons

  • The environment. At the top is the Afosto environment you're granting access to. If you work with multiple environments, click that name to switch. One connection gives access to one environment. To connect another one, add a second connector in Claude.
  • The permissions. For each section, you see what Claude can view and edit: Automation, Catalog, Contacts and Orders. Click a section to see its permissions.
  • Approve or cancel. The connection is only made when you click Approve. If you click Cancel, Claude gets no access.

What you can ask

You talk to Claude the way you would to a colleague. A few questions we tried ourselves:

Orders

  • "Find the order from femke.mulder@example.nl."
  • "What's the status of order ODR-10000087?"
  • "Which order does this tracking code belong to?" followed by the code.
  • "Change the shipping address of ODR-10000087 to Oude Boteringestraat 12, 9712 GH Groningen."
  • "Cancel one Boerentruffelsalami on ODR-10000087."
  • "Prepare a refund of € 6.75 for that order."
  • "This order came back as a return. Restock the items."

Settings

  • "Which payment methods are enabled on the B2B webshop?"
  • "Which shipping methods do I have, and for which zones?"
  • "Which price lists do I have, and in which currencies?"
  • "Create a discount campaign BLACKFRIDAY with five codes that can each be used once."

The order number, email address and products above come from a demo environment. Use your own data.

What happens right away and what takes two steps

Afosto applies most changes right away, such as a new shipping address, a discount campaign or a price in a price list. Claude then shows you what Afosto saved.

Anything you can't easily undo always takes two steps:

  • cancelling an order line or an order;
  • closing an order;
  • deleting an order;
  • restocking a return;
  • moving a contact or organization to a different customer group.

For these actions, Claude first shows what would happen. Nothing has changed at that point. Only when you confirm does Afosto carry it out. That confirmation is valid for five minutes and works once. If you're too late, just ask again.

If you cancel one unit of a line with two units, Afosto doesn't change that line from 2 to 1. It adds a negative line with −1 and the amount as a negative, and the order total goes down by that amount.

Preparing a refund creates the refund on the original payment. You handle the actual payout in Afosto.

What isn't possible (yet)

  • Searching by name, postal code or date. Claude searches by email address, order number or tracking code.
  • Revenue figures and reports. The connection has no access to those.
  • Editing products. Product data, stock levels and product descriptions are out of scope.
  • Paying out money. You can prepare a refund, but you pay it out in Afosto.
  • Emailing your customers. The connection has no function for that. You write and send the reply to your customer yourself.

Working safely

  • Connect with your own account. Claude then works with your permissions, not a colleague's.
  • Start with a question that only reads data. That way you see whether Claude has the right order or setting before you have it change anything.
  • Read the preview before you confirm. When cancelling, closing, deleting or restocking, you first see what will happen.
  • Check a change in Afosto. Just as you would when a colleague handles something for you.
  • Have Claude ask for approval on changes. On the connector's page in Claude, you set for each tool whether Claude can always use it, has to ask first, or is blocked. Set the tools that change something to Needs approval.
  • Turn the connector off when you don't need it. In Claude, you can do that per chat, under + > Connectors.

Other AI apps

The Afosto MCP follows the open MCP standard with OAuth sign-in. Other AI apps that support this kind of connection, such as ChatGPT on plans that allow custom connectors, can connect too. We haven't tested those with Afosto yet. If you use one of those apps, use the same address: https://afosto.app/mcp.

Troubleshooting

What you seeWhat to do
The connection stops working after a few hoursRight now, you need to reconnect after about three hours. In Claude, click Connect on the Afosto connector, or in Claude Code type /mcp and choose Authenticate again.
Claude sees the wrong environmentDisconnect and connect again. On the authorization screen, choose the right environment before you click Approve.
Claude can't find an orderSearch by the exact email address, the order number or the tracking code. Searching by name or postal code isn't possible.
The confirmation has expiredA preview is valid for five minutes. Ask Claude to prepare the action again and confirm within that time.
Claude says it isn't allowed to do somethingYour Afosto account probably doesn't have that permission. Ask an admin of your environment to grant it, then connect again.
Afosto isn't in the list of connectorsTurn it on in a new chat under + > Connectors. In a Team or Enterprise account, an Owner has to add it first.
mcpaiclaudeapps

About Afosto

Till, webshop, bol and Kaufland on one stock.

Related documentation