PyMC Marketing MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PyMC Marketing MCPfit an MMM to my data and analyze channel contributions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PyMC Marketing MCP
LLMs can explain marketing data. They should not invent marketing science.
PyMC Marketing MCP gives MCP-compatible agents a controlled interface to Bayesian Marketing Mix Modeling with PyMC-Marketing. It handles dataset checks, MMM fitting, diagnostic gating, posterior contribution analysis, total and marginal iROAS, counterfactual spend scenarios, and constrained budget allocation while keeping the statistical computation inside PyMC-Marketing.
The core boundary is simple: the agent frames the business question and explains evidence. PyMC-Marketing computes the statistical quantities. The MCP layer validates inputs, persists artifacts, applies decision gates, reports uncertainty, and records provenance.
User question
-> AI agent
-> MCP tool
-> dataset / model validation
-> PyMC-Marketing
-> posterior evidence
-> decision gate
-> structured result + uncertainty + provenance
-> AI explanationVersion 0.3.0 Release
Version 0.3.0 delivers comprehensive Bayesian statistical verification, model lineage, lift test calibration, cross-validation, and multi-core accelerated testing:
Time-Slice Cross-Validation:
cross_validate_mmmevaluates out-of-sample predictive accuracy across temporal folds with PyMC-Marketing'sTimeSliceCrossValidator.Prior Sensitivity Analysis:
evaluate_prior_sensitivityquantifies channel rank shifts under alternative adstock and saturation priors.Lift Test Calibration:
calibrate_mmmincorporates real or synthetic experimental incrementality lift tests directly into model likelihood with full lineage tracking.Extrapolation Risk Guard: Spend scenarios or optimization allocations exceeding 1.5x historical 95th percentile spend automatically trigger actionable warnings.
Multi-Core Accelerated Testing: Pytest suite runs concurrently via
pytest-xdist, completing 46 unit, integration, and full Bayesian sampling tests in ~50 seconds.Official MCP 2.0.0 Transports: Fully tested stdio and Streamable HTTP clients with dynamic port discovery and structured error envelopes.
See docs/DECISION-INTEGRITY.md and docs/VERIFICATION-MATRIX.md for details.
Related MCP server: simba-mcp
Current compatibility
Python 3.12 to 3.13
PyMC-Marketing
>=1.0.0PyMC
>=6.0.0ArviZ
>=0.21,<2.0Official MCP Python SDK v2 (
mcp>=2.0.0)NetCDF4 storage via
h5netcdfandh5pyCSV and Parquet datasets
SQLite metadata and NetCDF model artifacts for local deployment
Install
uv sync --extra dev
uv run pytest -n auto -vRun with stdio
uv run marketing-mcp --transport stdioRun with Streamable HTTP
uv run marketing-mcp --transport streamable-http --host 127.0.0.1 --port 8000
# endpoint: http://127.0.0.1:8000/mcpDocker
docker compose up --buildCore flow
register_datasetinspect_datasetvalidate_datasetfit_mmmdiagnose_mmmget_channel_contributionsget_incremental_roasget_response_curvessimulate_budgetoptimize_budgetcross_validate_mmmevaluate_prior_sensitivitycalibrate_mmmcompare_modelsarchive_modelExplain the posterior result, diagnostics, assumptions, and provenance
Synthetic demo
uv run marketing-mcp-demo --fastRepository map
src/marketing_mcp/
mcp/ protocol tools + resources
services/ application workflows (modeling, dataset, decision, diagnostics)
domain/ validation, diagnostics engine & gate, allocation & extrapolation
adapters/ PyMC-Marketing 1.0.0 boundary
storage/ SQLite metadata + NetCDF artifacts
schemas/ typed Pydantic contracts
tests/
statistical/ real NUTS sampling, panel MMM, calibration, cross-validation
integration/ MCP stdio/HTTP protocol, persistence lifecycle
unit/ domain logic, failure datasets, security guardrails
docs/ architecture, contracts, safety, security, verification matrixThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Calling Protocol server that enables LLMs to perform rigorous Bayesian analysis and probabilistic reasoning, including inference, model comparison, and predictive modeling with uncertainty quantification.4MIT
- -licenseNot gradedqualityBmaintenanceConnects AI assistants to marketing mix models, enabling natural language data upload, performance modeling, budget optimization, and scenario testing.
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform statistical process control calculations using validated, deterministic tools such as control charts, capability analysis, and tolerance intervals.3MIT
- AlicenseAqualityBmaintenanceDeterministic time-series statistics for AI agents. This MCP server gives any LLM agent unit-tested statistical tools — anomaly detection, changepoint detection, seasonal decomposition, stationarity/trend tests, data-quality audits, baseline forecasts — with schema-validated structured output and no arbitrary code execution.17MIT
Related MCP Connectors
AI marketing agent for Google Ads, Meta, GA4, TikTok, LinkedIn, Shopify, HubSpot and more.
The statistical analyst in your AI chat — validated, citable, re-runnable analysis of your data.
Deterministic what-if & scenario simulation for AI agents: projections, sensitivity & break-even.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/imMamdouhaboammar/pymc-marketing-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server