Feedback

Loyal Spark Loyalty Protocol MCP Server

@aspekt19 Claim

Basic information

Category
License
Not specified
Transports
stdio
Author
aspekt19
Submitted by
Community
Quality
25

About Loyal Spark Loyalty Protocol MCP Server

Onchain Loyalty-as-a-Service on Base L2. AI agents can create loyalty programs, mint ERC-20 tokens, manage rewards, trade on P2P marketplace, and get MPC wallets — all via MCP Server.

Loyal Spark Loyalty Protocol is a MCP server in the Other category listed in the AddMCP.net directory, published by aspekt19. It exposes 39 tools, including get_platform_info, get_my_profile, generate_program_defaults, get_program_workflow_status and more. Supported transport: stdio. Source code is hosted on github.com. Related topics: ai-agents, base, defi, erc20, loyalty.

Setup

claude mcp add unboxed-loyalty-spark --transport http https://bzxmejzssxjazswgwqqs.supabase.co/functions/v1/loyalty-mcp

Loyal Spark Loyalty Protocol MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "loyal-spark": {
            "url": "https://bzxmejzssxjazswgwqqs.supabase.co/functions/v1/loyalty-mcp",
            "transport": "streamable-http",
            "headers": {
                "x-api-key": "<YOUR_API_KEY>"
            }
        }
    }
}

Loyal Spark Loyalty Protocol MCP Server tools

  • get_platform_info — Get info about Loyal Spark protocol on Base L2
    (no parameters)
  • get_my_profile — Get authenticated agent's profile
    (no parameters)
  • generate_program_defaults — Workflow planner: field catalog, required parameters, next_actions, and non-binding examples. External agents must choose their own name, symbol, and economics.
    business_name:string, category:string, description:string, locale:string, preferred_style:string, target_audience:string
  • get_program_workflow_status — Explain the next merchant action: current_step, required fields, and ordered next_actions (you provide all parameter values)
    token_address:string
  • list_loyalty_programs — List loyalty programs owned by the agent's merchant
    include_expired:boolean
  • create_loyalty_program — Get factory calldata to deploy a new loyalty token on Base. Defaults to B20 (Base native ERC-20 superset, single tx, active immediately). Pass token_standard='erc20' for the legacy factory. For B20, MINT_ROLE is granted atomically to the merchant admin AND to the agent's CDP wallet (or explicit extra_minters) so autonomous agents can mint with no follow-up transaction.
    name:string, symbol:string, expiration_days:number, token_standard:string, agent_wallet_address:string, extra_minters:array, auto_generate:boolean, business_context:object, preferred_style:string, locale:string, target_audience:string
  • register_loyalty_program — Register a deployed token as a loyalty program in the database. B20 tokens are registered as active; legacy ERC-20 as inactive (activate next).
    name:string*, symbol:string*, token_address:string*, expiration_days:number, cashback_rate:number, points_per_dollar:number, token_standard:string
  • activate_loyalty_program — For legacy ERC-20 programs: returns unpauseUtility + enableMinting calldata. For B20 programs: no-op (already active).
    token_address:string*
  • update_program_status — Update program status in database after onchain activation/pause
    token_address:string*, status:string*
  • update_program_config — Update default cashback_rate and/or points_per_dollar for a program (same as merchant dashboard sliders)
    token_address:string*, cashback_rate:number, points_per_dollar:number
  • list_rewards — List rewards for a loyalty program by token_address. Includes redemption metrics (total vouchers issued, redeemed, and last-30-day counts) for each reward.
    token_address:string*
  • create_reward — Create a new reward redeemable with loyalty tokens
    token_address:string*, name:string*, description:string, cost:number*
  • mint_loyalty_tokens — Record mint intent and get a fee-first `calls[]` bundle: protocol fee mint FIRST, then the recipient mint. The protocol fee is charged in the merchant's own loyalty tokens (not USDC). Submit both calls in order (atomically via EIP-5792 send_calls if your wallet supports it), then call confirm_mint_fee (or POST /agent-api/mint/confirm) with the fee tx hash. Unconfirmed fee obligations block future mints.
    token_address:string*, recipient:string*, amount:number*
  • transfer_loyalty_tokens — Get calldata to transfer loyalty tokens between wallets
    token_address:string*, to:string*, amount:number*
  • earn_points — Calculate and mint loyalty tokens based on purchase amount and program's cashback rate. Returns a fee-first `calls[]` bundle (protocol fee mint first, then the customer mint) — submit in order, atomically via EIP-5792 if supported, then call confirm_mint_fee (or POST /agent-api/mint/confirm). Unconfirmed fee obligations block future mints.
    token_address:string*, customer_address:string*, purchase_amount:number*, cashback_rate:number
  • confirm_mint_fee — Confirm that the protocol fee transaction for a previous mint/earn was broadcast on Base. Verifies the fee mint on-chain and clears the obligation. Unconfirmed fee obligations block future mints.
    obligation_id:string*, fee_tx_hash:string*, recipient_tx_hash:string
  • get_token_balance — Get loyalty token balance and tier info for a customer
    token_address:string*, customer_address:string*
  • get_program_analytics — Get analytics for your loyalty programs
    (no parameters)
  • list_marketplace_offers — List active token trading offers on the marketplace
    status:string, limit:number
  • redeem_reward — Redeem a reward by providing a verified token transfer transaction hash. Creates a voucher for the customer.
    reward_id:string*, customer_address:string*, transaction_hash:string*
  • use_voucher — Mark a voucher as used (redeemed by customer at merchant). Merchant-only operation.
    voucher_code:string, voucher_id:string
  • check_voucher_status — Check voucher status by code or ID. Public endpoint — no API key or authentication required.
    code:string, voucher_id:string
  • get_platform_stats — Get global platform statistics across all merchants. Admin-only: requires agent owned by an admin wallet.
    (no parameters)
  • cancel_stale_offers — Cancel marketplace offers that have been active for more than N days with no completions. Admin-only action tool.
    max_age_days:number
  • create_personalized_offer — Create a personalized offer for a specific customer. Use when analytics reveal engagement patterns (e.g., inactive customers, high-value segments).
    token_address:string*, customer_address:string*, title:string*, description:string, bonus_tokens:number, discount_percentage:number, valid_days:number
  • update_reward_status — Activate or deactivate a reward in the catalog. Use to manage reward availability based on analytics.
    reward_id:string*, is_active:boolean*
  • send_report — Send a report to the developer/owner. Use this to submit SEO audits, growth ideas, data reports, anomalies, recommendations, or weekly summaries. The report will appear in the merchant's Agent Reports dashboard.
    agent_role:string*, report_type:string*, title:string*, content:string*, priority:string, action_items:array
  • list_my_reports — List your previously submitted reports. Allows reviewing past reports, checking status (new/reviewed/done), and identifying what still needs attention.
    status:string, limit:number
  • update_report_status — Update report status to 'reviewed' or 'done'. Use 'done' when the action items have been completed. Use 'reviewed' to acknowledge a report.
    report_id:string*, status:string*
  • delete_report — Delete a report that is no longer relevant. Use to clean up outdated or irrelevant reports.
    report_id:string*
  • export_customers — Export customer data for a specific loyalty program. Returns wallet addresses, voucher stats, balances, and tier info. Use for analytics, segmentation, and personalized offers.
    token_address:string*
  • create_gift_certificate — Create a gift / welcome certificate (UDS-style) with a unique 6-character redemption code (LOYAL-XXXXXX). Customer redeems via QR or by entering the code; merchant then mints tokens on-chain. Use for welcome bonuses, promo campaigns, partnership gifts.
    token_address:string*, usd_amount:number*, points_per_dollar:number, max_redemption_percent:number, title:string, description:string, expires_in_days:number, image_url:string, quantity:number
  • list_gift_certificates — List gift certificates issued by the agent's merchant (with status and redemption info).
    token_address:string, status:string, limit:number
  • revoke_gift_certificate — Revoke an active gift certificate (status active → revoked). Only the issuing merchant can revoke. Already-redeemed/minted certificates cannot be revoked.
    certificate_id:string*
  • mark_gift_certificate_minted — After the merchant submits the on-chain mint transaction for a claimed gift certificate, call this to mark it as minted (status pending_mint → redeemed) and store the mint tx hash.
    certificate_id:string*, transaction_hash:string*
  • bazaar_discover_resources — Discover third-party x402-paid resources published in Coinbase CDP's Bazaar (docs, data feeds, AI inference, etc). Read-only. Filter by free-text q and/or network (e.g. 'base').
    q:string, network:string, limit:number, cursor:string
  • bazaar_discover_mcp_servers — Discover third-party MCP servers published in Coinbase CDP's Bazaar. Read-only. Filter by free-text q and/or network.
    q:string, network:string, limit:number, cursor:string
  • bazaar_probe_x402 — GET a candidate x402 URL and, if it responds HTTP 402, return the parsed payment requirements (accepts[]) so the caller can decide whether to pay. HTTPS only. No signing performed.
    url:string*
  • bazaar_pay_and_call — Pay and call any x402-paid HTTPS endpoint using the merchant agent's CDP MPC wallet (EIP-3009 exact scheme on Base USDC). Probes the URL for HTTP 402, picks a compatible requirement, signs TransferWithAuthorization via CDP, retries with X-PAYMENT header, and returns the paid response. Requires scope 'mint' and a pre-created CDP wallet. Safety cap: max_usdc (default 0.25, hard limit 10).
    url:string*, method:string, body, headers:object, max_usdc:number, allowed_networks:array, allowed_schemes:array

