mcp
v0.16.0Intuera MCP server — gives AI coding agents role-gated, evidence-backed e-commerce recommendations from the Intuera platform, and (with consent) feeds…
Intuera MCP server — one link in an agent's toolchain. It gives an AI coding agent (Claude Code, Codex, …) role-gated, evidence-backed e-commerce recommendations from the Intuera platform, and — only with explicit consent — feeds anonymized results back to Intuera's research base. It is a thin adapter: it holds no database credentials and implements no access control itself. Every request carries the user's API key to the Intuera platform API, which enforces roles/entitlements (the existing AccessResolver). intuera_submit_results never sends unless consent: true.
Summary extracted from the README.
@intuera/mcp
Intuera MCP server — one link in an agent's toolchain. It gives an AI coding agent (Claude Code, Codex, …) role-gated, evidence-backed e-commerce recommendations from the Intuera platform, and — only with explicit consent — feeds anonymized results back to Intuera's research base.
It is a thin adapter: it holds no database credentials and implements no
access control itself. Every request carries the user's API key to the Intuera
platform API, which enforces roles/entitlements (the existing AccessResolver).
Webshop owner → Claude Code / Codex
├─ @intuera/mcp → HTTPS → Intuera platform (role check) → DB / RAG / research
├─ PostHog MCP
└─ PromptWise MCP
Tools
| Tool | Purpose | Read/Write |
|---|---|---|
intuera_status |
Verify API key, show role/plan/entitlements | read |
intuera_overview |
Start here — session onboarding: account, projects, capability menu, workflow order, tips | read |
intuera_report |
Progress report with a delta since last time (what changed), top fixes, next steps | read |
intuera_design |
Research-grounded design engine — returns citeable research sources ([R#]) + build/citation rules to design a section or whole page |
read |
intuera_search_recommendations |
What worked for comparable shops (filter by surface/industry/problem/metric) | read |
intuera_get_benchmarks |
Aggregate industry benchmarks | read |
intuera_get_checklist |
A project's checklist + statuses | read |
intuera_get_surface_items |
Items for one surface of a project | read |
intuera_get_prioritized_fixes |
Ranked “what to fix first and how” for a project | read |
intuera_submit_results |
Send anonymized outcomes back for research — consent required | write |
intuera_submit_results never sends unless consent: true. The agent must
confirm the owner agreed to share anonymized results first.
Claude Code: use the plugin instead
For Claude Code, the recommended setup is the Intuera plugin, served by the Intuera MCP Bridge (0.16.0+). It connects to the remote MCP endpoint and signs in with OAuth, so no key and no local server are needed:
claude plugin marketplace add https://research.intuera.eu/wp-json/intuera/v1/claude-marketplace && claude plugin install intuera@intuera
Then run /mcp → intuera → Authenticate, and type /intuera to see the 13 commands
(/intuera:init, /intuera:audit, /intuera:design, /intuera:build, …). The
Claude app (web, desktop, mobile) can add the same endpoint as a custom connector.
This npm package is for clients that need a local stdio server with an Application
Password (Codex, scripts). There, start by asking the agent to "initialize Intuera" —
intuera_init returns the start point and a plain-language menu.
Routine reports: the platform stores a weekly snapshot automatically, so every
intuera_report shows what changed since last time. The MCP can't push on its own —
to get a report on a cadence, schedule intuera_report in your agent (e.g. a weekly
scheduled task in Claude Code).
Design flow: ask the agent to design something ("design my product page hero").
It calls intuera_design, infers scope, goal and industry from the shop, uses the
brand the server read off the live shop (colours, fonts, logo, tone), then designs
grounded in Intuera research and cites each decision as [R#] with a Sources list. Pass a project to also align
the design with that shop's audit items for the surface.
Configuration
Environment variables:
| Var | Required | Meaning |
|---|---|---|
INTUERA_API_URL |
yes | Intuera REST base, e.g. https://research.intuera.eu/wp-json/intuera/v1 |
INTUERA_WP_USER |
yes | WordPress username the Application Password belongs to |
INTUERA_APP_PASSWORD |
yes | A WordPress Application Password (Users → Profile → Application Passwords) |
INTUERA_TIMEOUT_MS |
no | Request timeout (default 30000) |
Auth is HTTP Basic using the Application Password — no custom key store. The site must be served over HTTPS for WordPress to accept Application Passwords.
Claude Code
Local build (before publishing to npm):
{
"mcpServers": {
"intuera": {
"command": "node",
"args": ["/absolute/path/to/packages/intuera-mcp/dist/index.js"],
"env": {
"INTUERA_API_URL": "https://research.intuera.eu/wp-json/intuera/v1",
"INTUERA_WP_USER": "jane",
"INTUERA_APP_PASSWORD": "abcd efgh ijkl mnop qrst uvwx"
}
}
}
}
After publishing: replace command/args with "command": "npx", "args": ["-y", "@intuera/mcp"].
Codex and other MCP clients take the same command + env.
Platform API contract (what the server calls)
The platform exposes these endpoints under INTUERA_API_URL, authenticated with
a WordPress Application Password (HTTP Basic). Enforce roles/entitlements
server-side; return 401 for a bad key, 403 when the role lacks access, 404
for unknown project. Responses are JSON. Shapes below are the minimum the MCP
reads; extra fields pass through untouched.
GET /me
→ { "user": "…", "role": "owner", "plan": "pro", "entitlements": ["…"] }
GET /recommendations?problem=&surface=&industry=&metric=&limit=
→ { "total": 12, "recommendations": [
{ "title": "…", "why": "…", "evidence": "worked for N similar shops",
"surface": "checkout", "impact": "high", "effort": "low" } ] }
GET /benchmarks?industry=&metric=
→ { "benchmarks": [ { "metric": "conversion_rate", "p50": 2.1, "p90": 4.0, "you": 1.8 } ] }
GET /checklist?project=
→ { "project": "…", "items": [ { "id": 1, "title": "…", "surface": "…", "status": "done" } ] }
GET /surface-items?project=&surface=
→ { "items": [ { "id": 1, "title": "…", "status": "not_started" } ] }
GET /prioritized-fixes?project=&context=&limit=
→ { "fixes": [ { "rank": 1, "item": "…", "surface": "checkout",
"action": "…", "why": "…", "evidence": "…" } ] }
POST /item-status (the agent marks progress instead of the owner clicking)
body: { "project": "…", "item": 123,
"status": "done|in_progress|not_applicable|deferred|not_started",
"note": "verified: title + price visible above the fold" }
→ { "item": 123, "status": "done" }
POST /items-status (bulk)
body: { "project": "…", "updates": [ { "item": 123, "status": "done", "note": "…" } ] }
→ { "updated": 1 }
POST /results (consent-gated on the client; re-check server-side)
body: { "project": "…", "consent": true, "what_changed": "…",
"surface": "checkout", "industry": "fashion",
"metrics": { "cr_before": 1.8, "cr_after": 2.4 },
"notes": "…", "source": "mcp" }
→ { "id": 123, "status": "stored" }
The adapter maps HTTP failures to actionable messages for the agent; the
platform should put a human-readable reason in message, error, or detail.
Develop
npm install # from the monorepo root
npm run build --workspace @intuera/mcp
Smoke test over stdio:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| INTUERA_API_URL=https://example.test/api/v1 INTUERA_API_KEY=x node dist/index.js
Notes
- stdout is the JSON-RPC channel; all logging is forced to stderr (
src/quiet.ts). - No PII should be sent through
intuera_submit_results; anonymize on the platform before data enters the research set.