PostHog
 · MCP Server

Connect PostHog to Your AI Agent

One MCP connection. Full product analytics context. No more dashboard clicking — just ask.

46K+ metrics · Read & Write access · 500+ platforms · <60s setup
📈 Read

Read: Instant Answers from PostHog

Stop building insight queries and funnel reports manually. Ask your AI agent to surface user behavior trends, conversion drop-offs, feature adoption rates, and session replay insights — across any event, cohort, or time range.

Your AI agent reads harmonized data across 500+ platforms. "Cost" in Google Ads and "spend" in Meta Ads resolve to the same field automatically.

Example prompts
"Show anomalies across all accounts" 2h → 40s
"CPL in New York vs. California?" 1h → 30s
"ROAS by campaign type, last 30 days" 45m → 15s
Works with Claude ChatGPT Cursor +5
Write actions
"Launch A/B test, $5K budget" 5 days → 20m
"Shift 20% of Display to PMax" 2h → 1m
"Pause all ad groups with CPA > $50" 30m → 10s
🛡 Every action logged · Fully reversible · SOC 2 certified
🚀 Write

Write: Automate PostHog Configuration

Manage feature flags, create annotations, and update cohorts without touching the PostHog UI. Your AI agent handles configuration changes from a single prompt — tested and documented.

250+ governance rules enforce naming conventions, budget limits, and KPI thresholds. SOC 2 Type II certified.

⚠️ Monitor

Monitor: Catch Product Regressions Before Users Do

Set AI-powered watches on key product metrics, event volumes, and conversion rates. Get context-aware alerts when funnels degrade, feature adoption drops, or critical events spike unexpectedly.

Automated weekly reports, anomaly flagging, and budget alerts — all from a single conversation. No more morning check-ins across 5 dashboards.

Monitor prompts
"Flag ad groups over 120% budget" 3h → 1m
"Weekly report: spend, CPA, anomalies" 3h → auto
"Which creatives are fatiguing?" 2h → 30s
Alerts sent to Slack, email, or your AI agent
💡
Ideate
🚀
Launch
📈
Measure
🔍
Analyze
📝
Report
🔄
Iterate
One conversation. All six phases. Every platform.
🔄 Full Cycle

The Closed Loop: Read → Decide → Write → Monitor

Manage feature flags, create annotations, and update cohorts without touching the PostHog UI. Your AI agent handles configuration changes from a single prompt — tested and documented.

Every phase runs through the same MCP connection. One protocol, all platforms, full governance. No switching between tools.

Challenge 1

Funnel Analysis Requires Too Many Manual Steps

THE PROBLEM

Building a funnel in PostHog means selecting events, setting the time window, choosing cohorts, waiting for the query to run, and then exporting results to share with the team. Iterating on funnel definitions — changing a step, adjusting the window — resets the whole process.

HOW MCP SOLVES IT

Ask your AI agent to analyze any funnel in natural language. Describe the steps you care about, and the agent queries PostHog, returns conversion rates per step, and surfaces the highest drop-off point — in one interaction.

Try asking
"Show ROAS across all 120 accounts"
Answer in seconds
All data sources, one query
Try asking
"What's my CPL in New York vs. California?"
🔍
Full detail preserved
No data loss on export
Challenge 2

Feature Flag Impact Is Invisible Without Manual Comparison

THE PROBLEM

After rolling out a feature flag, teams need to compare behavior between control and treatment groups — conversion rates, engagement, retention. Setting up that comparison in PostHog requires creating separate cohorts, building parallel insight queries, and manually comparing results. It takes hours per experiment.

HOW MCP SOLVES IT

Ask your AI agent to run a feature flag impact analysis in one prompt. It segments users by flag exposure, computes the relevant metrics for both groups, and returns a statistically meaningful comparison.

Challenge 3

Connecting Product Events to Business Outcomes Requires SQL

THE PROBLEM

Answering 'which product behaviors predict conversion to paid?' requires joining PostHog event data with CRM or billing data — a task that demands data engineering time, SQL expertise, and pipeline maintenance. Most product teams can't self-serve this question.

