Logo of European Union
🧪 Open Loyalty AI Labs: From challenge to prototype in weeks
Learn more
Open Loyalty AI Labs  /  Project No. 02

Run your loyalty program by asking.

The Open Loyalty MCP server connects Claude, Cursor, and any MCP client straight to your loyalty engine. Describe what you want in plain language. The agent does the work. Your team keeps the judgment.

$ npx -y @open-loyalty/mcp-server Copy
Works with · Claude Desktop · Claude Code · Cursor · any stdio MCP client
Agent sessionconnected
YouSet up double points this weekend for members who haven’t bought in 60 days.
segments.createLapsed 60d✓ 4,182 members
campaigns.create2× points · Fri–Sun✓ drafted
campaigns.simulateper-member previewawaiting you
Structured result
campaign_idcmp_7f2amultiplier2audience4182statusawaiting_approval
Nothing goes live until a human approves.

Plain language in. Real changes out.

No endpoints to learn, no payloads to assemble. You describe the outcome, the agent maps it to real API calls, and you stay in control of what ships.

01

You describe it

Ask in the words you’d use with a colleague. “Reward members who refer a friend.” No technical translation on your side.

02

The agent calls the right tools

It maps your request to real Open Loyalty calls like segments.create or campaigns.create across 22 domains, and shows its work.

03

You approve, it ships

The agent proposes the change with a structured result. Nothing touches your live program until a human signs off.

145 tools. 22 domains. One npx command.

Because Open Loyalty was API-first from day one, the whole platform is already addressable. The MCP server hands all of it to the agent, not a demo slice of it.

What your team can ask for.

Real prompts from our own testing. The agent translates each into the right calls against your live program.

YouHow are our members distributed across tiers right now?

Agent + Open LoyaltyPulls tier analytics and shows how many members sit in each tier.

YouAdd 500 points to this member and confirm the new balance.

Agent + Open LoyaltyIssues the points through the API and reads back the updated wallet balance.

YouDraft an achievement for first-time referrers.

Agent + Open LoyaltyProposes the achievement rules and reward, ready to publish once a human signs off.

YouSet up double points this weekend for lapsed members.

Agent + Open LoyaltyBuilds the segment, drafts a time-boxed campaign, and holds it for your approval.

Powerful, but never off the leash.

The agent operates inside the same boundaries your team does. You decide what it can reach, and you see everything it does.

Scoped to your token

It acts through your API token and store scope. It only reaches what you allow.

Human in the loop

Changes are proposed and held for approval, not silently executed.

Every call is auditable

These are standard API calls, logged and traceable like any other request.

Runs locally

Server runs over stdio, the standard MCP transport. Nothing to host for local use.

Why it covers everything

The API was the product. That’s why this works.

We didn’t bolt an AI feature onto loyalty. We built an engine an agent can operate end to end: members, points, tiers, rewards, campaigns, segments, analytics. That starting point is why the MCP server reaches the whole platform, not a corner of it.

The whole loyalty stack, addressable.

145 tools across 22 domains, including interactive views the agent can render — a live dashboard, member profile, or rewards catalog. If it lives in the Open Loyalty API, an agent can reach it.

Members11
Points10
Tier Sets6
Rewards14
Campaigns13
Segments9
Achievements7
Badges4
Analytics9
Transactions4
Webhooks6
+ Custom Events, Referrals, Stores, Import, Export, Languages, Channels, Group of Values, Wallet Types, Audit Logs, Contextmore

Connect once with npx -y @open-loyalty/mcp-server and three values: your API URL, an API token, and a default store code. That scopes everything the agent can touch.

MCP is how we make the whole platform agent-native.

Steve proved AI can verify the real world for loyalty. The MCP server is the other half: giving an agent the controls to act on it. Both started here in AI Labs. The next one starts with your challenge.

Give your loyalty program to an agent.

Open source, MIT licensed, live on npm. Connect it to your AI client and start asking.