PostHog Official Remote MCP Server

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPBearer Token๐Ÿ›ก๏ธ A+~1182 tok39 toolsยทOnline12msยท30d uptime: 100%ยทLast checked 12m ago

PostHog's hosted MCP (mcp.posthog.com/mcp) exposes analytics queries, insights, feature flags, error tracking and HogQL to agents โ€” attach a PostHog API key as Bearer token.

https://mcp.posthog.com/mcp
Provider
PostHog โ†—
Source
https://github.com/PostHog/posthog โ†—
Categories
๐Ÿ› ๏ธ Developer Tools & Gitโ˜๏ธ Cloud, Infrastructure & DevOps
ไธญๆ–‡็ฎ€ไป‹

PostHog ๅฎ˜ๆ–น่ฟœ็จ‹ MCP ๆœๅŠกๅ™จใ€‚ไฝฟ็”จไธชไบบ API Key๏ผŒAI ไปฃ็†ๅฏๆŸฅ่ฏขไบงๅ“ๅˆ†ๆžใ€ๆดžๅฏŸใ€Feature Flag ไธŽ HogQL ๆ•ฐๆฎใ€‚

Maintainer of PostHog Analytics? Claim or update this listing โ†’

Streamable HTTPhttps://mcp.posthog.com/mcp

