How do I use MCP to manage my site with AI assistants?

MCP (Model Context Protocol) is an advanced feature that allows AI assistants like Claude Desktop to directly manage your WordPress site and interact with WupSales.

What is MCP?

MCP is a protocol created by Anthropic that enables AI assistants to:

Think of it as: Giving Claude AI direct access to your WordPress admin panel, but in a safe, controlled way.

Enabling MCP in WupSales:

Step 1: Enable MCP Server

  1. Navigate to AI Copilot → Settings → MCP
  2. Toggle “Enable MCP Server” to ON
  3. Generate Security Token (or use provided token)
  4. Save settings

Step 2: Note Connection Details

MCP Server URL: https://yoursite.com/wp-json/mcp/v1/sse
Bearer Token: [Your Security Token]

Step 3: Connect Claude Desktop (Example)

Add to Claude Desktop MCP configuration:

{
  "mcpServers": {
    "wupsales": {
      "url": "https://yoursite.com/wp-json/mcp/v1/sse",
      "type": "sse",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

Available MCP Tools:

WordPress Management:

WooCommerce Operations:

WupSales Points & Rewards:

Workflow Management:

Content Generation:

Example Use Cases:

1. Ask Claude to Check Customer Points:

You: “Check how many points customer john@example.com has”

Claude: [Uses wp_get_users + wupsales_get_customer_points]

Response: “John has 1,250 points, which equals $12.50 in rewards”

2. Create Loyalty Workflow via Chat:

You: “Create a workflow that awards 500 bonus points to customers on their birthday”

Claude: [Uses workflow_create with birthday trigger]

Response: “I’ve created the Birthday Bonus workflow. It will run daily and check for birthdays…”

3. Generate Product Description:

You: “Write a description for product ID 123 emphasizing eco-friendly features”

Claude: [Uses wp_get_post + aiwu_text + wp_update_post]

Response: “I’ve updated the product description highlighting sustainability…”

4. Bulk Point Adjustment:

You: “Add 100 bonus points to all customers who ordered in the last 30 days”

Claude: [Uses wp_get_orders + wupsales_add_points in loop]

Response: “I’ve added 100 points to 47 customers who ordered recently”

Security Considerations:

Access Control:

Audit Logging:

Enable MCP logging at Settings → MCP → Enable Logging

IP Restrictions (Optional):

Limitations:

Troubleshooting:

Connection Failed:

Permission Denied:

Developer Resources:

Pro Tip: MCP is perfect for batch operations that would be tedious via the admin panel. Ask Claude to “show me all customers with more than 5,000 points” or “create 10 test products with AI-generated descriptions”!