HOW MCP SOLVES IT

Improvado MCP connects PostHog alongside your CRM and billing data. Ask a single question that spans product events and business outcomes. The agent handles the join and returns the answer without any SQL or pipeline work.

Try asking
"PMax vs. Search ROAS for Q1?"
⚖️
Unified data model
Compare anything side by side
Agency CEO
Portfolio health. Client risk. Revenue signals.
Media Strategist
70% strategy, not 70% ops. Auto campaign QA.
Marketing Analyst
Zero wrangling. Cross-platform. AI narratives.
Account Manager
QBR decks auto-generated. Call prep in 30s.
Creative Director
Performance-to-brief. Predict winners before spend.
👥 Teams

One Framework. Five Roles. Zero Setup.

Same MCP connection, different workflows for every team member. Agency CEOs get portfolio health. Media Strategists get campaign QA. Analysts get cross-platform reports. Account Managers get auto-generated QBR decks. Creative Directors get performance-based briefs.

Each role asks in natural language. The MCP server handles the complexity — rate limits, auth, schema normalization, governance — behind the scenes.

Frequently Asked Questions

What is PostHog MCP?
+

PostHog MCP is a Model Context Protocol server that connects your PostHog product analytics data to AI agents like Claude, ChatGPT, and Gemini. It lets you query events, funnels, cohorts, feature flags, and session data in natural language — without building PostHog insights manually.

Which PostHog data can I access through the MCP server?
+

Events, persons, sessions, funnels, cohorts, feature flags, experiments, annotations, insights, and dashboards. Both raw event data and computed metrics are accessible through the AI agent.

Can the AI agent modify PostHog settings or only read analytics?
+

Both. Read operations cover querying events, funnels, cohorts, and feature flag states. Write operations include enabling/disabling feature flags, updating rollout percentages, creating cohorts, and adding annotations. Permission scope is controlled by your PostHog API key.

Does this work across multiple PostHog projects?
+

Yes. You can configure access to multiple PostHog projects and query them in a single conversation. This is particularly useful for teams running separate projects per environment (staging vs production) or per product line.

Is my PostHog data secure through the MCP server?
+

Yes. Improvado stores all PostHog API keys in an encrypted vault certified to SOC 2 Type II. The AI model never has direct access to credentials — requests flow through Improvado's secure proxy with prompt injection protection built in.

How quickly can I set this up?
+

Under 60 seconds. Add the MCP server URL to your Claude Desktop or Cursor config, provide your PostHog project API key and host, and start querying. No additional infrastructure required.

What is PostHog MCP?
PostHog MCP is a Model Context Protocol server that connects your PostHog product analytics data to AI agents like Claude, ChatGPT, and Gemini. It lets you query events, funnels, cohorts, feature flags, and session data in natural language — without building PostHog insights manually.
Which PostHog data can I access through the MCP server?
Events, persons, sessions, funnels, cohorts, feature flags, experiments, annotations, insights, and dashboards. Both raw event data and computed metrics are accessible through the AI agent.
Can the AI agent modify PostHog settings or only read analytics?
Both. Read operations cover querying events, funnels, cohorts, and feature flag states. Write operations include enabling/disabling feature flags, updating rollout percentages, creating cohorts, and adding annotations. Permission scope is controlled by your PostHog API key.
Does this work across multiple PostHog projects?
Yes. You can configure access to multiple PostHog projects and query them in a single conversation. This is particularly useful for teams running separate projects per environment (staging vs production) or per product line.
Is my PostHog data secure through the MCP server?
Yes. Improvado stores all PostHog API keys in an encrypted vault certified to SOC 2 Type II. The AI model never has direct access to credentials — requests flow through Improvado's secure proxy with prompt injection protection built in.
How quickly can I set this up?
Under 60 seconds. Add the MCP server URL to your Claude Desktop or Cursor config, provide your PostHog project API key and host, and start querying. No additional infrastructure required.

Stop Reporting. Start Executing.

Connect your data to an AI agent in under 60 seconds. The closed loop starts with one conversation.

SOC 2 Type II
GDPR
500+ Platforms
46K+ Metrics