๐Ÿ”’ Client-side only โ€” never leaves your browser.

Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "posthog": {
      "url": "https://mcp.posthog.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

๐Ÿงฐ PostHog Analytics MCP Tools & Schema (39)

ToolSafetyDescriptionParameters
organizations-get
~30 tok
๐ŸŸข ReadList PostHog organizations.โ€”
projects-get
~28 tok
๐ŸŸข ReadList PostHog projects.โ€”
project-get
~30 tok
๐ŸŸข ReadGet details of a PostHog project.โ€”
project-property-definitions
~36 tok
๐ŸŸข ReadList property definitions of a project.โ€”
docs-search
~29 tok
๐ŸŸข ReadSearch PostHog documentation.โ€”
query-run
~31 tok
๐ŸŸข ReadRun a HogQL query against project data.โ€”
list-errors
~32 tok
๐ŸŸข ReadList captured error-tracking exceptions.โ€”
error-details
~33 tok
๐ŸŸข ReadGet details of an error-tracking exception.โ€”
dashboards-get-all
~30 tok
๐ŸŸข ReadList PostHog dashboards.โ€”
dashboard-get
~29 tok
๐ŸŸข ReadGet details of a dashboard.โ€”
dashboard-create
~30 tok
๐ŸŸ  WriteCreate a PostHog dashboard.โ€”
dashboard-update
~28 tok
๐ŸŸ  WriteUpdate a dashboard.โ€”
dashboard-delete
~28 tok
๐Ÿ”ด DestructiveDelete a dashboard.โ€”
dashboard-reorder-tiles
~31 tok
๐ŸŸ  WriteReorder dashboard tiles.โ€”
insights-get-all
~29 tok
๐ŸŸข ReadList PostHog insights.โ€”
insight-get
~29 tok
๐ŸŸข ReadGet details of an insight.โ€”
insight-create-from-query
~33 tok
๐ŸŸ  WriteCreate an insight from a query.โ€”
insight-update
~30 tok
๐ŸŸ  WriteUpdate an existing insight.โ€”
insight-delete
~27 tok
๐Ÿ”ด DestructiveDelete an insight.โ€”
insight-query
~32 tok
๐ŸŸข ReadRun an insight query and get results.โ€”
experiments-get-all
~31 tok
๐ŸŸข ReadList A/B test experiments.โ€”
experiment-get
~30 tok
๐ŸŸข ReadGet details of an experiment.โ€”
experiment-create
~29 tok
๐ŸŸ  WriteCreate an experiment.โ€”
experiment-update
~29 tok
๐ŸŸ  WriteUpdate an experiment.โ€”
experiment-delete
~29 tok
๐Ÿ”ด DestructiveDelete an experiment.โ€”
experiment-results-get
~35 tok
๐ŸŸข ReadGet statistical results of an experiment.โ€”
feature-flag-get-all
~29 tok
๐ŸŸข ReadList feature flags.โ€”
feature-flag-get-definition
~34 tok
๐ŸŸข ReadGet a feature flag definition.โ€”
feature-flag-create
~30 tok
๐ŸŸ  WriteCreate a feature flag.โ€”
feature-flag-update
~30 tok
๐ŸŸ  WriteUpdate a feature flag.โ€”
feature-flag-delete
~30 tok
๐Ÿ”ด DestructiveDelete a feature flag.โ€”
surveys-get-all
~28 tok
๐ŸŸข ReadList PostHog surveys.โ€”
survey-create
~27 tok
๐ŸŸ  WriteCreate a survey.โ€”
survey-update
~27 tok
๐ŸŸ  WriteUpdate a survey.โ€”
survey-delete
~27 tok
๐Ÿ”ด DestructiveDelete a survey.โ€”
llm-get-costs
~31 tok
๐ŸŸข ReadGet LLM observability cost metrics.โ€”
cohorts-get-all
~26 tok
๐ŸŸข ReadList cohorts.โ€”
cohort-get
~28 tok
๐ŸŸข ReadGet details of a cohort.โ€”
cohort-create
~27 tok
๐ŸŸ  WriteCreate a cohort.โ€”

๐Ÿ›ก๏ธ Security, Quality & Context Token Audit

๐Ÿ›ก๏ธ Grade A+Context tax: ~1182 tokens injected into every system prompt by this serverโ€™s 39 tools

Every tool definition (name + description + input schema) is injected into your LLMโ€™s context on every request โ€” Estimate per-call LLM token cost โ†’

  • No prompt-injection or hidden-character anomalies detected in tool descriptions
  • Streamable HTTP primary endpoint (current 2025-03-26 transport)
  • Static credential (Bearer token / API key) โ€” protect it in client config
  • Official first-party endpoint operated by the vendor
  • Manually verified by RemoteMCP.net

๐Ÿ” OAuth 2.1 & Security

Auth type
Bearer Token
Dynamic Client Registration
โ€”
PKCE S256
โ€”
Protected resource metadata
https://mcp.posthog.com/.well-known/oauth-protected-resource (expected location)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ Recommended Agent Skills

๐Ÿ“– PostHog Analytics MCP Endpoint Overview & Security Guide

PostHog Analytics MCP โ€” Remote MCP Server

PostHog's remote MCP is one of the most-used product-analytics endpoints โ€” agents can list and run insights, execute HogQL over event tables, check feature flag state and pull error-tracking summaries with a single API key.

Official PostHog Analytics MCP Endpoint & Transport Architecture

  • Endpoint URL: https://mcp.posthog.com/mcp
  • Transport: Streamable HTTP

Streamable HTTP is the current MCP transport (2025-03-26 spec): a single URL accepts JSON-RPC POSTs and may stream responses over SSE, so one endpoint serves both simple and streaming workloads. PostHog Analytics MCP does not publish a separate legacy SSE endpoint, so your client must speak Streamable HTTP.

Authentication, Scopes & Permission Boundaries

PostHog Analytics MCP uses bearer-token authentication. Create an access token in your PostHog account settings, then send it as Authorization: Bearer <token>. No OAuth redirect flow is involved.

Of the 6 cataloged tools, 5 are read-only and 1 can write or mutate state (create resources, run SQL, post messages). Grant access only to the accounts and projects you intend agents to act on, and prefer scoped credentials or a dedicated workspace where the provider supports them.

Common Troubleshooting & Connection Tips

  • 401/403 responses โ€” your credential is missing or rejected. Regenerate the key/token and make sure it is sent as an Authorization: Bearer header on every request, including the initialize call.
  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.
  • Use a personal API key from PostHog Settings โ†’ Personal API Keys.
  • HogQL access means the agent can read any event data in the project โ€” use a scoped key.

๐Ÿš€ How to Connect

  1. Copy the PostHog Analytics MCP endpoint URL
    The remote endpoint is https://mcp.posthog.com/mcp.
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport http posthog https://mcp.posthog.com/mcp. Cursor: add "posthog": { "url": "https://mcp.posthog.com/mcp" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Configure your credential
    Generate an access token at https://posthog.com/docs/api and add an Authorization: Bearer <token> header to the server's config (supported by Cursor, VS Code, Windsurf and mcp-remote --header).
  4. Verify with the online inspector
    Paste https://mcp.posthog.com/mcp into remotemcp.net/inspector, run initialize and tools/list, and confirm PostHog Analytics MCP's 6 tools respond.

โ“ FAQ

What is the PostHog Analytics MCP remote MCP endpoint?

The primary endpoint is https://mcp.posthog.com/mcp. It is an official first-party server operated by PostHog, speaking the Streamable HTTP transport.

How do I authenticate with PostHog Analytics MCP?

PostHog Analytics MCP expects a credential sent as an Authorization: Bearer header. Generate the token in your PostHog account and add it to your client's headers.

I'm getting a 401 Unauthorized from PostHog Analytics MCP โ€” what's wrong?

Your Bearer credential is missing, malformed or expired. Confirm it is attached to every request โ€” including initialize โ€” and that no proxy is stripping the Authorization header.

Which MCP clients work with PostHog Analytics MCP?

Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http posthog https://mcp.posthog.com/mcp`), VS Code Copilot, ChatGPT connectors, Windsurf, Kiro (`~/.kiro/settings/mcp.json`), and Claude Desktop via the `mcp-remote` bridge.

What tools does PostHog Analytics MCP expose?

6 tools are cataloged in this directory โ€” including `list_insights`, `get_insight_data`, `query_hogql` and more. Use our online inspector to fetch the live tool list straight from the endpoint.

๐Ÿ”— Connect Guides

๐Ÿ“› Embed Status Badge in README

PostHog Analytics MCP status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/posthog.svg)](https://remotemcp.net/servers/posthog)
PostHog Analytics MCP inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/posthog.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fmcp.posthog.com%2Fmcp)
PostHog Analytics MCP audit grade badge
[![MCP Audit Grade](https://remotemcp.net/api/badge/grade/posthog.svg)](https://remotemcp.net/servers/posthog)
PostHog Analytics MCP context tax badge
[![Context Tax](https://remotemcp.net/api/badge/tokens/posthog.svg)](https://remotemcp.net/servers/posthog)

Related Servers

GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.

https://api.githubcopilot.com/mcp/
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~3096 tok92 toolsOnline310ms
Linear MCPLinear Orbit Inc.

Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.

https://mcp.linear.app/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.1๐Ÿ›ก๏ธ A+~899 tok30 toolsOnline8ms
Claude SkillsClaudeSkills.club

Claude Skills's hosted remote MCP server. ClaudeSkills.club's public MCP lets agents search and pull from a catalog of 90,000+ Agent Skills (SKILL.md) โ€” workflow specs, safety scores and one-line install instructions. It is public and unauthenticated โ€” connect and call tools immediately.

https://claudeskills.club/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPPublic ยท No Auth๐Ÿ›ก๏ธ A+~344 tok3 toolsOnline125ms
GitLabGitLab

GitLab's hosted remote MCP server. GitLab's official MCP server gives agents first-party access to repositories, merge requests, issues, pipelines and code search across gitlab.com and self-managed instances. It is protected by OAuth 2.1; compliant clients complete a browser consent flow with PKCE.

https://gitlab.com/api/v4/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~659 tok22 toolsOnline176ms