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.
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
For Claude Desktop users, you can install automatically via Smithery:
npx -y @smithery/cli install @ibraheem4/clover-mcp --client claude
Before using the MCP server, you'll need to set up a Clover app:
http://localhost:4000/oauth-callback
Code
.env
file~/.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"]
}
}
}
/mcp use clover
Can you help me connect to my Clover account?
The server provides these tools via the MCP protocol:
get_oauth_status
: Check if OAuth credentials are availableinitiate_oauth_flow
: Start the OAuth flow to get access tokensget_merchant_info
: Get information about the merchantlist_inventory
: List inventory items with optional filterslist_orders
: List orders with optional filtersAfter connecting to Clover, you can use these example prompts with Claude:
Connect to Clover:
I'd like to connect to my Clover account.
Get Merchant Information:
What information do you have about my Clover merchant account?
List Inventory Items:
Show me the first 10 items in my inventory.
List Orders:
Can you list my most recent orders?
If you encounter OAuth problems:
http://localhost:4000/oauth-callback
initiate_oauth_flow
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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