Skip to main content

Clariq MCP Server

Talk to your WooCommerce store. This MCP server connects AI assistants (Claude Desktop and any MCP-compatible client) to your store's analytics — sales performance, product margins, customer retention, and more.

Self-hosted and free: in local bridge mode your store data never leaves your own infrastructure. No account, no quota, no lock-in.

License: AGPL v3 Python


How it works

Claude Desktop ──(stdio)──> clariq-mcp ──(HMAC-signed HTTPS)──> your WordPress site
   (your machine)            (your machine)                     (Clariq plugin + WooCommerce DB)
  • The MCP server runs on your machine as a local stdio process — it is never exposed to the internet.
  • The Clariq WooCommerce plugin exposes two HMAC-authenticated REST endpoints (/wp-json/mcp-bridge/v1/*) and computes analytics against your own database on request.
  • Result: ask Claude "How did sales do this month?" and get real numbers — without shipping your order data anywhere.

Quickstart (5 minutes)

1. Install the WordPress plugin

Install the Clariq plugin on your WooCommerce store (releases), then in wp-admin → Clariq settings choose Local Bridge mode. Copy the bridge secret shown there.

2. Install the MCP server

Requires Python 3.11+. Either run it directly with uv:

uvx clariq-mcp

or install it with pipx/pip:

pipx install clariq-mcp   # or: pip install clariq-mcp

3. Add it to Claude Desktop

Edit claude_desktop_config.json:

{
  "mcpServers": {
    "clariq": {
      "command": "clariq-mcp",
      "env": {
        "CLARIQ_MODE": "local",
        "CLARIQ_WP_URL": "https://your-store.com",
        "CLARIQ_BRIDGE_SECRET": "your-bridge-secret"
      }
    }
  }
}

Restart Claude Desktop. Done — ask it a question about your store.

Tools

Tool What it answers
get_sales_performance Revenue, orders, tax, net and AOV — as a summary or hourly/daily/monthly trend (interval)
get_product_analytics Top products/variations by net revenue, items bought together, or a product catalog (mode)
get_customer_insights Geographic breakdown by city/country, or first-time vs repeat cohorts (dimension)
get_marketing_attribution UTM traffic sources, campaign leaderboard, or attribution coverage (dimension)
get_technical_analytics Device, OS, or OS-by-payment-method breakdowns (breakdown)
get_inventory_runway Days of stock left per product vs 30-day sales velocity
get_coupon_leakage Coupon usage, discount given, and discount share of revenue (margin drain)
get_repurchase_clock Repeat-buyer count and average/fastest/longest days between orders

Most tools take an optional start_date/end_date (YYYY-MM-DD) plus the view selector shown in parentheses; sensible defaults apply when omitted.

Modes

Local bridge (CLARIQ_MODE=local) SaaS cloud (CLARIQ_MODE=saas)
Where data lives Your WordPress database Clariq Cloud (synced)
Account needed No Yes
Query limits None Per plan
Auth HMAC bridge secret Bearer token + tenant ID

SaaS mode additionally needs CLARIQ_SAAS_URL, CLARIQ_AUTH_TOKEN, and CLARIQ_TENANT_ID.

Configuration reference

Variable Default Description
CLARIQ_MODE local local or saas
CLARIQ_WP_URL http://localhost:8888 Your WordPress site URL
CLARIQ_BRIDGE_SECRET Bridge secret from the plugin settings
CLARIQ_SAAS_URL https://api.clariqapp.com Clariq Cloud API base (SaaS mode)
CLARIQ_AUTH_TOKEN SaaS auth token (SaaS mode)
CLARIQ_TENANT_ID SaaS tenant ID (SaaS mode)

All settings can come from the environment or a .env file (see .env.example).

Troubleshooting

  • mcp_bridge_disabled (403): the plugin is not in Local Bridge mode.
  • 401 on every call: the bridge secret doesn't match — copy it again from the plugin settings page.
  • 404 on /wp-json/mcp-bridge/v1/ping: the plugin isn't active, or permalinks are disabled (pretty permalinks are required).
  • More help: open a connection troubleshooting issue.

Development

pip install -e ".[dev]"
pytest tests/ -v

See CONTRIBUTING.md. Security issues go to SECURITY.mdnot public issues.

License

AGPL-3.0-or-later — free to use, self-host, and modify. If you offer this software as a hosted service, you must share your changes under the same license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clariq_mcp-1.0.0.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clariq_mcp-1.0.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file clariq_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: clariq_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for clariq_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 69c96ca9ad893ea299ab86249daa1869b5c88c6c444f45d9bef833e8469db48d
MD5 bdbd85d6f8eb5be7a8cc9cec85dd4a70
BLAKE2b-256 c05e176c884d91bef53e4e1550301302204fa3ee683fec3de3c6924faa119852

See more details on using hashes here.

File details

Details for the file clariq_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: clariq_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for clariq_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 192f1347ff5841084869e3b68ecb46725a45d17c434dee612b010935526be600
MD5 d3695115875e6b7633ade6b967a4ac50
BLAKE2b-256 a2f023944aebab19f0d1716d558592776e2b9fea601db7c71aeea4749eb4133c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page