Analytics - official PostHog server
PostHog MCP server
Free hosted MCP server that lets AI agents read and write across PostHog products, including feature flags, experiments, error tracking, product analytics queries, SQL, logs, surveys and CDP destinations. PostHog hosts it at https://mcp.posthog.com/mcp with OAuth or API key auth.
Last verified 15 tools9 sources
Install
Claude Code
About Claude Codeclaude mcp add --transport http posthog https://mcp.posthog.com/mcp -s userCodex
About Codexcodex mcp add posthog --url https://mcp.posthog.com/mcpCursor
About Cursor{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}VS Code
{
"servers": {
"posthog": {
"type": "http",
"url": "https://mcp.posthog.com/mcp"
}
}
}Tools
execute-sql- Execute an SQL query.
query-trends- Run a trends query.
query-funnel- Run a funnel query.
insight-query- Run a saved insight's query and return results.
insights-list- Get all insights.
read-data-schema- Explore the user's events, actions, properties, and property values.
feature-flag-get-all- Get all feature flags.
create-feature-flag- Create feature flag.
experiment-create- Create experiment.
error-tracking-issues-partial-update- Update error tracking issue.
query-logs- Query logs.
dashboard-create- Create dashboard.
surveys-get-all- List surveys in the project (server-side search + filters).
switch-project- Switch the active PostHog project for subsequent tool calls.
docs-search- Search documentation.
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- OAuth is the recommended path; the auth server routes to the US or EU region automatically.
- If a client lacks OAuth, a personal API key with the MCP Server preset can be sent as Authorization: Bearer.
- The fastest documented install is the PostHog Wizard (npx @posthog/wizard mcp add), which supports Claude Code, Cursor, Codex, VS Code, Zed and others; PostHog also ships Claude Code, Codex and Cursor plugins.
- Connecting is free, but some tools use LLMs internally, are billed as PostHog AI spend, and require AI data processing to be enabled.
- The tools page lists hundreds of tools across ~70 categories and documents an exec CLI mode that exposes them through a single tool; a tools query parameter scopes a session to a subset.
- The official registry entry also lists an SSE endpoint at https://mcp.posthog.com/sse, which the docs pages do not mention.
- Source lives in the PostHog monorepo (MIT Expat outside ee/; services/mcp package.json declares MIT); no separate MCP releases are published.
More MCP servers for analytics
- Adobe
Adobe Analytics MCP server
Adobe-hosted MCP server that lets LLM clients discover report suites, dimensions, metrics and segments in Adobe Analytics and run ranked or trended reports. With full access it can also create or update segments, calculated metrics, date ranges and Workspace projects.
Transport: Streamable HTTPAuth: OAuth - AdobeStatus: Beta
Adobe Target MCP server
Adobe-hosted MCP server exposing 62 tools to inspect, report on and manage Adobe Target A/B and Experience Targeting activities, offers, audiences, mboxes, at.js settings and Recommendations configuration.
Transport: Streamable HTTPAuth: OAuth - Adobe
Customer Journey Analytics MCP server
Adobe-hosted MCP server for Customer Journey Analytics that lets LLM clients discover data views, dimensions, metrics, segments and audiences and run reports. With full access it can create or update segments, calculated metrics, date ranges, projects and audiences.
Transport: Streamable HTTPAuth: OAuth - Algolia
Algolia Productivity MCP server
Hosted, read-only MCP server that lets people in an organization search their Algolia indices and query search analytics (top searches, no-result queries, click signals) across the applications their own Algolia permissions allow.
Transport: Streamable HTTPAuth: OAuth - AmplitudeStatus: GA
Amplitude MCP server
Hosted MCP server that exposes Amplitude analytics, taxonomy and content as tools, so AI clients can query data and read or edit charts, dashboards, notebooks, experiments, feature flags, cohorts and tracking plans with the user's permissions.
Transport: Streamable HTTPAuth: OAuth - Bitly
Bitly MCP server
Hosted MCP server that gives AI agents access to Bitly short links, QR Codes, Bitly Sites (link-in-bio pages), custom domains, bulk uploads, exports and click and scan analytics.
Transport: Streamable HTTPAuth: OAuth or API key
Related reading
- What's New in Mastra (Late 2026): Harness, AgentController GA, Eval Gates and MCP 2.xMastra in late 2026: goals, schedules, signals, AgentController GA, eval gates and MCP 2.x, with type-checked TypeScript examples and honest tradeoffs.
- MCP vs A2A vs Function Calling: Which Layer Does What in 2026MCP vs A2A vs function calling compared on the 2026-07-28 MCP spec and A2A 1.0: what each protocol does, where they overlap, and how to stack them.
- Pydantic AI V2 in Late 2026: Capabilities, Graphs, Evals and MCPPydantic AI V2 explained through v2.57.0: capabilities, typed output, Conversation storage, caching, graphs, evals, MCP Apps and Logfire, with checked code.
- Reverse Engineer Anything (REA): What the MCP Server Does and Where the Line IsREA (Reverse Engineer Anything) is an MIT-licensed MCP server that lets Claude Code, Codex or Cursor inspect binaries, Electron apps and APKs. How to try it.
- Claude Opus 5.5 Built a Browser 3D World: The Higgsfield MCP WorkflowClaude Opus 5.5 and Higgsfield MCP built an interactive 3D Library of Alexandria in the browser. The verified connector setup and where the workflow holds up.
- Pi 1.0 Release Guide: MCP, Codemode and Pi DurablePi 1.0 adds built-in MCP through Codemode, a fullscreen TUI by default and Pi Durable. What changed, how to install it, and what breaks on upgrade.
FAQ
What does the PostHog MCP server do?
Free hosted MCP server that lets AI agents read and write across PostHog products, including feature flags, experiments, error tracking, product analytics queries, SQL, logs, surveys and CDP destinations. The vendor documents 15 tools, including execute-sql, query-trends, query-funnel and insight-query.
How do I add the PostHog MCP server to Claude Code?
Run claude mcp add --transport http posthog https://mcp.posthog.com/mcp -s user, copied from PostHog's docs. This page also has snippets for Codex, Cursor and VS Code.
Does the PostHog MCP server need authentication?
Yes, OAuth or API key. Transport: Streamable HTTP. Status: GA, last checked October 17, 2026.
Sources
Last verified against 9 PostHog pages, then re-checked independently.
- posthog.comhttps://posthog.com/docs/model-context-protocol
- posthog.comhttps://posthog.com/docs/model-context-protocol/claude-code
- posthog.comhttps://posthog.com/docs/model-context-protocol/codex
- posthog.comhttps://posthog.com/docs/model-context-protocol/cursor
- posthog.comhttps://posthog.com/docs/model-context-protocol/vscode
- posthog.comhttps://posthog.com/docs/model-context-protocol/tools
- posthog.comhttps://posthog.com/docs/model-context-protocol/faq
- raw.githubusercontent.comhttps://raw.githubusercontent.com/PostHog/posthog/master/LICENSE
- raw.githubusercontent.comhttps://raw.githubusercontent.com/PostHog/posthog/master/services/mcp/package.json
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.