When you add a remote Linnworks MCP server to Claude, two separate sign-ins are linked together. Claude signs in to the MCP server with OAuth and gets its own access token, and the MCP server holds a separate token that Linnworks issued when you approved the app. Neither side ever sees the other's credentials, which is why you never paste a Linnworks key into Claude.
This post follows the Claude side step by step, using the Hosted MCP Server for Linnworks as the worked example. The Linnworks side, meaning what you approve when you install an app and what the app does with its token, is covered in installing a Linnworks app: what you approve.
What are the two halves of the chain?
- Linnworks to the server. You press Connect Linnworks and approve the app inside Linnworks. Linnworks sends the server an install token for your account. The server checks it works, encrypts it with AES-256-GCM and stores it. To call the API it exchanges that token for a short-lived Linnworks session, which it caches for 25 minutes.
- Your assistant to the server. You add the connector in Claude and approve access on the server's consent page. The server gives Claude an OAuth access token. Claude sends that token with every tool call.
The server joins the two: an OAuth token identifies your account, and your account's stored Linnworks token is what reaches Linnworks.
What happens when Claude connects?
1. Discovery
Claude first calls the server's /mcp address without a token and is turned away with a 401. The server publishes standard metadata describing itself as a protected resource and naming its authorisation server, so Claude can find the sign-in and token endpoints without you typing them. That is why the advanced settings in Claude's custom connector dialog can stay empty.
2. Registration
Claude needs a client identity with the server. Newer MCP clients identify themselves with a published client metadata document; older ones register themselves through the server's registration endpoint. Either way, no one hands out a client secret by hand.
3. Sign-in and consent
Claude opens the server's authorisation page in your browser. If you aren't signed in to the server, you sign in with your email address and a 6-digit code. The consent page then tells you:
- the app's name, and who published it where that can be checked, or a warning that the app registered itself and its name isn't verified;
- where access will be sent (the redirect address), with an extra warning if that is an app on your own computer;
- what it will be able to do, worked out from your account's actual access: read your orders, stock, purchase orders and returns, or a warning that your trial has ended or your subscription isn't active;
- a warning if you haven't connected Linnworks yet.
You press Allow or Deny. The consent form is bound to your browser and works once, so it can't be forged or replayed from another page.
4. Tokens
On Allow, the server records a grant and Claude exchanges a one-time code for tokens: an access token that lasts one hour and a refresh token that lasts 30 days. Claude uses the refresh token to get new access tokens quietly, so you aren't asked to sign in every hour.
What does the token actually carry?
The grant holds one thing about you: your internal account ID. When a tool call arrives, the server validates the access token, reads the account ID from the stored grant and builds a fresh set of tools for that account alone. It never takes the account from anything in the request body, so one account's token can't be pointed at another account's data. The server also only answers on its own public hostname.
The access token is not your Linnworks token, and it is no use to anyone talking to Linnworks directly. If it leaked, it would expose only what the tools expose, and only until it expired or the grant was removed.
Why doesn't the merchant ever paste a key?
- Linnworks issues the token to the server directly when you approve the app, tied to your account by a signed tracking code that is valid for 24 hours.
- The server tests the token before keeping it, so a bad install stores nothing.
- Claude only ever holds OAuth tokens issued by the server, with a short lifetime and a narrow purpose.
Compare that with a setup where the assistant's URL or header carries a single long-lived shared secret: anyone with the secret has the access, and changing it means updating every client. That is how the self-hosted source protects its endpoint, which is fine for one team running its own server but is a trade-off worth knowing; hosted or self-hosted compares the two.
How do you revoke each half?
- Claude's access: remove the connector in Claude's settings. Its tokens stop being used, and the access token expires within the hour.
- The server's Linnworks access: press Disconnect Linnworks on your account page. The encrypted install token and the cached session are deleted, and tools report that Linnworks needs reconnecting.
- Everything: when an account closes, a scheduled job deletes it 90 days later, revoking its OAuth grants and deleting the stored Linnworks token.
What should you check on any MCP server's sign-in?
- Does it use OAuth, or a shared secret in a URL or header?
- Does the consent page say who the app is and what it will be able to do?
- How long do access and refresh tokens last?
- Where is the upstream token (here, Linnworks') stored, and is it encrypted?
- Can you revoke each half independently?
More questions for vendors are in MCP server security best practices. To set the connector up, follow how to add a custom MCP connector to Claude for Linnworks; if sign-in fails, see troubleshooting a Linnworks MCP connection.
MCP-G is part of Green and Home Limited and is not affiliated with, endorsed by or sponsored by Linnworks or Anthropic. Claude and Linnworks are named only to describe compatibility.
Want to see the flow for yourself? Start a 14-day free trial of the Hosted MCP Server for Linnworks and connect it to Claude.