Add it to Claude Code
claude mcp add -e "CLIENT_ID=${CLIENT_ID}" -e "CLIENT_SECRET=${CLIENT_SECRET}" -e "PROJECT_KEY=${PROJECT_KEY}" -e "AUTH_URL=${AUTH_URL}" -e "API_URL=${API_URL}" commercetools-commerce -- npx -y @commercetools/commerce-mcp@latest --tools=all --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --authUrl=AUTH_URL --projectKey=PROJECT_KEY --apiUrl=API_URL --dynamicToolLoadingThreshold=30CLIENT_IDCLIENT_SECRETPROJECT_KEYAUTH_URLAPI_URLMake your agent remember this setup
commercetools-commerce's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- Comprehensive management of products, categories, orders, and carts
- Support for both read-only and full-access operations
- Secure authentication via client credentials or access tokens
- Dynamic tool loading for optimized performance
- Compatible with various MCP clients and agent frameworks
Tools 2
products.readRead product data from commercetoolsproducts.createCreate new products in commercetoolsEnvironment Variables
CLIENT_IDrequiredThe commercetools API client IDCLIENT_SECRETrequiredThe commercetools API client secretPROJECT_KEYrequiredThe commercetools project keyAUTH_URLrequiredThe commercetools authentication URLAPI_URLrequiredThe commercetools API URLTry it
Original README from commercetools/commerce-mcp
License and Scope of Use for Commerce MCP
Commerce MCP is provided under a dual-tier usage model based on the highly permissive MIT License with specific limitations on commercial use.
Permitted Use
Access to and use of Commerce MCP is governed by the following terms:
- Non-Commercial Use (No Charge): The use of Commerce MCP is permitted for development, evaluation, and testing purposes at no charge. This non-commercial use is subject to a hard cap of 1,000,000 (one million) total tool invocations.
- Commercial/Production Use (Required License): Any use of Commerce MCP in a production environment or for any other commercial purpose requires a paid license or subscription.
License Enforcement
While the underlying code adheres to the principles of the MIT License, the terms above constitute the binding agreement for utilizing Commerce MCP. commercetools reserves the right to review how customers are using Commerce MCP and to restrict or terminate access for unlicensed production use or for any non-commercial use that exceeds the stated 1,000,000 invocation limit.
commercetools Commerce MCP
This repository contains both an MCP server (which you can integrate with many MCP clients) and commerce agent that can be used from within agent frameworks.
commercetools Model Context Protocol
Setup
To run the commercetools MCP server using npx, use the following command:
Client Credentials Authentication (Default)
# To set up all available tools (authType is optional, defaults to client_credentials)
npx -y @commercetools/commerce-mcp --tools=all --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --projectKey=PROJECT_KEY --authUrl=AUTH_URL --apiUrl=API_URL
# Explicitly specify client_credentials (optional)
npx -y @commercetools/commerce-mcp --tools=all --authType=client_credentials --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --projectKey=PROJECT_KEY --authUrl=AUTH_URL --apiUrl=API_URL
# To set up all read-only tools
npx -y @commercetools/commerce-mcp --tools=all.read --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --projectKey=PROJECT_KEY --authUrl=AUTH_URL --apiUrl=API_URL
# To set up specific tools
npx -y @commercetools/commerce-mcp --tools=products.read,products.create --clientId=CLIENT_ID --clientSecret=CLIENT_SECRET --projectKey=PROJECT_KEY --authUrl=AUTH_URL --apiUrl=API_URL
Access Token Authentication
# To set up all available tools with access token
npx -y @commercetools/commerce-mcp --tools=all --authType=auth_token --accessToken=ACCESS_TOKEN --projectKey=PROJECT_KEY --authUrl=AUTH_URL --apiUrl=API_URL
# To set up all read-only tools with access token
npx -y @commercetools/commerce-mcp --tools=all.read --authType=auth_token --accessToken=ACCESS_TOKEN --projectKey=PROJECT_KEY --authUrl=AUTH_URL --apiUrl=API_URL
Make sure to replace CLIENT_ID, CLIENT_SECRET, PROJECT_KEY, AUTH_URL, API_URL, and ACCESS_TOKEN with your actual values. If using the customerId parameter, replace CUSTOMER_ID with the actual customer ID. Alternatively, you could set the API_KEY in your environment variables.
Authentication Options
The MCP server supports two authentication methods:
| Authentication Type | Required Arguments | Description |
|---|---|---|
client_credentials (default) |
--clientId, --clientSecret |
Uses API client credentials for authentication. --authType=client_credentials is optional since this is the default |
auth_token |
--accessToken, (optional --clientId, --clientSecret) |
Uses a pre-existing access token for authentication. Requires --authType=auth_token and optional --clientId and --clientSecret |
Usage with Claude Desktop
Add the following to your claude_desktop_config.json. See here for more details.
Client Credentials Authentication
{
"mcpServers": {
"commercetools": {
"command": "npx",
"args": [
"-y",
"@commercetools/commerce-mcp@latest",
"--tools=all",
"--clientId=CLIENT_ID",
"--clientSecret=CLIENT_SECRET",
"--authUrl=AUTH_URL",
"--projectKey=PROJECT_KEY",
"--apiUrl=API_URL",
"--dynamicToolLoadingThreshold=30"
]
}
}
}
Note: You can optionally add "--authType=client_credentials" to be explicit, but it's not required since this is the default.
Access Token Authentication
{
"mcpServers": {
"commercetools": {
"command": "npx",
"