← All posts
Linnworks + AI 1 December 2026 4 min read

Linnworks API regions and MCP: why the server URL is never hard-coded

Linnworks accounts are served from regional API hosts, and an integration finds out which one to use when it authorises. The AuthorizeByApplication call returns a session token and a Server field, and every later API call goes to that Server address. An MCP server for Linnworks should therefore never hard-code a host: it should use whatever Server value Linnworks returns, every time it opens a session.

This matters most if you run or modify the self-hosted Linnworks MCP source. If you use the Hosted MCP Server for Linnworks, the server already handles it for you.

How does Linnworks tell an app which region to use?

Linnworks' system integration setup guide describes the flow. An app calls AuthorizeByApplication with its application ID, its application secret and the token it received when the merchant installed it. The response includes a session token and a Server field, and the guide says the Server value is the base URL for subsequent requests. Its own example is a call to https://eu-ext.linnworks.net/api/Orders/CreateOrders.

So there are two hosts in play:

The guide also says the session token has a limited lifetime, and that the app re-authorises with the same permanent token when it expires. Each re-authorisation returns the Server again, which is another reason to read it every time rather than store it once and assume it never changes.

What goes wrong if you hard-code the host?

An integration built and tested against one account will often work perfectly for that account and then fail for a merchant whose account lives in another region. The failure can look like an authentication problem, because the session token is presented to a server that doesn't recognise it. Developers then chase the token, the application secret or the permissions, when the real cause is the address.

Two rules avoid it:

  1. Build every request URL from the Server value of the current session, as in Server + /api/Orders/GetOpenOrders.
  2. Store the Server alongside the session, so a cached session and its host can never get out of step.

How does the hosted MCP server handle regions?

The hosted server is multi-tenant, so merchants on different regions use the same service. Here is what its code does:

Every request still follows the Linnworks API's other habits: calls are POSTs with form-encoded bodies (a few newer endpoints are GET or JSON), and the session token goes in the Authorization header with no "Bearer" prefix. Those details are handled inside the server, so the assistant only sees tools such as "search open orders" or "get stock levels".

What must self-hosters keep in place?

The self-hosted source follows the same pattern. It authorises with your application's credentials and install token, reads the Server from the response, caches the session with its server for 30 minutes, and refreshes on a 401. If you change the code:

Whether to self-host at all is covered in Linnworks MCP server: hosted or self-hosted?

Does region affect what the assistant can see?

No. The region decides which host the API calls go to, not which tools exist. The hosted Starter plan offers the same 11 read tools whichever region your account is in; what an MCP server can and can't see in Linnworks lists them. What the region doesn't change, either, is where your assistant's provider processes the results: that is set by your assistant and its terms.

For the security questions to ask about any MCP server, region aside, see MCP server security best practices.

MCP-G is part of Green and Home Limited and is not affiliated with, endorsed by or sponsored by Linnworks or Anthropic.

Rather not think about regions at all? The Hosted MCP Server for Linnworks handles them for you. Start a 14-day free trial, or see the self-hosted source if you want to run it yourself.

Frequently asked questions

Which Linnworks API host should an integration call?

Call api.linnworks.net only for AuthorizeByApplication. Send every other call to the Server value returned in that response.

Can I hard-code eu-ext.linnworks.net?

No. Linnworks uses it as an example in its setup guide, but accounts can be served from other regional hosts. Always use the Server value from the current session.

How does the hosted Linnworks MCP server handle regions?

It saves your account’s regional server when you connect, caches each session with its server for 25 minutes, and re-authorises and retries once if Linnworks answers 401.

Does my Linnworks region change which tools I get?

No. The hosted Starter plan has the same 11 read tools in every region; the region only decides which host the calls go to.

Ask Claude about your Linnworks account

The Hosted MCP Server for Linnworks connects Claude to your own Linnworks account, read-only. 14-day free trial, then A$28.19 a month + tax where applicable.

See the hosted server

Want to run it yourself today? Buy the Linnworks MCP source code and deploy it to your own Cloudflare account. A$990 + tax where applicable, one-off.