Bonus Pink MCP Server
Enables Bonus Pink sub-accounts to manage loyalty programs via AI agents, offering 84 tools for card issuance, points, stamps, visits, rewards, and communications.
README
Bonus Pink MCP Server
Remote MCP server that lets Bonus Pink sub-accounts operate their loyalty program from any AI agent (Claude, Cursor, etc.): issue cards, add/subtract points, stamps and visits, redeem rewards, send push/SMS, read statistics — 84 tools for sub-accounts, plus 24 agency-only tools that appear automatically when connected with the Bonus Pink agency key.
Stateless Cloudflare Worker. Your API key travels with each request and is never stored on the server.
End-user guide for sub-accounts: USAGE.md — getting an API key, connecting each client, example prompts, troubleshooting.
Connect (sub-accounts)
Get your API key from the Bonus Pink dashboard (Settings → Integrations / API).
Claude Code
claude mcp add --transport http bonuspink https://mcp.bonuspink.com \
--header "Authorization: Bearer YOUR_API_KEY"
claude.ai / clients without custom headers — put the key in the URL instead:
https://mcp.bonuspink.com/k/YOUR_API_KEY
Generic MCP JSON (Cursor, etc.)
{
"mcpServers": {
"bonuspink": {
"url": "https://mcp.bonuspink.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}
Then ask your agent things like: "Find the card for customer jane@example.com and add 50 points" or "How much revenue did we do last month?"
Development
npm install
npm run gen # openapi.json → src/tools.gen.mjs (108 tools)
npm test # generator sanity check
npm run dev # local server on :8787
npm run deploy # gen + test + wrangler deploy
To refresh the API surface: re-download the spec and regenerate.
curl -s https://api.digitalwallet.cards/api/v2/docs/json -o openapi.json && npm run gen && npm test
How it works
scripts/gen-tools.mjsgenerates one MCP tool per OpenAPI operation (path + query + body merged into one flat input schema). Marketplace endpoints are excluded (separateX-App-Tokenauth, not for sub-accounts).src/index.tsis a stateless JSON-RPC handler:initialize,tools/list,tools/call,ping. It proxies calls tohttps://api.digitalwallet.cardswith the caller'sX-API-Keyand passes API responses (including errors) through verbatim so the agent can self-correct.- Agency detection: one probe of
GET /api/v2/profile/agencyper key (cached in-memory). Agency-only tools (companies, white-label branding, tariffs) are hidden from sub-account keys and return an error if called anyway.
Custom domain
mcp.bonuspink.com is attached via routes in wrangler.jsonc (custom_domain). The workers.dev URL also still works: https://bonus-pink-mcp.mecaca.workers.dev
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.