Overview

What is Loyal Spark Loyalty Protocol?

An onchain loyalty protocol on Base L2 that enables AI agents to create programs, mint tokens, manage rewards, and trade on a marketplace.

How to use Loyal Spark Loyalty Protocol?

Register at loyalspark.online/merchant in the AI Agents tab, obtain an API key with the lsk_ prefix, and include it in the x-api-key header. Then invoke the available tools such as get_platform_info, list_loyalty_programs, create_reward, mint_loyalty_tokens, and list_marketplace_offers.

Key features of Loyal Spark Loyalty Protocol

  • Onchain loyalty protocol deployed on Base L2
  • Create and manage loyalty programs
  • Mint loyalty tokens with onchain calldata
  • Create and list rewards per program
  • Query customer token balances and tier levels
  • Retrieve program analytics and metrics
  • List and browse P2P marketplace offers

Use cases of Loyal Spark Loyalty Protocol

  • AI agent running a merchant's onchain loyalty program
  • Automated minting of loyalty tokens for customers
  • Managing and creating rewards within a program
  • Checking customer balances and tiers programmatically
  • Participating in peer-to-peer trading of loyalty tokens

Frequently asked questions

1 What blockchain does Loyal Spark Loyalty Protocol run on?

It operates on Base L2 as an onchain protocol.

2 How do I authenticate my AI agent?

Include your API key (prefixed with lsk_) in the x-api-key header of each request.

3 Where can I register and get an API key?

Register at loyalspark.online/merchant and navigate to the AI Agents tab.

4 What tools are available for agents?

Available tools include get_platform_info, get_my_profile, list_loyalty_programs, list_rewards, create_reward, mint_loyalty_tokens, get_token_balance, get_program_analytics, and list_marketplace_offers.

5 Where are the full API docs?

API documentation is hosted at loyalspark.online/api-docs.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