npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dokdosolutions/clover-mcp

v1.0.4

Published

Model Context Protocol server for Clover POS — restaurant operations, menu management, inventory, analytics, and customer retention

Downloads

817

Readme

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:

| Module | Tools | |---|---| | Menu | Browse items, categories, modifiers, and pricing | | Orders | Query orders, filter by date/status, inspect line items | | Customers | Search, create, and profile customers with lifetime spend | | Inventory | Stock levels, low-stock alerts, adjustments, auto-86 depleted items | | Analytics | Revenue by period, peak hours, best-selling items, category breakdown | | Employees | Shift activity, hours worked, clock-in/out visibility | | Financials | Daily/weekly/monthly summaries, tender breakdowns, tax reporting | | Retention | Lapsed customers, win-back message drafting, birthday outreach, first-time visitors | | Operations | Refund rates, open orders, void detection, table turn analysis | | Forecasting | Week-over-week trends, seasonal patterns, staffing demand signals | | Reservations | Booking management with conflict detection | | Smart Queries | Cross-module insights — happy hour analysis, upsell opportunities, slow day detection | | Menu Ops | Bulk 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 Dokdo + 🍀 Clover difference.


Getting Started

Prerequisites

Install via npm (recommended)

npx @dokdosolutions/clover-mcp

Or install from source

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": "npx",
  "args": ["-y", "@dokdosolutions/clover-mcp"],
  "env": {
    "CLOVER_ACCESS_TOKEN": "token_for_store1",
    "CLOVER_MERCHANT_ID": "merchant_id_store1"
  }
},
"clover-store2": {
  "command": "npx",
  "args": ["-y", "@dokdosolutions/clover-mcp"],
  "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

Dokdo Solutions — AI integration for independent restaurant owners.


License

MIT