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.
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_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.
How it connects
This server talks to your store through the Clariq plugin's local bridge — a WordPress REST endpoint authenticated with an HMAC bridge secret. Your data stays in your WordPress database; nothing is sent to Clariq's cloud.
| Local bridge | |
|---|---|
| Where data lives | Your WordPress database |
| Account needed | No |
| Query limits | None |
| Auth | HMAC bridge secret |
Prefer a fully hosted, always-on endpoint (no self-hosting, connect any MCP
client by URL)? That's Clariq's hosted MCP gateway — a separate paid
service at mcp.clariqapp.com/<slug>/mcp — not this package.
Configuration reference
| Variable | Default | Description |
|---|---|---|
CLARIQ_WP_URL |
http://localhost:8888 |
Your WordPress site URL |
CLARIQ_BRIDGE_SECRET |
— | Bridge secret from the plugin settings |
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.md — not 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.
Metadata
Release files for clariq-mcp 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clariq_mcp-1.1.1.tar.gz | 28.1 kB | Without provenance | Details for clariq_mcp-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clariq_mcp-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for clariq_mcp-1.1.1-py3-none-any.whl |
Total release size: 54.0 kB
Release files / clariq_mcp-1.1.1.tar.gz
| Download URL | clariq_mcp-1.1.1.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
057d596cccd4ad5893b27566bcce404eb0395d422ea91dec2bcedd6f240aaedc
|
|
BLAKE2b-256 checksum How to use checksums |
917e951842ae1a689f7b40ab429059ac426c36bb1d6dd1e02dfdb496a33e892a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / clariq_mcp-1.1.1-py3-none-any.whl
| Download URL | clariq_mcp-1.1.1-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c94add738ea492eb87c5ccb1c4593fe51258b1832ba9c9d4cfff53993af1f4c6
|
|
BLAKE2b-256 checksum How to use checksums |
73f346c45ddccf05f49fffb9d6de4425a33bfeb4ba73f5528bad6eb5eb9c3753
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for clariq-mcp 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.