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 tools10 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 26, 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 1,147 tools across 75 categories (15 shown) and documents a CLI mode, the default for most clients, that exposes them through a single exec 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).
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
- Claude Code MCP Tasks: Long-Running Tools That Ask You ThingsClaude Code supports MCP Tasks and elicitations. What a tool call needs to become a task, what v2.1.319 changed for Bedrock and gateways, and what server authors change.
- Claude Security Continuous Scanning: Fix Tracking, API and MCPClaude Security now rescans repos as commits land, marks findings fixed when the fix ships, and adds an API, MCP connector and webhooks. Setup, limits and cost.
- MCP Client Features: Sampling, Elicitation and Roots ExplainedMCP sampling, elicitation and roots explained against the 2026-07-28 spec, with JSON-RPC examples and which of 24 clients support each one.
- REA vs leanrea: Skill or MCP for Reverse Engineering Agents?leanrea is an 8 KB skill pitched as a replacement for the REA (Reverse Engineer Anything) MCP server. What its benchmark shows, what it skips, and which to install.
- How to Publish a Plugin to the Claude Directory (Developer Portal Guide)Submit a plugin to the Claude directory: validate it, clear the security scan, publish, and read 90 days of usage analytics. Needs a paid plan.
- ChatGPT Plugin Extensions: Sidebar Apps, Panels and File EditorsChatGPT plugins can now add sidebar apps, side panels, file editors and native forms. How openai/ui entrypoints work, with type-checked code.
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 26, 2026.
Sources
Last verified against 10 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
- registry.modelcontextprotocol.iohttps://registry.modelcontextprotocol.io/v0/servers?search=posthog
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.