PostHog

● Active

com.posthog/mcp

Query analytics, manage feature flags and experiments, and investigate errors in PostHog.

Connect this server

One click to install, or copy the config below. Suits: Cursor · HTTP clients.

Add to Cursor Add to VS CodeClaude Desktop / Claude Code: paste the config below.

Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.posthog.com/mcp"
    }
  }
}
One line, from the terminal
Claude Code
claude mcp add --transport http mcp https://mcp.posthog.com/mcp
VS Code
code --add-mcp '{"name":"mcp","type":"http","url":"https://mcp.posthog.com/mcp"}'

Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in. Codex takes hosted servers in config.toml ([mcp_servers.<name>] url = …) rather than on the command line.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Data & Analytics
Version
1.0.0
Registry
active
Published
11/22/2026
Listed in:Official MCP registry ↗how this is checked

Is it safe? Is it maintained?

Serverdex check: Nov 22, 2026

Mostly fine: PostHog is maintained, hosted endpoint behind a sign-in.

Maintained
Active
Last commit today (Nov 22, 2026), 4,479 open issues.
Official registry
Active
Published as com.posthog/mcp in the official MCP registry, version 1.0.0.
Source
No licence found
Public repository, but GitHub reports no recognised licence (41,013 stars). Check the README before shipping it in a product.
Runs
Hosted by the publisher
Your client talks to mcp.posthog.com: prompts and tool arguments leave your machine for that host.
Credentials
Sign-in required
The hosted endpoint answered 401/403 to a credential-free call (checked Nov 22, 2026): it wants an API key or an OAuth login first.
Owner
Unclaimed
Nobody has claimed this page yet; the data above comes from the registry, GitHub and the live check.

Facts only: last commit and licence from GitHub, the entry's status from the official registry, credentials from the live check. Not a code audit — run the security scan on the endpoint yourself and see the status history.

Live check

checked Nov 22, 2026, 06:07 UTCStatus history & uptime →
● Needs sign-in

The endpoint is up but wants a key or an OAuth sign-in before the handshake, so its tools can only be read with an account.

Checked by Serverdex with a plain initialize + tools/list call to mcp.posthog.com/mcp, no credentials, about once a day. A failed check is never a removal.

On GitHub

read Nov 22, 2026
Stars
41k
Forks
3.7k
Last push
Nov 22, 2026
License
Other

Pythonab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics

From the README

Docs - Community - Roadmap - Why PostHog? - Changelog - Bug reports PostHog is your product's context layer PostHog ingests and stores your analytics, errors, replays, and business data so you and your agents can query and act on it. It gives you every tool you need to build a successful product, and captures the context agents need to diagnose problems, uncover opportunities, and ship fixes: Analytics • Product analytics: Autocapture or manually instrument event-based analytics to understand user behavior. Analyze your data with visualizations or SQL. • Web analytics: Monitor web traffic and user sessions with a GA-like dashboard. Track conversion, web vitals, and revenue. • Group analytics: Analyze multi-seat accounts and other groups of users. Session replay • Session replay: Watch real user sessions from your website or mobile app to diagnose issues and understand user behavior. • Replay Vision: Let AI watch your recordings for you and turn them into queryable observations. • Heatmaps: See where users click, scroll, and move on your site. Observability • Error tracking: Track errors, get alerts, and resolve issues to improve your product. • Logs: Ingest, search, and analyze log data alongside the rest of your product data. • Tracing: Follow distributed traces straight to the line of code that broke. Ship and iterate • Feature flags: Safely roll out features to select users or cohorts. • Experiments: Test changes and measure their statistical impact on goal metrics.…

Read the full README on GitHub →

Remotes

  • streamable-httphttps://mcp.posthog.com/mcp

The most-starred Data & Analytics servers in the index, with their live-check result.

ServerStarsLast pushLive check
PostHog MCP Server40,870Nov 2026Needs sign-in
Agent-Native Analytics7,735Nov 2026Needs sign-in
TradingMCP5,320Nov 2026Needs sign-in
Jitsu5,138Nov 2026Needs sign-in
MCP Server Chart4,419Aug 2026Local / not checked

PostHog: questions people ask

Is PostHog a remote or a local MCP server?
According to its entry in the official MCP registry, PostHog ships as a hosted endpoint (streamable-http) that your client connects to by URL.
Does PostHog need an API key or a sign-in?
Yes. Its hosted endpoint answered the credential-free Serverdex live check with HTTP 401/403 on Nov 22, 2026: it expects an API key in a header or an OAuth login before it lists its tools.
Is PostHog safe to use?
Mostly fine: PostHog is maintained, hosted endpoint behind a sign-in. In detail — maintained: Active; official registry: Active; source: No licence found; runs: Hosted by the publisher; credentials: Sign-in required. Serverdex check of Nov 22, 2026. This is a reading of the repository, the registry entry and the live check, not a code audit; run the Serverdex security scan on the endpoint before trusting it with real data.
Is PostHog still maintained?
Active: the repository's last commit today. Last push Nov 22, 2026, 41,013 GitHub stars, Other licence. Read from GitHub on Nov 22, 2026.
How do I add PostHog to Claude, Cursor or VS Code?
Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
  1. PostHog MCP ServerOfficial PostHog MCP Server for product analytics, feature flags, experiments, and more.★ 41k
Browse all Data & Analytics →

Add the badge to your site

Show visitors that PostHog is listed here — it’s also the link we check for a free listing.

PostHog — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/com-posthog-mcp?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="PostHog — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![PostHog — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/com-posthog-mcp?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.

Add to CursorAdd to VS CodeOpen in Claude Code

Install buttons — for your README

[![Add to Cursor](https://serverdex.io/brand/install-cursor.svg)](https://serverdex.io/install/cursor/com-posthog-mcp) [![Add to VS Code](https://serverdex.io/brand/install-vscode.svg)](https://serverdex.io/install/vscode/com-posthog-mcp) [![Open in Claude Code](https://serverdex.io/brand/install-claude-code.svg)](https://serverdex.io/install/claude-code/com-posthog-mcp)

One click opens Cursor or VS Code with this server's config prefilled; the Claude Code button lands on the one-line command. The links point at Serverdex, so when your config changes the buttons keep working.

Install buttons — HTML for your docs

<a href="https://serverdex.io/install/cursor/com-posthog-mcp"><img src="https://serverdex.io/brand/install-cursor.svg" alt="Add to Cursor — via Serverdex" width="140" height="28"></a>
<a href="https://serverdex.io/install/vscode/com-posthog-mcp"><img src="https://serverdex.io/brand/install-vscode.svg" alt="Add to VS Code — via Serverdex" width="147" height="28"></a>
<a href="https://serverdex.io/install/claude-code/com-posthog-mcp"><img src="https://serverdex.io/brand/install-claude-code.svg" alt="Open in Claude Code — via Serverdex" width="180" height="28"></a>

Same buttons as plain links for a docs page or website.

Prefer a live badge with the score, stars and live check? Score badge (links to a page that explains the number and back to this listing).