First-Party Data + CRO Intelligence MCP
Project description
First-Party Data + CRO Intelligence MCP
Core Problem
Analytics, session behavior, ecommerce data, and A/B tests are fragmented, hiding conversion friction.
What This Server Provides
This folder contains a production-minded MCP server scaffold with typed JSON tool responses, connector health metadata, OAuth-oriented configuration, rate-limit guards, stable error envelopes, and deterministic demo data until live vendor integrations are attached.
This server has received a production pass. It now includes local CRO intelligence models for funnels, page behavior, checkout friction, device gaps, product page performance, A/B test prioritization, and Core Web Vitals impact.
Connectors
- Google Analytics 4 API via OAuth scope
analytics.readonly; env prefixGA4 - Microsoft Clarity API via OAuth scope
insights.read; env prefixCLARITY - Hotjar API via OAuth scope
sites.read; env prefixHOTJAR - Shopify Analytics API via OAuth scope
read_analytics; env prefixSHOPIFY - Optimizely/VWO API via OAuth scope
experiments.read; env prefixEXPERIMENTS - Google PageSpeed API via OAuth scope
pagespeed.read; env prefixPAGESPEED
MCP Tools
get_conversion_funnel- Step drop-off and conversion gaps.get_rage_click_pages- Pages with frustration signals.get_product_page_performance- PDP metrics ranked by add-to-cart, revenue, or speed.get_checkout_friction_report- Checkout abandonment diagnostics.get_ab_test_recommendations- Next tests with expected impact.get_mobile_vs_desktop_gap- Device conversion delta.get_page_speed_impact- Core Web Vitals and revenue impact.
Current Local Capabilities
- Supports demo funnels for
home -> purchaseandpdp -> purchase. - Ranks rage-click and dead-click friction with a deterministic score.
- Scores product detail pages by add-to-cart, revenue, conversion, speed, or friction.
- Identifies checkout step abandonment and likely causes.
- Recommends A/B tests from observed page signals.
- Estimates mobile conversion gap and page speed conversion drag.
- Returns stable error envelopes for unsupported funnels, missing pages, and invalid sort fields.
Test
python -m pytest .\tests -q -p no:cacheprovider
Partial Platform Support
Customers only need to connect the analytics and CRO platforms they actually use. Missing GA4, Clarity, Hotjar, Shopify, experiments, or PageSpeed credentials do not prevent the server from starting or running local intelligence tools.
Use get_live_connector_status to see configured connectors. Use test_ga4_connection, test_shopify_analytics_connection, and test_pagespeed_connection for read-only live smoke checks when those platforms are connected.
Running Locally
powershell python -m venv .venv .\.venv\Scripts\pip install -e . .\.venv\Scripts\python -m first_party_data_cro_mcp.server
Claude Desktop Config
json { "mcpServers": { "first-party-data-cro": { "command": "python", "args": ["-m", "first_party_data_cro_mcp.server"], "cwd": "D:\CUSTOMS\EARNALL\MCP Servers\08-first-party-data-cro" } } }
Production Checklist
- Create OAuth 2.1 apps for each connector and set *_CLIENT_ID plus *_CLIENT_SECRET.
- Store refresh tokens in a secrets manager, never in repo files.
- Replace deterministic demo rows in server.py with API adapter calls.
- Persist raw snapshots and normalized warehouse tables for trend analysis.
- Add integration tests with recorded fixtures for every connector.
- Validate every tool in MCP Inspector before publishing.
- Deploy with a /health route through FastMCP streamable HTTP on Railway or Render.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file first_party_data_cro_mcp-0.1.1.tar.gz.
File metadata
- Download URL: first_party_data_cro_mcp-0.1.1.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aef36a2812cf5ef1befee1835031891edd8a92f157f6139328c5ad24f9aa3475
|
|
| MD5 |
6f4ea71bd741aeebb8cb566f8c2d5dea
|
|
| BLAKE2b-256 |
a17efaa41b7130cc3058626713bef3bce7345e7a57b8a8bc79cbdb366cb0f2b1
|
File details
Details for the file first_party_data_cro_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: first_party_data_cro_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6e27a31e981795c6bec491c0dca8c59d63c6a2cf8bd47a2fff7f249eece0e09
|
|
| MD5 |
fe2f6d189a79d3f2fc274daed9ee6733
|
|
| BLAKE2b-256 |
c8d9a3adc5422423bcfe2f95707a6d331b58275fb0b6bc9a6166576d3424c44e
|