storelens-insights-for-woocommerce

CTLong02/storelens-insights-for-woocommerce Checked 2 days ago

Read-only WooCommerce MCP server for AI agents (Claude, ChatGPT, Cursor).

A read-only MCP server for your WooCommerce store. Let Claude, ChatGPT, Cursor or any MCP client answer questions about your revenue, stock and customers — without ever being able to change anything. WooCommerce ships MCP tools for creating and editing products and orders. It does not ship a single reporting tool. This plugin fills that gap: seven read-only reports designed to be read by a language model, not by a human staring at a chart. Registered through the WordPress Abilities API (core since 6.9), then exposed over MCP.

Summary extracted from the README.


Why this exists

WooCommerce ships MCP tools for creating and editing products and orders. It does not ship a single reporting tool. This plugin fills that gap: seven read-only reports designed to be read by a language model, not by a human staring at a chart.

Ask your assistant things like:

  • "How did the store do this week compared to last week?"
  • "What do I need to reorder?"
  • "Which products made the most money this month?"
  • "Are any orders stuck?"

The seven tools (free)

Tool Answers
Sales summary revenue, orders, AOV, refunds, % change vs the previous equal period
Sales trend revenue bucketed by day / week / month — growth, decline, seasonality
Top products best sellers by revenue or units, with SKU
Low stock what's running out, how fast it sells, days of stock left
Customer insights top spenders, repeat-purchase rate, per-customer AOV
Order status breakdown orders and value per status, plus what's stuck
Store overview the whole health check in a single call

Registered through the WordPress Abilities API (core since 6.9), then exposed over MCP. They run on your own server, to your own AI client — no third party in the middle.

Built for people nervous about giving an AI access to their store

  • Read-only. Not one tool here can create, edit or delete anything. Ever.
  • No personal data. Customer reports return billing names only — never emails, phones or addresses.
  • Access log. Every request recorded: which tool, which account, which arguments, how long it took.
  • Per-tool switches. Turn off any report you don't want exposed.
  • Standard WordPress permissions. Only users who can already view WooCommerce reports can run these tools.

Quick start

  1. Install Storelens Insights for WooCommerce from the WordPress.org directory (or upload the zip).
  2. Install the official MCP Adapter plugin (this is what publishes the MCP endpoint). Without it, the reports still work through the core Abilities REST API.
  3. Go to WooCommerce → Storelens Insights and copy your endpoint, e.g. https://your-store.com/wp-json/storelens-insights/v1/mcp
  4. Create an Application Password under Users → Profile (don't use your login password).
  5. Add the endpoint + application password to your MCP client.

Example: Claude Desktop (via mcp-remote)

{
  "mcpServers": {
    "woocommerce-storelens": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://your-store.com/wp-json/storelens-insights/v1/mcp",
        "--header", "Authorization: Basic BASE64_OF_username:application_password"
      ]
    }
  }
}

Then ask Claude: "Using the WooCommerce tools, give me a store overview."

Screenshots

Settings & endpoint Access log A real tool response
Settings Access log Response

Accuracy notes

Revenue counts orders with status completed and processing; refunds are reported separately and subtracted for net revenue. All dates use your store timezone, not server time. Works on both High-Performance Order Storage and legacy post storage. No dependency on WooCommerce Analytics lookup tables.

Pro

A paid tier (details) adds four more reports — refund analysis, coupon performance, bought-together affinity, customers going quiet — plus email digests and anomaly alerts. Pro is a separate download: this free build does not contain the Pro code at all, and Pro is read-only too.

License

GPLv2 or later. This repository mirrors the free version published on WordPress.org.