Skip to main content

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 prefix GA4
  • Microsoft Clarity API via OAuth scope insights.read; env prefix CLARITY
  • Hotjar API via OAuth scope sites.read; env prefix HOTJAR
  • Shopify Analytics API via OAuth scope read_analytics; env prefix SHOPIFY
  • Optimizely/VWO API via OAuth scope experiments.read; env prefix EXPERIMENTS
  • Google PageSpeed API via OAuth scope pagespeed.read; env prefix PAGESPEED

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 -> purchase and pdp -> 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.

Metadata

Release files for first-party-data-cro-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for first-party-data-cro-mcp 0.1.1
File Size Uploaded Provenance Actions
first_party_data_cro_mcp-0.1.1.tar.gz 19.8 kB Without provenance Details for first_party_data_cro_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for first-party-data-cro-mcp 0.1.1
File Interpreter ABI Platform Actions
first_party_data_cro_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for first_party_data_cro_mcp-0.1.1-py3-none-any.whl

Total release size: 39.8 kB

Release files / first_party_data_cro_mcp-0.1.1.tar.gz

Download URL first_party_data_cro_mcp-0.1.1.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
aef36a2812cf5ef1befee1835031891edd8a92f157f6139328c5ad24f9aa3475
BLAKE2b-256 checksum
How to use checksums
a17efaa41b7130cc3058626713bef3bce7345e7a57b8a8bc79cbdb366cb0f2b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / first_party_data_cro_mcp-0.1.1-py3-none-any.whl

Download URL first_party_data_cro_mcp-0.1.1-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6e27a31e981795c6bec491c0dca8c59d63c6a2cf8bd47a2fff7f249eece0e09
BLAKE2b-256 checksum
How to use checksums
c8d9a3adc5422423bcfe2f95707a6d331b58275fb0b6bc9a6166576d3424c44e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for first-party-data-cro-mcp 0.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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