Skip to main content
The LoyaltyLion MCP server lets AI assistants — such as Claude, Cursor, or any Model Context Protocol client — answer questions about your loyalty program using live data from your account. Connect it once and you can ask, in plain language, how your program is configured and how it’s performing.
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:
Authenticate with a Program API key (or OAuth token) passed as a 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.
You don’t need an API key — the connector authorizes through your LoyaltyLion account. Claude Code picks it up too: any connector you add in Claude is automatically available in Claude Code when it’s signed in with the same 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 to Manage > 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

Your API key is a long-lived credential. Keep it out of any config file that gets committed — read it from the environment, or from your client’s secret input, as the examples below do.
Each example expects the key in a LOYALTYLION_API_KEY environment variable, except VS Code, which prompts for it.
Run the following from your terminal:
--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.
Once connected, your client will discover the available tools automatically. Head to Example prompts to start asking questions.