Clover MCP server

Integrates with the Clover payment platform to enable merchants to retrieve business information, inventory items, and order data through OAuth authentication with automatic token refresh.
Back to servers
Setup instructions
Provider
Ibraheem Abdul-Malik
Release date
Mar 17, 2025
Language
TypeScript
Package
Stats
616 downloads

Clover MCP Server is a lightweight server that enables AI models and clients to access Clover merchant data using the Model Context Protocol. With this integration, you can retrieve merchant information, inventory items, and order details through a secure OAuth authentication process.

Quick Start

Installation

You can easily install and run the Clover MCP Server using npx:

npx -y @ibraheem4/clover-mcp

To run with your Clover credentials directly:

CLOVER_CLIENT_ID=your-client-id CLOVER_CLIENT_SECRET=your-client-secret npx @ibraheem4/clover-mcp

Installing via Smithery

For Claude Desktop users, you can install automatically via Smithery:

npx -y @smithery/cli install @ibraheem4/clover-mcp --client claude

Clover OAuth Setup

Before using the MCP server, you'll need to set up a Clover app:

  1. Create a Clover developer account at developer.clover.com
  2. Register a new app in the Clover Developer Dashboard
  3. Configure your app with:
    • Site URL: http://localhost:4000/oauth-callback
    • Default OAuth Response: Code
  4. Take note of your Client ID and Client Secret
  5. Add these credentials to your environment or .env file

Configuration for Claude AI

Adding to Claude MCP Settings

  1. Add this configuration to your Claude MCP settings file (usually located at ~/.config/anthropic/claude.mcp.json):
{
  "mcpServers": {
    "clover": {
      "command": "npx",
      "args": ["-y", "@ibraheem4/clover-mcp"],
      "env": {
        "CLOVER_CLIENT_ID": "your-clover-client-id",
        "CLOVER_CLIENT_SECRET": "your-clover-client-secret",
        "CLOVER_BASE_URL": "https://apisandbox.dev.clover.com"
      },
      "disabled": false,
      "autoApprove": ["initiate_oauth_flow", "get_merchant_info", "list_inventory", "list_orders"]
    }
  }
}
  1. Use it with Claude by entering the following command:
/mcp use clover
  1. Start the OAuth flow in your conversation with Claude:
Can you help me connect to my Clover account?

Available MCP Tools

The server provides these tools via the MCP protocol:

  • get_oauth_status: Check if OAuth credentials are available
  • initiate_oauth_flow: Start the OAuth flow to get access tokens
  • get_merchant_info: Get information about the merchant
  • list_inventory: List inventory items with optional filters
  • list_orders: List orders with optional filters

Example Usage

After connecting to Clover, you can use these example prompts with Claude:

  1. Connect to Clover:

    I'd like to connect to my Clover account.
    
  2. Get Merchant Information:

    What information do you have about my Clover merchant account?
    
  3. List Inventory Items:

    Show me the first 10 items in my inventory.
    
  4. List Orders:

    Can you list my most recent orders?
    

Troubleshooting

If you encounter OAuth problems:

  1. Verify your Clover app is properly registered
  2. Check that the Site URL in your app settings is set to http://localhost:4000/oauth-callback
  3. Ensure your Client ID and Client Secret are correct
  4. Make sure "Default OAuth Response" is set to "Code" in the developer dashboard
  5. Try starting the OAuth flow again with initiate_oauth_flow

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "clover" '{"command":"npx","args":["-y","@ibraheem4/clover-mcp"],"env":{"CLOVER_CLIENT_ID":"your-clover-client-id","CLOVER_CLIENT_SECRET":"your-clover-client-secret","CLOVER_BASE_URL":"https://apisandbox.dev.clover.com"},"disabled":false,"autoApprove":["initiate_oauth_flow","get_merchant_info","list_inventory","list_orders"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "clover": {
            "command": "npx",
            "args": [
                "-y",
                "@ibraheem4/clover-mcp"
            ],
            "env": {
                "CLOVER_CLIENT_ID": "your-clover-client-id",
                "CLOVER_CLIENT_SECRET": "your-clover-client-secret",
                "CLOVER_BASE_URL": "https://apisandbox.dev.clover.com"
            },
            "disabled": false,
            "autoApprove": [
                "initiate_oauth_flow",
                "get_merchant_info",
                "list_inventory",
                "list_orders"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "clover": {
            "command": "npx",
            "args": [
                "-y",
                "@ibraheem4/clover-mcp"
            ],
            "env": {
                "CLOVER_CLIENT_ID": "your-clover-client-id",
                "CLOVER_CLIENT_SECRET": "your-clover-client-secret",
                "CLOVER_BASE_URL": "https://apisandbox.dev.clover.com"
            },
            "disabled": false,
            "autoApprove": [
                "initiate_oauth_flow",
                "get_merchant_info",
                "list_inventory",
                "list_orders"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later