Install Spree Commerce: open-source B2B and marketplace ecommerce in Cursor
What you need first
- Cursor, installed.
- Nothing else: the server runs on its publisher's machines and Cursor connects to it.
Steps
- Open
~/.cursor/mcp.json, or create it. For one project only, use.cursor/mcp.jsonin that project. - Add this block. If the file already has
mcpServers, add only the entry inside it.
{
"mcpServers": {
"ecommerce-b2b-marketplace": {
"url": "https://{store_domain}/api/v3/admin/mcp"
}
}
} - Save the file. In Cursor's settings, find the server in the MCP section and turn it on if it is off.
Check it worked
Ask Cursor: List the tools of ecommerce-b2b-marketplace.
If it does not start
- 401 Unauthorized
- The endpoint wants a sign-in or a key. Sign in when Cursor asks.
- Nothing changes after a restart
- The file is not valid JSON any more. Look for a missing comma where the block was added.
Back to Spree Commerce: open-source B2B and marketplace ecommerce