Back to Directory/Analytics & BI

io.github.dokdosolutions-us/lucky

πŸ€βœ¨ MCP server for Clover POS β€” restaurant operations, inventory, orders, analytics, and retention

Analytics & BITypeScriptv1.0.4

Lucky – Clover MCP Server πŸ€βœ¨

A Model Context Protocol (MCP) server for πŸ€ Clover POS β€” giving AI agents direct access to restaurant operations: menu management, orders, inventory, analytics, customer retention, financial reporting, and more.

Connect any MCP-compatible AI (Claude, GPT-4, Cursor, Continue, and others) to your Clover merchant account and turn natural language into real POS actions β€” no dashboard, no manual lookups, no custom integration code.

This project was born out of a simple idea: restaurant owners β€” especially family-run, immigrant-owned restaurants β€” deserve the same kind of intelligent assistant that enterprise businesses take for granted. Not a chatbot. Not a dashboard. Something that watches your inventory, knows your regulars, and has your back during a dinner rush.

We built this as the data layer for an AI front-of-house system. It exposes the πŸ€ Clover V3 REST API as a clean set of MCP tools that any LLM can call β€” so instead of logging into a dashboard to check stock levels or pull a sales report, you just ask.

We hope πŸ€ Clover sees this and runs with it.


What It Does

This server wraps the πŸ€ Clover V3 API into 70+ LLM-callable tools across every major area of restaurant operations:

ModuleTools
MenuBrowse items, categories, modifiers, and pricing
OrdersQuery orders, filter by date/status, inspect line items
CustomersSearch, create, and profile customers with lifetime spend
InventoryStock levels, low-stock alerts, adjustments, auto-86 depleted items
AnalyticsRevenue by period, peak hours, best-selling items, category breakdown
EmployeesShift activity, hours worked, clock-in/out visibility
FinancialsDaily/weekly/monthly summaries, tender breakdowns, tax reporting
RetentionLapsed customers, win-back message drafting, birthday outreach, first-time visitors
OperationsRefund rates, open orders, void detection, table turn analysis
ForecastingWeek-over-week trends, seasonal patterns, staffing demand signals
ReservationsBooking management with conflict detection
Smart QueriesCross-module insights β€” happy hour analysis, upsell opportunities, slow day detection
Menu OpsBulk pricing updates, happy hour scheduling, allergen tagging

Inspiration

The Model Context Protocol, open-sourced by Anthropic, makes it possible to give AI assistants structured, reliable access to external systems. We saw an opportunity to apply this to the restaurant industry β€” a space full of hardworking owners who are data-rich but time-poor.

Independent restaurants don't have engineering teams. They have POS data they never look at, regulars they forget to reach out to, and inventory that runs out at the worst possible time.

A disproportionate number of independent restaurants in the US are owned by immigrant families β€” Vietnamese, Korean, Chinese, Mexican, Ethiopian, and countless others β€” where English may be a second language and the margin for error is razor-thin. These owners work harder than anyone, yet they're the last to benefit from technology that could actually lighten the load.

This project is built with them in mind. An AI that can answer customer questions in any language, surface the right data at the right time, and handle the operational noise β€” so the people who built something from nothing can focus on what they do best; provide and spend time with their family and loved ones.

This MCP server is the foundation for that.


How This Differs From Other Clover MCP Servers

There are other MCP servers that wrap the πŸ€ Clover API β€” and they're well built. But most of them are designed for developers: raw CRUD tools that expose every API endpoint so engineers can build on top of them.

This one is designed for restaurant owners.

The difference is in what the tools actually do. Instead of clover_update_item_stock, you get adjust_inventory β€” which validates your adjustment, guards against negative stock, and tells you what changed in plain language. Instead of a generic orders list, you get get_lapsed_customers β€” which surfaces your regulars who haven't been back in 30 days and drafts a win-back message for them.

Other servers give an AI the ability to talk to πŸ€ Clover. This one gives an AI the ability to help run a restaurant.

That's the Ahreum + πŸ€ Clover difference.


Getting Started

Prerequisites

Install

npm install
npm run build

Configure

cp .env.example .env
# Fill in your CLOVER_ACCESS_TOKEN and CLOVER_MERCHANT_ID

Run

# Production
CLOVER_ACCESS_TOKEN=your_token CLOVER_MERCHANT_ID=your_merchant_id npm start

# Sandbox (test against πŸ€ Clover's sandbox environment)
CLOVER_ACCESS_TOKEN=your_sandbox_token CLOVER_MERCHANT_ID=your_sandbox_merchant_id CLOVER_SANDBOX=true npm start

Inspect Tools Interactively

CLOVER_ACCESS_TOKEN=your_token CLOVER_MERCHANT_ID=your_merchant_id CLOVER_SANDBOX=true npm run inspector

Opens the MCP Inspector β€” a browser UI for calling tools and seeing live πŸ€ Clover API responses.


Multi-Store Setup

Each πŸ€ Clover location has its own merchant ID and API token. Run one instance per store:

"clover-store1": {
  "command": "node",
  "args": ["/absolute/path/to/clover-mcp-server/dist/index.js"],
  "env": {
    "CLOVER_ACCESS_TOKEN": "token_for_store1",
    "CLOVER_MERCHANT_ID": "merchant_id_store1"
  }
},
"clover-store2": {
  "command": "node",
  "args": ["/absolute/path/to/clover-mcp-server/dist/index.js"],
  "env": {
    "CLOVER_ACCESS_TOKEN": "token_for_store2",
    "CLOVER_MERCHANT_ID": "merchant_id_store2"
  }
}

Each instance gets its own rate limiter and retry budget β€” no cross-store interference.


Testing

# Unit tests (no credentials needed)
npm test

# Sandbox integration tests (requires πŸ€ Clover sandbox credentials)
CLOVER_ACCESS_TOKEN=your_token CLOVER_MERCHANT_ID=your_merchant_id CLOVER_SANDBOX=true npm run test:sandbox

Architecture

  • src/clover-client.ts β€” Axios-based HTTP client wrapping the πŸ€ Clover V3 API, with rate limiting (Bottleneck), automatic retry with exponential backoff (axios-retry), and structured error handling
  • src/tools/ β€” One file per domain, each exporting a register*Tools function
  • src/index.ts β€” Wires everything together into an MCP server over stdio

Rate limiting is per-instance (per πŸ€ Clover merchant), so multi-store deployments stay isolated.


Built By

Ahreum β€” AI integration for independent restaurant owners.


License

MIT

Setup from the maintainer

This listing does not have a supported local package template. Use the maintainer’s documentation for its hosted endpoint, authentication, and client-specific setup. No install command has been inferred.

Learn More