Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Loyal Spark
L
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:29:25 AM

Loyal Spark

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View RepositoryVisit Website

Onchain loyalty MCP on Base: programs, mint, rewards, vouchers for AI agents.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "loyal-spark": {
      "command": "npx",
      "args": [
        "-y",
        "loyal-spark"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

Loyal Spark β€” Onchain Loyalty Protocol

A Web3-powered loyalty platform built on Base Mainnet: merchants and AI agents create onchain loyalty programs (B20 by default), mint points, manage rewards/vouchers, and automate the loop via REST, MCP, and pay-per-call gateways (x402 / MPP).

Overview

Loyal Spark revolutionizes traditional loyalty programs by bringing them onchain. It operates as a dual-mode platform: humans interact via the web UI with flexible authentication (email, phone, social login, or wallet), while AI agents interact via REST API or MCP Server β€” sharing the same database, smart contracts, and tokens.

Wallet Abstraction: Users and merchants sign in via Privy β€” email, phone/SMS, Google, or external wallets (MetaMask, WalletConnect, Coinbase Wallet). Privy automatically creates an embedded wallet on Base β€” no crypto experience needed. Farcaster miniapp and SIWE for crypto-native users are also fully supported. Merchants can send tokens to customers by email or phone number (resolved to wallet address automatically).

Code
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Loyal Spark Platform                β”‚
β”‚                                                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  Web UI   β”‚    β”‚ REST API β”‚    β”‚MCP Serverβ”‚   β”‚
β”‚  β”‚ (humans)  β”‚    β”‚ (agents) β”‚    β”‚ (agents) β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜   β”‚
β”‚        β”‚                β”‚               β”‚        β”‚
β”‚        β–Ό                β–Ό               β–Ό        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚        Backend (Edge Functions)           β”‚    β”‚
β”‚  β”‚    Auth Β· RLS Β· DB Β· Realtime             β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                    β”‚                             β”‚
β”‚        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                 β”‚
β”‚        β–Ό                       β–Ό                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”‚
β”‚  β”‚ Base L2  β”‚          β”‚ CDP Server   β”‚          β”‚
β”‚  β”‚ Contractsβ”‚          β”‚ Wallet (MPC) β”‚          β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Features

For Merchants (Web UI)

  • Deploy Loyalty Tokens: Create custom loyalty tokens on Base (B20 default; legacy ERC-20 via API)
  • Mint Tokens: Issue loyalty points to customers via wallet addresses or QR scan
  • Create Rewards: Design voucher rewards with token costs
  • CRM & Analytics: Customer profiles, RFM segmentation, tier management
  • Marketing Automation: Automated campaigns, personalized offers
  • Referral Programs: Generate referral codes with bonuses
  • Voucher Management: Track redemptions with QR code verification
  • AI Agent Management: Register agents, manage API keys, monitor activity
  • Team & branches: Invite cashiers/managers by wallet or one-time invite code (redeem on Merchant β†’ Team); requires Postgres RPC accept_merchant_invite β€” see docs/development/PORTALS_AND_TEAM.md

For Customers (Web UI)

  • Multi-Token Dashboard: View all loyalty tokens from different merchants
  • Browse Rewards: Explore available vouchers across all programs
  • Redeem Vouchers: Burn tokens to claim exclusive rewards with QR codes
  • Tier System: Bronze β†’ Silver β†’ Gold β†’ Platinum with increasing perks
  • Frozen modules (not product promises): marketplace/ (DEX) and roundup/ (DeFi) remain in the tree but are explicitly frozen β€” no active development

For AI Agents (REST API + MCP)

  • Full CRUD via API: Create programs, mint tokens, manage rewards, view analytics
  • MCP Server: Connect Claude, GPT, Cursor, or any MCP-compatible LLM directly
  • Server Wallets: Coinbase CDP MPC wallets for autonomous onchain operations
  • Scoped Permissions: Granular access control (read, mint, manage_rewards, trade)
  • Activity Logging: Full audit trail of all agent operations
  • Tiered Pricing (agents): Free (200 calls/mo, 1.25% mint fee) β†’ Pro ($49/mo, 0.5%) β†’ Enterprise ($129/mo, 0.25%) β€” subscriptions in USDC, mint fee in loyalty tokens; see docs/business/MONETIZATION_AND_PRICING.md
  • Skills Documentation: 13 structured step-by-step guides (00–12 under /.well-known/skills/) for agent onboarding and operations

Technology Stack

LayerTechnology
FrontendReact 18, TypeScript, Vite, Tailwind CSS, shadcn/ui (Radix)
AnimationsFramer Motion
BlockchainWagmi v2, Viem, RainbowKit, Privy (@privy-io/react-auth + @privy-io/wagmi)
NetworkBase Mainnet (Chain ID: 8453)
Smart ContractsERC-20 Token Standard (Factory pattern)
BackendSupabase (PostgreSQL, RLS, Deno Edge Functions, Realtime)
Native appsCapacitor 8 (iOS / Android) β€” see docs/development/NATIVE_BUILD_GUIDE.md
Agent WalletsCoinbase CDP MPC (Server Wallets)
StateTanStack Query v5
RoutingReact Router DOM v6
FormsReact Hook Form + Zod validation
Builder AttributionBase Builder Code (ERC-8021)

Smart Contract Architecture

New loyalty programs (default) deploy via Base’s native B20 factory precompile β€” one transaction, active immediately after register-program. Legacy programs use the Loyal Spark ERC-20 factory below (token_standard: "erc20" in API only). Full flows: docs/development/LOYALTY_PROGRAM_CONTRACTS.md.

RoleAddressWhen
B20 Factory (Base precompile)0xB20f000000000000000000000000000000000000Default β€” createB20 β†’ token 0xB200…
LoyaltyTokenFactory (legacy)0x5F3DdBa12580CFdc6016258774cCc19C4250dA80Opt-in erc20 β€” createLoyaltyToken + activation
LoyalSparkERC20 (implementation)0xe6BA426C9c51281B929a17444De02c65815E27C3Logic for legacy proxy tokens
LoyaltyTokenEscrow (P2P)0xA569C95AfC1BCF381c48BcF336ED9D2c014bcdDFMarketplace swaps

Network: Base Mainnet (Chain ID: 8453)

Program creation (summary)

PathDeployActivatePortal
B20 (default)1Γ— createB20 on 0xB20f…Not requiredYes
Legacy ERC-201Γ— createLoyaltyToken on 0x5F3DdB…unpauseUtility + enableMintingAPI only

Token operations (both standards)

B20 tokens are ERC-20–compatible for balances, transfers, mint, and escrow:

  • mint(address to, uint256 amount) β€” issue points (role-gated)
  • transfer / transferFrom β€” move tokens between wallets
  • balanceOf(address) β€” query balance

AI Agent Integration

Quick Start

Merchant dashboard:

  1. Go to loyalspark.online/merchant and sign in (email, phone, Google, or wallet via Privy)
  2. Open AI Agents tab β†’ Register an agent β†’ Copy your API key (lsk_...)
  3. Use the key in x-api-key header for REST or MCP calls

Without the web app (autonomous agents): free lsk_ via wallet signature β€” Edge Function agent-register-siwe + nonce from siwe-nonce. See docs/agents/AUTONOMOUS_AGENT_REGISTRATION.md and docs/agents/QUICKSTART.md.

Optional repo scripts (development / agent onboarding)

These directories are not imported by the web app; they are optional helpers for developers and agents reproducing flows locally. Secrets stay in environment variables only.

FolderPurpose
scripts/x402-paid-mcp-test/Smoke test: paid MCP via x402 (USDC on Base, @x402/fetch).
scripts/x402-paid-agent-api/Same stack, paid agent-api routes (GET/POST to x402-gateway/<resource>).
scripts/traffic-bot-x402-bridge.pyExample Python β†’ Node subprocess hook for bots that already send loyalty txs on Base.
scripts/agent-register-siwe/Helper: build SIWE message + sign + call agent-register-siwe (same as production).

Schemas for paid MCP: merchant mcp-tools/<name> β€” mcp-bazaar-tools.ts; recipient recipient-mcp-tools/<name> β€” recipient-mcp-bazaar-tools.ts. HTTP 402 accepts + Coinbase x402 Bazaar discovery metadata for all paid routes are built in x402-bazaar-accept.ts. These scripts are not linked from the marketing homepage; primary onboarding remains /for-agents and the merchant portal.

REST API

bash
# List loyalty programs
curl -H "x-api-key: lsk_YOUR_KEY" \
  https://api.loyalspark.online/agent-api/programs

# Mint tokens β€” returns a fee-first calls[] bundle (1.25% fee on Free plan,
# minted in your own loyalty tokens); settle it via POST /agent-api/mint/confirm
curl -X POST \
  -H "x-api-key: lsk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token_address":"0x...","recipient":"0x...","amount":100}' \
  https://api.loyalspark.online/agent-api/mint

API Endpoints (28 authenticated + 1 public)

All routes below require x-api-key: lsk_... except GET /vouchers/status (public). Canonical catalogue: public/.well-known/agent.json (must match supabase/functions/agent-api/index.ts).

MethodPathScopeDescription
GET/meauthenticatedAgent profile & permissions
GET/workflow/program-statusreadAutonomous planner: lifecycle step + next_actions[]
GET/programsreadList loyalty programs
POST/workflow/generate-program-defaultsmintPropose program name, symbol, economics, and starter rewards from business context
POST/programsmint or create_programCalldata to deploy loyalty token (B20 default, or legacy ERC-20 with token_standard: "erc20")
POST/register-programmint or create_programRegister deployed token (optional cashback_rate, points_per_dollar)
POST/update-program-configmint or create_programUpdate cashback_rate / points_per_dollar for a program
POST/activate-programmint or create_programLegacy ERC-20 activation only (no-op for B20)
POST/program-statusmint or create_programUpdate program status
GET/rewardsreadList rewards
POST/rewardsmanage_rewardsCreate reward
POST/mintmintFee-first mint calls[] + fee_obligation_id
POST/mint/confirmmintSettle protocol fee after mint/earn (obligation_id + fee_tx_hash)
POST/earnmintCashback: mint from purchase amount Γ— rate (same fee-first + confirm)
POST/transfermintTransfer tokens
GET/balancereadToken balance & tier
GET/customersreadCustomer list
GET/vouchersreadList vouchers
GET/vouchers/statuspublicCheck voucher status (no API key)
POST/redeem-rewardreadRedeem reward β†’ create voucher
POST/vouchers/usemanage_rewardsMark voucher as used
GET/analyticsreadProgram analytics
GET/offersreadMarketplace offers
POST/offerstradeCreate P2P offer
POST/accept-offertradeAccept P2P offer
POST/cancel-offertradeCancel P2P offer
GET/tx-receiptauthenticatedExtract token_address from deploy tx
GET/merchant-profilereadRead merchant profile
POST/merchant-profilemanage_rewardsCreate or update merchant profile (PUT also accepted)

MCP Server (for LLMs)

Connect Claude, GPT, or any MCP-compatible agent:

config.json
{
  "mcpServers": {
    "loyal-spark": {
      "url": "https://api.loyalspark.online/loyalty-mcp",
      "headers": {
        "x-api-key": "lsk_YOUR_KEY"
      }
    }
  }
}

MCP tools (39) β€” defined in supabase/functions/loyalty-mcp/index.ts:
get_platform_info, get_my_profile, generate_program_defaults, get_program_workflow_status, list_loyalty_programs, create_loyalty_program, register_loyalty_program, activate_loyalty_program, update_program_status, update_program_config, list_rewards, create_reward, mint_loyalty_tokens, transfer_loyalty_tokens, earn_points, confirm_mint_fee, get_token_balance, get_program_analytics, list_marketplace_offers, redeem_reward, use_voucher, check_voucher_status, get_platform_stats, cancel_stale_offers, create_personalized_offer, update_reward_status, export_customers, send_report, list_my_reports, update_report_status, delete_report, create_gift_certificate, list_gift_certificates, revoke_gift_certificate, mark_gift_certificate_minted, bazaar_discover_resources, bazaar_discover_mcp_servers, bazaar_probe_x402, bazaar_pay_and_call (confirm_mint_fee = lsk_-only fee settlement, not x402-priced; last four = Bazaar side-car).

Base MCP custom plugin (send_calls-ready calldata)

For AI users already connected to Base MCP (mcp.base.org), Loyal Spark ships GET-friendly calldata endpoints at https://api.loyalspark.online/agent-prepare/*. Each response returns a send_calls-compatible transaction batch with Builder Code bc_wdmnog7m already appended (ERC-8021). Base Account signs and broadcasts.

Actions: create-program, activate-program, mint, transfer (merchant, lsk_) Β· recipient-transfer, recipient-approve (holder, rwk_).

bash
# Prepare a mint (returns { transactions: [{to,data,value}], … } for send_calls)
curl -H "x-api-key: lsk_YOUR_KEY" \
  "https://api.loyalspark.online/agent-prepare/mint?token=0xTOKEN&to=0xCUSTOMER&amount=100"

Plugin spec: skills/loyal-spark/plugins/loyal-spark.md.

Recipient agents (wallet holders, rwk_)

For AI agents that only hold a wallet which receives loyalty tokens (not merchant operators). Humans are unchanged; this is an optional machine path.

PieceURL / path
RESThttps://api.loyalspark.online/recipient-api
MCPhttps://api.loyalspark.online/recipient-loyalty-mcp
Register keyPOST …/recipient-api/register with SIWE { message, signature } (nonce from siwe-nonce) β€” returns rwk_… once. Pass Supabase apikey (anon/publishable) header like other public functions.

REST (14 routes; all require x-api-key: rwk_… except register): GET /me, GET /balances, GET /balance?token_address=, GET /rewards?token_address=, GET /vouchers, GET /workflow/reward-status, POST /register (SIWE), POST /redeem-reward with { reward_id, transaction_hash } (customer is always the bound wallet), POST /prepare-transfer with { token_address, to, amount }, POST /workflow/prepare-reward-redemption. P2P: GET /offers?token_address=, POST /offers, POST /accept-offer, POST /cancel-offer (same bodies as merchant agent-api marketplace; creator_address is the bound wallet).

MCP tools (20) β€” supabase/functions/recipient-loyalty-mcp/index.ts: get_recipient_profile, list_my_loyalty_balances, get_my_loyalty_balance, get_reward_workflow_status, prepare_reward_redemption, prepare_loyalty_token_transfer, list_rewards_for_program, list_my_vouchers, redeem_my_reward, list_p2p_offers, create_p2p_offer, accept_p2p_offer, cancel_p2p_offer, lookup_gift_certificate, claim_gift_certificate, list_my_gift_certificates, bazaar_discover_resources, bazaar_discover_mcp_servers, bazaar_probe_x402, bazaar_pay_and_call (last four = Bazaar side-car; bazaar_pay_and_call requires opt-in delegated CDP wallet).

Pay-per-call (recipient, MPP / x402): Autonomous agents that should pay USDC per request use the same gateways as merchants: mpp-gateway/recipient-api/… (Tempo MPP) or x402-gateway/recipient-api/… and x402-gateway/recipient-mcp-tools/<tool> (x402). USD prices match the merchant corridor (reads ~$0.001, writes ~$0.005–0.01; prepare-transfer / prepare_loyalty_token_transfer $0.005). Canonical tables: docs/business/MONETIZATION_AND_PRICING.md Β§4.1 Β· source constants: supabase/functions/_shared/recipient-paid-routes.ts, recipient-mcp-bazaar-tools.ts. Direct functions/v1/recipient-api / recipient-loyalty-mcp calls use rwk_ + rate limits only (no per-request USDC in the gateway layer).

Example MCP fragment: examples/recipient-agent-mcp/cursor-mcp.json.

Agent Discovery

AI agents can discover the protocol automatically via:

  • /.well-known/agent.json β€” Full protocol specification, capabilities, pricing
  • /.well-known/skills/ β€” 13 structured Skills (00–12, step-by-step guides)
  • /api-docs β€” Interactive API documentation

Skills for AI Agents

Structured Markdown guides that teach agents how to use the protocol:

#SkillDescription
00Getting StartedRegister agent (merchant UI or SIWE), get lsk_, first request
01Create Loyalty ProgramDeploy B20 loyalty token on Base (legacy ERC-20 optional)
02Mint TokensMint tokens to customer wallets
03Transfer TokensTransfer tokens between wallets
04Manage RewardsCreate redeemable rewards catalog
05Balance & TiersCheck balances and tier status
06Marketplace TradingP2P token trading with atomic escrow
07Analytics & CRMProgram analytics and CRM data
08ReferralsReferral programs for organic growth
09VouchersVoucher lifecycle management
10Server WalletsCDP MPC wallets for autonomous transactions
11Earn Points (Cashback)Mint from purchase amount Γ— cashback rate

Skills index: https://loyalspark.online/.well-known/skills/index.md

Server Wallets (CDP MPC)

Agents can create their own Coinbase MPC wallets on Base for autonomous transactions:

Terminal
curl -X POST \
  -H "x-api-key: lsk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"create_server_wallet"}' \
  https://api.loyalspark.online/agent-wallet

Benefits:

  • No private key management β€” keys are in Coinbase's secure enclave
  • Server-side transaction signing
  • Automatic Builder Code attribution (ERC-8021)

Pricing

PlanMonthlyAPI CallsAgentsMint fee
Free$020011.25%
Pro$49 USDC10,00050.5%
Enterprise$129 USDCUnlimitedUnlimited0.25%

Merchant SaaS (portal): Starter $39 / Growth $79 / Scale $149 per month (annual discount 15–20% optional) β€” details in docs/business/MONETIZATION_AND_PRICING.md.

Payments for agent plans on-chain in USDC on Base ($1 = 1 USDC).

Mint fee is not USDC. It is charged in the merchant's own loyalty tokens β€” a second mint(address,uint256) to the platform fee wallet on the same token contract, returned first in the calls[] bundle. The token contract has no mintWithFee, so settlement is tracked off-chain: each prepared mint creates a fee obligation, and 5+ obligations unpaid for over 60 minutes block further mints with HTTP 402. Confirm with POST /agent-api/mint/confirm.

Getting Started

Prerequisites

  • Node.js 18+ or Bun
  • An email, phone number, Google account, or Web3 wallet (MetaMask, Coinbase Wallet, WalletConnect)
  • Some ETH on Base for gas fees (merchants only)

Installation

bash
git clone https://github.com/aspekt19/unboxed-loyalty-spark.git
cd unboxed-loyalty-spark
npm install
npm run dev

Sign In Options

  • Email / Phone / Google (recommended): Click "Sign In" via Privy β€” an embedded wallet is created automatically, no crypto knowledge needed
  • MetaMask / Coinbase Wallet / WalletConnect: Traditional Web3 wallet connection
  • Farcaster: Auto-connects inside Warpcast miniapp

On Merchant and Customer portals, use the header Sign In / wallet control until a session exists; the Profile control appears only after you are signed in. See docs/development/PORTALS_AND_TEAM.md.

Network: Base Mainnet (Chain ID: 8453) | RPC: https://mainnet.base.org | Explorer: https://basescan.org

Project Structure

Code
unboxed-loyalty-spark/
β”œβ”€β”€ AGENTS.md                      # Entry map for AI / coding agents
β”œβ”€β”€ docs/                          # Human docs (guides, integrations, pitch notes)
β”‚   β”œβ”€β”€ development/               # Build & deploy
β”‚   β”œβ”€β”€ integrations/              # Farcaster, OpenServ, A2A, prompts
β”‚   β”œβ”€β”€ pitch-deck/                # Investor deck (Markdown sources)
β”‚   └── supabase/                  # DB/edge runbooks
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ui/                    # shadcn/ui library
β”‚   β”‚   β”œβ”€β”€ agents/                # AI agent management
β”‚   β”‚   β”œβ”€β”€ rewards/               # Rewards & vouchers
β”‚   β”‚   β”œβ”€β”€ crm/                   # CRM & analytics
β”‚   β”‚   β”œβ”€β”€ marketing/             # Campaigns
β”‚   β”‚   β”œβ”€β”€ automation/            # Marketing automation
β”‚   β”‚   β”œβ”€β”€ tiers/                 # Customer tiers
β”‚   β”‚   β”œβ”€β”€ referral/              # Referral programs
β”‚   β”‚   β”œβ”€β”€ roundup/               # DeFi investment (frozen)
β”‚   β”‚   β”œβ”€β”€ marketplace/           # Token trading (frozen)
β”‚   β”‚   β”œβ”€β”€ reviews/               # Customer reviews
β”‚   β”‚   β”œβ”€β”€ onboarding/            # Welcome flows & tours
β”‚   β”‚   β”œβ”€β”€ merchant/              # Merchant shell & tabs (Team, Programs, …)
β”‚   β”‚   β”œβ”€β”€ team/                  # Branches, employees, invite redemption
β”‚   β”‚   └── admin/                 # Platform administration
β”‚   β”œβ”€β”€ hooks/                     # Data fetching (TanStack Query + Supabase) β€” keep queries here
β”‚   β”œβ”€β”€ config/                    # Contract addresses & ABIs
β”‚   β”œβ”€β”€ contexts/                  # Auth context
β”‚   β”œβ”€β”€ integrations/supabase/     # Database client & types
β”‚   β”œβ”€β”€ pages/                     # Routes (e.g. ForAgentsPage β†’ /for-agents, ApiDocsPage β†’ /api-docs)
β”‚   └── lib/                       # Utilities
β”œβ”€β”€ examples/agent-mcp/            # Copy-paste MCP + curl for agents
β”œβ”€β”€ scripts/                       # Optional dev helpers (x402 MCP smoke test, SIWE lsk_ helper) β€” not bundled in the web app
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ .well-known/
β”‚   β”‚   β”œβ”€β”€ agent.json             # AI agent discovery
β”‚   β”‚   β”œβ”€β”€ skills/                # Markdown skills for agents (00–12)
β”‚   β”‚   └── farcaster.json         # Farcaster manifest
β”‚   β”œβ”€β”€ openapi.json               # OpenAPI 3.1 (API + x402 hints)
β”‚   β”œβ”€β”€ llms.txt / llms-full.txt   # Short / long summaries for LLM crawlers
β”‚   └── media-kit/                 # Brand & press assets
β”œβ”€β”€ capacitor.config.ts            # Native app IDs (see docs/development/)
β”œβ”€β”€ contracts/                     # Solidity contracts
β”œβ”€β”€ supabase/
β”‚   β”œβ”€β”€ functions/                 # Edge Functions β€” see supabase/functions/README.md
β”‚   └── migrations/                # Database migrations
└── README.md

Indexes: AGENTS.md (AI agents) Β· docs/README.md (human guides) Β· docs/development/PORTALS_AND_TEAM.md (portal UI & team invites) Β· supabase/functions/README.md (Edge Functions).

Edge Functions

See the supabase/functions/README.md catalogue (grouped by role: API, MCP, auth, payments, jobs). The root README table is intentionally shortened here to avoid duplication.

Security

  • Flexible Authentication: Email/phone/Google via Privy (with embedded wallets), or SIWE for Farcaster and crypto-native users
  • API Key Auth: SHA-256 hashed keys with lsk_ prefix for agents
  • Row Level Security: All database tables protected with RLS policies
  • Scoped Permissions: Agents operate within granted scopes only
  • MPC Wallets: Private keys never leave Coinbase's secure enclave
  • Rate Limiting: Per-agent rate limits prevent abuse
  • Builder Code Attribution: All transactions tagged with ERC-8021 builder code

Builder Code

All on-chain transactions are tagged with Base Builder Code bc_wdmnog7m (ERC-8021 format) for analytics visibility in base.dev.

For AI Agents

Loyal Spark is a machine-payment-native API. AI agents can discover, authenticate, and pay for API calls without human intervention.

Discovery Endpoints

ResourceURLPurpose
Agent onboarding (web)/for-agentsKeys, REST, MCP, gateways, discovery β€” one page for builders
Agent Manifest/.well-known/agent.jsonFull protocol spec, capabilities, pricing
MPP Manifest/.well-known/mpp.jsonMachine Payment Protocol manifest
OpenAPI Spec/openapi.jsonOpenAPI 3.1.0 with x-payment-info
Skills Library/.well-known/skills/13 step-by-step guides for agents (00–12)
LLMs.txt/llms.txtProtocol summary for LLM crawlers
Prompt GuidePROMPT_GUIDE.mdReady-to-use system prompts
Copy-paste MCP / curlexamples/agent-mcp/Starter configs in the repo
Repo quickstart (keys, SIWE, x402)docs/agents/QUICKSTART.mdShort paths for coding agents

Payment Gateways (No API Key Needed)

Agents can pay per request using onchain micropayments:

ProtocolNetworkAssetGateway
x402BaseUSDChttps://api.loyalspark.online/x402-gateway
MPPTempopathUSD / USDChttps://api.loyalspark.online/mpp-gateway

Pricing: $0.001–$0.005 per read Β· $0.005–$0.05 per write Β· HTTP 402 challenge/response flow.

Paid MCP (merchant): POST …/x402-gateway/mcp-tools/<tool_name> (JSON-RPC tools/call); after settlement, pass x-api-key: lsk_… like direct MCP. Recipient / holder MCP: POST …/x402-gateway/recipient-mcp-tools/<tool_name> with x-api-key: rwk_…. Tool lists + JSON Schemas: mcp-bazaar-tools.ts Β· recipient-mcp-bazaar-tools.ts. 402 + Bazaar (discovery) metadata for both families: x402-bazaar-accept.ts (extensions.bazaar, outputSchema.input.type: "mcp"). After successful settle, the CDP facilitator may return EXTENSION-RESPONSES (bazaar.status: success | processing | rejected).

Catalogues & Registries

  • Official MCP Registry β€” io.github.aspekt19/loyal-spark (remote Streamable HTTP β†’ api.loyalspark.online/loyalty-mcp; see root server.json)
  • mppscan.com β€” MPP service scanner (indexed via OpenAPI)
  • glama.ai β€” MCP server directory
  • mcp.so β€” MCP server registry
  • smithery.ai β€” MCP marketplace (loyalspark/loyalty-protocol)

Links & Resources

  • Website: loyalspark.online
  • API Docs: loyalspark.online/api-docs
  • Agent Discovery: loyalspark.online/.well-known/agent.json
  • GitHub: github.com/aspekt19/unboxed-loyalty-spark
  • Twitter/X: x.com/Loyal_Spark
  • Email: admin@loyalspark.online

Built With

  • Base β€” Ethereum L2 by Coinbase
  • Privy β€” Wallet Abstraction & Authentication
  • Coinbase CDP β€” MPC Server Wallets (for AI agents)
  • Wagmi β€” React Hooks for Ethereum
  • shadcn/ui β€” UI Components
  • Lovable β€” Full-Stack Development Platform
  • Viem β€” TypeScript Interface for Ethereum

License

MIT License β€” see LICENSE file for details.

Related MCP Servers

View all in Developer Tools View all alternatives
  • A
    Ai Netcafe

    Compare LLM cost & latency on one prompt, translate PDF keeping layout, cited research, make PPTX

    πŸ’» Developer Tools0 views
    Compare vs Ai Netcafe β†’
  • Claude Task Master logoClaude Task Master

    AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loading for optimized context usage.

    πŸ’» Developer Tools7 views
    Compare vs Claude Task Master β†’
  • A
    Ato Mcp

    Australian tax knowledge base: cited retrieval over ATO guidance, the ITAA & GST Acts, and rulings.

    πŸ’» Developer Tools0 views
    Compare vs Ato Mcp β†’
  • BoostedTravel logoBoostedTravel

    Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.

    πŸ’» Developer Tools0 views
    Compare vs BoostedTravel β†’

Frequently Asked Questions about Loyal Spark

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "loyal-spark": { "command": "npx", "args": ["-y", "Loyal Spark"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLoyal Spark AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/loyal-spark?style=directory)](https://allmcps.com/mcp/loyal-spark)
HTML Embed
<a href="https://allmcps.com/mcp/loyal-spark"><img src="https://allmcps.com/api/badge/loyal-spark?style=directory" alt="Loyal Spark on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
0/4 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Loyal Spark β†’Install in Claude DesktopInstall in CursorInstall in VS Code