Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-sadrmanesh-woocommerce-mcp": {
"command": "npx",
"args": [
"-y",
"@sadrmanesh/woocommerce-mcp"
],
"env": {
"WOOCOMMERCE_URL": "<VALUE>",
"WOOCOMMERCE_CONSUMER_KEY": "<YOUR_VALUE>",
"WOOCOMMERCE_CONSUMER_SECRET": "<YOUR_VALUE>",
"WOOCOMMERCE_READ_ONLY": "true",
"WOOCOMMERCE_REDACT_PII": "false",
"WOOCOMMERCE_TOOLS_DENY": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"WOOCOMMERCE_STORES": "<VALUE>",
"MCP_HTTP_AUTH_TOKENS": "<VALUE>",
"WOOCOMMERCE_AUDIT_LOG": "off",
"WOOCOMMERCE_STORES_FILE": "<VALUE>",
"WOOCOMMERCE_OTEL_ENABLED": "false",
"MCP_HTTP_AUTH_READ_TOKENS": "<VALUE>",
"WOOCOMMERCE_DEFAULT_STORE": "first store",
"WOOCOMMERCE_REQUIRE_CONFIRMATION": "true"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-sadrmanesh-woocommerce-mcp": {
"command": "npx",
"args": [
"-y",
"@sadrmanesh/woocommerce-mcp"
],
"env": {
"WOOCOMMERCE_URL": "<VALUE>",
"WOOCOMMERCE_CONSUMER_KEY": "<YOUR_VALUE>",
"WOOCOMMERCE_CONSUMER_SECRET": "<YOUR_VALUE>",
"WOOCOMMERCE_READ_ONLY": "true",
"WOOCOMMERCE_REDACT_PII": "false",
"WOOCOMMERCE_TOOLS_DENY": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"WOOCOMMERCE_STORES": "<VALUE>",
"MCP_HTTP_AUTH_TOKENS": "<VALUE>",
"WOOCOMMERCE_AUDIT_LOG": "off",
"WOOCOMMERCE_STORES_FILE": "<VALUE>",
"WOOCOMMERCE_OTEL_ENABLED": "false",
"MCP_HTTP_AUTH_READ_TOKENS": "<VALUE>",
"WOOCOMMERCE_DEFAULT_STORE": "first store",
"WOOCOMMERCE_REQUIRE_CONFIRMATION": "true"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-sadrmanesh-woocommerce-mcp": {
"command": "npx",
"args": [
"-y",
"@sadrmanesh/woocommerce-mcp"
],
"env": {
"WOOCOMMERCE_URL": "<VALUE>",
"WOOCOMMERCE_CONSUMER_KEY": "<YOUR_VALUE>",
"WOOCOMMERCE_CONSUMER_SECRET": "<YOUR_VALUE>",
"WOOCOMMERCE_READ_ONLY": "true",
"WOOCOMMERCE_REDACT_PII": "false",
"WOOCOMMERCE_TOOLS_DENY": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"WOOCOMMERCE_STORES": "<VALUE>",
"MCP_HTTP_AUTH_TOKENS": "<VALUE>",
"WOOCOMMERCE_AUDIT_LOG": "off",
"WOOCOMMERCE_STORES_FILE": "<VALUE>",
"WOOCOMMERCE_OTEL_ENABLED": "false",
"MCP_HTTP_AUTH_READ_TOKENS": "<VALUE>",
"WOOCOMMERCE_DEFAULT_STORE": "first store",
"WOOCOMMERCE_REQUIRE_CONFIRMATION": "true"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-sadrmanesh-woocommerce-mcp": {
"command": "npx",
"args": [
"-y",
"@sadrmanesh/woocommerce-mcp"
],
"env": {
"WOOCOMMERCE_URL": "<VALUE>",
"WOOCOMMERCE_CONSUMER_KEY": "<YOUR_VALUE>",
"WOOCOMMERCE_CONSUMER_SECRET": "<YOUR_VALUE>",
"WOOCOMMERCE_READ_ONLY": "true",
"WOOCOMMERCE_REDACT_PII": "false",
"WOOCOMMERCE_TOOLS_DENY": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"WOOCOMMERCE_STORES": "<VALUE>",
"MCP_HTTP_AUTH_TOKENS": "<VALUE>",
"WOOCOMMERCE_AUDIT_LOG": "off",
"WOOCOMMERCE_STORES_FILE": "<VALUE>",
"WOOCOMMERCE_OTEL_ENABLED": "false",
"MCP_HTTP_AUTH_READ_TOKENS": "<VALUE>",
"WOOCOMMERCE_DEFAULT_STORE": "first store",
"WOOCOMMERCE_REQUIRE_CONFIRMATION": "true"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-sadrmanesh-woocommerce-mcp": {
"command": "npx",
"args": [
"-y",
"@sadrmanesh/woocommerce-mcp"
],
"env": {
"WOOCOMMERCE_URL": "<VALUE>",
"WOOCOMMERCE_CONSUMER_KEY": "<YOUR_VALUE>",
"WOOCOMMERCE_CONSUMER_SECRET": "<YOUR_VALUE>",
"WOOCOMMERCE_READ_ONLY": "true",
"WOOCOMMERCE_REDACT_PII": "false",
"WOOCOMMERCE_TOOLS_DENY": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"WOOCOMMERCE_STORES": "<VALUE>",
"MCP_HTTP_AUTH_TOKENS": "<VALUE>",
"WOOCOMMERCE_AUDIT_LOG": "off",
"WOOCOMMERCE_STORES_FILE": "<VALUE>",
"WOOCOMMERCE_OTEL_ENABLED": "false",
"MCP_HTTP_AUTH_READ_TOKENS": "<VALUE>",
"WOOCOMMERCE_DEFAULT_STORE": "first store",
"WOOCOMMERCE_REQUIRE_CONFIRMATION": "true"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-sadrmanesh-woocommerce-mcp": {
"command": "npx",
"args": [
"-y",
"@sadrmanesh/woocommerce-mcp"
],
"env": {
"WOOCOMMERCE_URL": "<VALUE>",
"WOOCOMMERCE_CONSUMER_KEY": "<YOUR_VALUE>",
"WOOCOMMERCE_CONSUMER_SECRET": "<YOUR_VALUE>",
"WOOCOMMERCE_READ_ONLY": "true",
"WOOCOMMERCE_REDACT_PII": "false",
"WOOCOMMERCE_TOOLS_DENY": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"WOOCOMMERCE_STORES": "<VALUE>",
"MCP_HTTP_AUTH_TOKENS": "<VALUE>",
"WOOCOMMERCE_AUDIT_LOG": "off",
"WOOCOMMERCE_STORES_FILE": "<VALUE>",
"WOOCOMMERCE_OTEL_ENABLED": "false",
"MCP_HTTP_AUTH_READ_TOKENS": "<VALUE>",
"WOOCOMMERCE_DEFAULT_STORE": "first store",
"WOOCOMMERCE_REQUIRE_CONFIRMATION": "true"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| WOOCOMMERCE_URL | Yes | Store origin, without /wp-json |
| WOOCOMMERCE_CONSUMER_KEY secret | Yes | WooCommerce REST API consumer key (use a Read key while the store is read-only, and a Read/Write key only when writes are enabled) |
| WOOCOMMERCE_CONSUMER_SECRET secret | Yes | WooCommerce REST API consumer secret |
| WOOCOMMERCE_READ_ONLY | No | Allow writes for the single store. Stores are read-only until you allow writes. Default: true |
| WOOCOMMERCE_REDACT_PII | No | Mask customer names, emails, phones, and addresses in results Default: false |
| WOOCOMMERCE_TOOLS_DENY | No | Comma-separated tool names or patterns to hide, such as delete_* |
| MCP_HTTP_HOST | No | HTTP listener host Default: 127.0.0.1 |
| MCP_HTTP_PATH | No | HTTP listener path Default: /mcp |
| MCP_HTTP_PORT | No | HTTP listener port Default: 3000 |
| MCP_TRANSPORT | No | Transport to use: "stdio" or "http" Default: stdio |
| WOOCOMMERCE_STORES | No | Inline JSON configuring several stores (multi-store configuration), as an alternative to WOOCOMMERCE_STORES_FILE |
| MCP_HTTP_AUTH_TOKENS | No | Full-access bearer tokens for the HTTP transport |
| WOOCOMMERCE_AUDIT_LOG | No | Audit log destination: a file path or "stderr" Default: off |
| WOOCOMMERCE_STORES_FILE | No | Path to a JSON file configuring several stores (multi-store configuration) |
| WOOCOMMERCE_OTEL_ENABLED | No | Export OpenTelemetry traces Default: false |
| MCP_HTTP_AUTH_READ_TOKENS | No | Read-only bearer tokens for the HTTP transport |
| WOOCOMMERCE_DEFAULT_STORE | No | Store used when a call omits the store argument Default: first store |
| WOOCOMMERCE_REQUIRE_CONFIRMATION | No | Preview writes until the tool is called again with confirm: true Default: true |