Cover image
Try Now
2025-04-14

使AI代理可以通过安全的OAuth认证的MCP服务器访问和与Clover Merchant数据,清单和订单进行交互。

3 years

Works with Finder

1

Github Watches

1

Github Forks

0

Github Stars

Clover MCP (Model Context Protocol) Server

A minimal MCP server for interacting with the Clover API using OAuth authentication.

Overview

This MCP server allows generative AI models and other clients to access your Clover merchant data using the Model Context Protocol. With this integration, models can:

  • Retrieve merchant information
  • List inventory items
  • List orders
  • Access individual items and orders

Quick Start

Using with Claude AI (Recommended)

  1. Add this to your Claude MCP settings (usually in ~/.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:
/mcp use clover
  1. Start the OAuth flow in your conversation with Claude:
Can you help me connect to my Clover account?

Using via Command Line

You can run the MCP server directly:

# Install and run in one command
npx @ibraheem4/clover-mcp

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

Clover OAuth Setup

Before using this MCP server, you 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. Note your Client ID and Client Secret
  5. Add these credentials to your environment or .env file

MCP Tools

The following tools are available 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 with Claude

Here are some example prompts you can use with Claude after connecting:

  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?
    

Development

Local Installation

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Set up your OAuth credentials:
    cp .env.example .env
    # Edit .env with your Clover OAuth credentials
    
  4. Build the TypeScript code:
    npm run build
    
  5. Start the MCP server:
    ./run.sh
    

Publishing Updates

To publish a new version to npm:

# Update version in package.json
npm version patch  # or minor, or major

# Build and publish
npm run build
npm publish

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

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    4 (1)
    Avatar
    user_M7fmf7J7
    2025-04-15

    The Baidu Search MCP Server by Evilran is an incredibly efficient tool for managing multiple concurrent processes. It streamlines complex tasks, significantly enhancing productivity. Its user-friendly interface and robust performance make it an essential asset for any developer. Highly recommended!