Skip to main content
Glama
WooCommerce MCP Server - Windsurf Bridge

WooCommerce MCP Server - Windsurf Bridge

WooCommerce MCP Server - Windsurf Bridge

A bridge adapter that makes the WooCommerce MCP Server compatible with Windsurf IDE and other MCP clients that have method limits.

šŸŽÆ Purpose

This bridge solves a critical compatibility issue: the original WooCommerce MCP server exposes over 100 tools, but some MCP clients (like Windsurf IDE) have a limit of 100 tools total across all servers. This bridge acts as a proxy that:

  • āœ… Wraps the original MCP server

  • āœ… Provides all WooCommerce functionality through a single server interface

  • āœ… Stays within the 95-tool limit (allowing room for other MCP servers)

  • āœ… Maintains full compatibility with the original server's capabilities

Related MCP server: WooCommerce MCP Server

šŸ“‹ Prerequisites

  1. Node.js 18 or higher

  2. WooCommerce MCP Server - Clone and build the original server first:

    git clone https://github.com/techspawn/woocommerce-mcp-server.git
    cd woocommerce-mcp-server
    npm install
    npm run build

šŸš€ Installation

# Clone this repository
git clone https://github.com/techspawn/woocommerce-mcp-server-windsurf-bridge.git
cd woocommerce-mcp-server-windsurf-bridge

# Install dependencies
npm install

# Make the bridge executable
chmod +x mcp-bridge.js

Option 2: NPM Installation (Coming Soon)

npm install -g woocommerce-mcp-server-windsurf-bridge

āš™ļø Configuration

1. Set Up Environment Variables

Create a .env file or set these environment variables:

# Required: WooCommerce credentials
WORDPRESS_SITE_URL=https://your-site.com
WOOCOMMERCE_CONSUMER_KEY=ck_xxxxxxxxxxxxx
WOOCOMMERCE_CONSUMER_SECRET=cs_xxxxxxxxxxxxx

# Optional: Custom path to original MCP server
ORIGINAL_MCP_SERVER_PATH=/path/to/woocommerce-mcp-server/build/index.js

2. Configure Windsurf IDE

Add this to your Windsurf MCP settings file:

Location:

  • macOS/Linux: ~/.windsurf/mcp_config.json or ~/.codeium/windsurf/mcp_config.json

  • Windows: %APPDATA%\windsurf\mcp_config.json

Configuration:

{
  "mcpServers": {
    "woocommerce": {
      "command": "node",
      "args": [
        "/absolute/path/to/woocommerce-mcp-server-windsurf-bridge/mcp-bridge.js"
      ],
      "env": {
        "WORDPRESS_SITE_URL": "https://your-site.com",
        "WOOCOMMERCE_CONSUMER_KEY": "ck_xxxxxxxxxxxxx",
        "WOOCOMMERCE_CONSUMER_SECRET": "cs_xxxxxxxxxxxxx",
        "ORIGINAL_MCP_SERVER_PATH": "/absolute/path/to/woocommerce-mcp-server/build/index.js"
      }
    }
  }
}

Important Notes:

  • Use absolute paths for both args and ORIGINAL_MCP_SERVER_PATH

  • If the original server is in a sibling directory, the bridge will auto-detect it

  • Replace placeholder values with your actual WooCommerce credentials

3. Verify Installation

  1. Restart Windsurf IDE

  2. Open the MCP panel

  3. You should see 95 WooCommerce tools available

  4. Test with a simple query like: "Get the last 5 orders"

šŸ› ļø Available Methods (95 Total)

Orders (15 methods)

  • get_orders, get_order, create_order, update_order, delete_order

  • get_order_notes, get_order_note, create_order_note, delete_order_note

  • get_order_refunds, get_order_refund, create_order_refund, delete_order_refund

  • get_order_meta, update_order_meta

