Skip to main content

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 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.

Project details


Download files

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

Source Distribution

first_party_data_cro_mcp-0.1.1.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

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

first_party_data_cro_mcp-0.1.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

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

Hashes for first_party_data_cro_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aef36a2812cf5ef1befee1835031891edd8a92f157f6139328c5ad24f9aa3475
MD5 6f4ea71bd741aeebb8cb566f8c2d5dea
BLAKE2b-256 a17efaa41b7130cc3058626713bef3bce7345e7a57b8a8bc79cbdb366cb0f2b1

See more details on using hashes here.

File details

Details for the file first_party_data_cro_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for first_party_data_cro_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6e27a31e981795c6bec491c0dca8c59d63c6a2cf8bd47a2fff7f249eece0e09
MD5 fe2f6d189a79d3f2fc274daed9ee6733
BLAKE2b-256 c8d9a3adc5422423bcfe2f95707a6d331b58275fb0b6bc9a6166576d3424c44e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page