How to Connect PostHog Analytics Remote MCP to Cursor

Add PostHog's remote MCP server to Cursor in about a minute.

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPBearer Tokenยทhttps://mcp.posthog.com/mcp

Step-by-step

  1. Open MCP settings
    Cursor โ†’ Settings โ†’ MCP, or edit ~/.cursor/mcp.json (global) / .cursor/mcp.json (project).
  2. Add the server
    Use the one-click deeplink above, or add "posthog": { "url": https://mcp.posthog.com/mcp } under mcpServers.
  3. Authorize
    Add an Authorization: Bearer <your-key> header in the server's config โ€” get the credential from https://posthog.com/docs/api.
  4. Verify
    Verify in the browser: paste https://mcp.posthog.com/mcp into remotemcp.net/inspector and run initialize + tools/list.

Troubleshooting OAuth / 401

  • A 401 Unauthorized on first connect is normal โ€” the endpoint is OAuth-protected; let Cursor finish the browser consent flow.
  • If the consent window never opens, remove and re-add the server, then retry.
  • Check the exact challenge at our OAuth debugger.
  • Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
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"
      }
    }
  }
}

Tools exposed by PostHog Analytics MCP (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.โ€”

Connect PostHog Analytics MCP to another client

Other servers for Cursor

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 toolsOnline261ms
Notion MCPNotion Labs

Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.

https://mcp.notion.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedHTTP + SSEOAuth 2.1๐Ÿ›ก๏ธ A+~606 tok18 toolsOnline21ms
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

Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.

https://mcp.figma.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿงฉ MCP App๐Ÿ›ก๏ธ A+~286 tok8 toolsOnline218ms
AWS KnowledgeAmazon Web Services

AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ€” connect and call tools immediately.

https://knowledge-mcp.global.api.aws
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPPublic ยท No Auth๐Ÿ›ก๏ธ A+~1896 tok5 toolsOnline155ms

Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.

https://mcp.stripe.com
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~1336 tok43 toolsOnline217ms