Products (20 methods)

  • get_products, get_product, create_product, update_product, delete_product

  • get_product_variations, get_product_variation, create_product_variation, update_product_variation, delete_product_variation

  • get_product_categories, get_product_category, create_product_category, update_product_category, delete_product_category

  • get_product_tags, get_product_tag, create_product_tag, update_product_tag, delete_product_tag

Product Attributes & Reviews (10 methods)

  • get_product_attributes, get_product_attribute, create_product_attribute, update_product_attribute, delete_product_attribute

  • get_product_reviews, get_product_review, create_product_review, update_product_review, delete_product_review

Customers (9 methods)

  • get_customers, get_customer, create_customer, update_customer, delete_customer

  • get_customer_meta, update_customer_meta, create_customer_meta

Coupons (5 methods)

  • get_coupons, get_coupon, create_coupon, update_coupon, delete_coupon

Shipping (12 methods)

  • get_shipping_zones, get_shipping_zone, create_shipping_zone, update_shipping_zone, delete_shipping_zone

  • get_shipping_methods, get_shipping_zone_methods, create_shipping_zone_method

  • update_shipping_zone_method, delete_shipping_zone_method, get_shipping_zone_locations, update_shipping_zone_locations

Taxes (8 methods)

  • get_tax_classes, create_tax_class, delete_tax_class

  • get_tax_rates, get_tax_rate, create_tax_rate, update_tax_rate, delete_tax_rate

Payment Gateways (3 methods)

  • get_payment_gateways, get_payment_gateway, update_payment_gateway

Reports (8 methods)

  • get_sales_report, get_products_report, get_orders_report, get_categories_report

  • get_customers_report, get_stock_report, get_coupons_report, get_taxes_report

Settings (3 methods)

  • get_settings, get_setting_options, update_setting_option

Data (2 methods)

  • get_countries, get_currencies

šŸ“– Usage Examples

Example 1: Get Recent Orders

In Windsurf, ask:

Show me the last 10 orders from my WooCommerce store

Example 2: Create a Product

Create a new product called "Premium T-Shirt" with price $29.99

Example 3: Update Customer Information

Update customer #123 with email john@example.com

šŸ” How It Works

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”         ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”         ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│             │         │              │         │                 │
│  Windsurf   │ ──────> │  MCP Bridge  │ ──────> │  Original MCP   │
│     IDE     │ <────── │  (95 tools)  │ <────── │  Server (100+)  │
│             │         │              │         │                 │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜         ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜         ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
  1. Windsurf sends a tool request to the bridge

  2. Bridge spawns the original MCP server as a child process

  3. Bridge forwards the request via JSON-RPC

  4. Original server processes the request and returns results

  5. Bridge forwards the response back to Windsurf

šŸ› Troubleshooting

Issue: "Cannot find original MCP server"

Solution: Set the ORIGINAL_MCP_SERVER_PATH environment variable to the absolute path of woocommerce-mcp-server/build/index.js

Issue: "Authentication failed"

Solution:

  1. Verify your WooCommerce credentials are correct

  2. Ensure the consumer key has appropriate permissions

  3. Check that your WordPress site URL is correct (include https://)

Issue: "Request timeout"

Solution:

  1. Check your internet connection

  2. Verify the WordPress site is accessible

  3. Increase the timeout in mcp-bridge.js if needed

Issue: Tools not showing in Windsurf

Solution:

  1. Restart Windsurf IDE completely

  2. Check MCP config file syntax (must be valid JSON)

  3. Look at Windsurf logs for error messages

šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

šŸ“„ License

MIT License - see LICENSE file for details

šŸ’¬ Support

If you encounter any issues or have questions:

  1. Check the Troubleshooting section

  2. Open an issue on GitHub

  3. Refer to the original WooCommerce MCP Server documentation

šŸ™ Acknowledgments

This bridge was created to solve the Windsurf IDE tool limit constraint while maintaining full access to WooCommerce functionality through MCP.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers