Merchant MCP is available on the Classic plan and above.
What it can do
The MCP server exposes a small set of read-only tools:
See Example prompts for things you can ask once
it’s connected.
Endpoint
The MCP server is a streamable-HTTP endpoint served from the same host as the LoyaltyLion API:Bearer token
in the Authorization header. Site token & secret authentication is not
accepted.
Install in Claude
If you use Claude — web, desktop, mobile, or Claude Code — install the LoyaltyLion connector from the Claude directory:LoyaltyLion connector for Claude
Open the connector and click Connect, then sign in to LoyaltyLion to
authorize access.
claude.ai account, so there’s nothing to
configure there either.
Once it’s connected, Claude discovers the available tools automatically. Head to
Example prompts to start asking questions.
Install in other MCP clients
Every other client connects to the endpoint directly with an API key. Create the key first, then configure your client. This is also the route for a Claude Code session that authenticates some other way —ANTHROPIC_API_KEY, Bedrock, or
Vertex — since connector sync requires a claude.ai login.
1. Create an API key
Sign in to your LoyaltyLion account, go toManage > API keys, click
Create API key, and follow the steps. The token is shown only once after
creation — store it somewhere secure.
For more detail on API keys, see
Authentication › API keys.
2. Choose scopes
The MCP server only ever reads data, and the tools available to a key depend on the scopes you grant it. Grant the read scopes that match the data you want the assistant to access:
Program setup and analytics don’t require a specific scope, so a key with no
scopes can use them. To let the assistant look up customers or orders, grant
read_customers and read_orders.
For the full list of scopes, see the
API key scopes
reference.
3. Configure your client
Each example expects the key in aLOYALTYLION_API_KEY environment variable,
except VS Code, which prompts for it.
- Claude Code
- Cursor
- VS Code
- Other clients
Run the following from your terminal:The single quotes matter: they stop your shell expanding the variable, so
the reference is stored in your config and resolved from the environment
each time Claude Code starts. With double quotes you’d save the key itself
into
~/.claude.json in plain text.--scope user makes the server available in every project. Drop it to
install into the current project only. Check it connected with /mcp inside
Claude Code.Connect multiple loyalty programs
Every MCP connection is scoped to a single loyalty program: an API key belongs to one program, and an OAuth authorization covers the one program you choose on the consent screen. If you run more than one program, add one connection per program and give each a name that identifies it — your assistant surfaces the tools of each connection under its name, so that’s how you (and it) tell them apart.Add extra programs in Claude
The connector from the directory can only be connected once, so it covers your first program. For each additional program, add a custom connector pointing at the same endpoint with a query string on the end:1
Open the custom connector dialog
In Claude, go to
Settings > Connectors, then click Add custom connector.2
Name it after the program
Use a name that makes the program obvious, such as
LoyaltyLion (UK store).
Claude shows this name alongside the connector’s tools, and it’s what you’ll
refer to when you want a question answered from that program.3
Enter the URL with a distinct query string
Use
https://api.loyaltylion.com/mcp?program=uk-store, replacing
uk-store with your own label. Each connector needs a different value here.4
Connect and pick the program
Click
Connect and sign in to LoyaltyLion. If your LoyaltyLion account has
more than one program, you’ll be asked which program to authorize — choose
the one this connector is for.Programs that live in separate LoyaltyLion accounts need a separate
LoyaltyLion login each, so you can only authorize them from Claude one account
at a time. If that’s your setup, use API keys in a client that supports them
instead.
Add extra programs in other MCP clients
Clients configured from a file already namespace each server by the name you give it, so no query string is needed — add one entry per program, each with its own name and its own API key. Create the key from within each program: switch program in LoyaltyLion, then go toManage > API keys.
- Claude Code
- Cursor
- VS Code