Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/中文
Sign inSign up
Home/Servers/PostHog MCP Server

PostHog MCP Server

by io.github.PostHog

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

Power your agent

Add this server

The publisher's own URL. Not a PlugMCP endpoint.

Server URL
https://mcp.posthog.com/mcp
Provider
Add in Claude

Claude opens with the name and URL filled in. You still confirm it there.

Claude Code
claude mcp add --transport http io.github.posthog-mcp https://mcp.posthog.com/mcp

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.posthog-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.posthog.com/mcp"
      ]
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • Firecrawl🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

Questions

How do I install PostHog MCP Server?
Copy the http config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does PostHog MCP Server need an API key?
No required environment variable is listed on this record.
What transport does PostHog MCP Server use?
PostHog MCP Server is reached over HTTP.
When was PostHog MCP Server last checked?
Last checked 2026-10-16. Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

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. Set up experiments with no code, too.
  • Early access features (beta): Let users opt into betas and register interest in upcoming features.

Talk to users

  • Surveys: Ask anything with our collection of no-code survey templates, or build custom surveys with our survey builder.
  • Support: Run customer support with a chat widget and a unified inbox, next to the product data behind each ticket.
  • Workflows: Automate actions and messages to your users, triggered by your product data.

Data

  • Warehouse: Collect, store, transform, and query all the context behind your product. Includes a managed warehouse, 120+ sources, and a SQL editor with BI and data visualization.
  • Data pipelines: Run custom filters and transformations on your incoming data. Send it to 25+ tools or any webhook in real time, or batch export large amounts to your warehouse.
  • Endpoints: Build custom API endpoints powered by your PostHog data.

AI and agents

  • AI observability: Capture traces, generations, latency, and cost for your LLM-powered app. Run LLM-as-a-judge evaluations to catch regressions.
  • MCP analytics (beta): See how agents actually use your MCP server.
  • PostHog AI: Ask your product data anything. PostHog AI builds insights, writes SQL, and finds replays for you.
  • Self-driving: Turn signals in your product data (errors, rage clicks, failed queries, and more) into researched reports and pull requests, delivered to your Inbox for you to review and merge.

You can steer it all from Slack, web, desktop (PostHog Desktop), or your own editor via the MCP.

The remote MCP server is https://mcp.posthog.com/mcp. It routes to the correct data region (US or EU) when your human logs in. Install it into Claude Code, Cursor, Codex, VS Code, Zed, or PostHog Desktop with:

npx @posthog/wizard mcp add

The docs are indexed for you at posthog.com/llms.txt, the changelog is plain Markdown at posthog.com/changelog.md, and the setup guides for every MCP client are in the docs.

All of this is free to use with a monthly free tier for each product. No card is required, and 97% of users pay $0. Join the 500,000+ teams already shipping with PostHog by signing up for PostHog Cloud US or PostHog Cloud EU.

Table of Contents

  • PostHog is your product's context layer
  • Table of Contents
  • Getting started with PostHog
    • PostHog Cloud (Recommended)
    • Self-hosting the open-source hobby deploy (Advanced)
  • Setting up PostHog
  • Learning more about PostHog
  • Contributing
  • Open-source vs. paid
  • We’re hiring!

Getting started with PostHog

PostHog Cloud (Recommended)

The fastest and most reliable way to get started with PostHog is signing up for free to PostHog Cloud or PostHog Cloud EU. Your first 1 million events, 5k recordings, 1M flag requests, 100k exceptions, 10GB of logs, and 1500 survey responses are free every month, after which you pay based on usage.

Self-hosting the open-source hobby deploy (Advanced)

If you want to self-host PostHog, you can deploy a hobby instance in one line on Linux with Docker (recommended 4GB memory):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"

Open source deployments should scale to approximately 100k events per month, after which we recommend migrating to a PostHog Cloud.

We do not provide customer support or offer guarantees for open source deployments. See our self-hosting docs, troubleshooting guide, and disclaimer for more info.

Setting up PostHog

Once you've got a PostHog instance, the fastest way to set it up is the setup wizard, which installs and configures PostHog in your app for you:

npx -y @posthog/wizard@latest

You can also install our JavaScript web snippet, one of our SDKs, or use our API. You can also connect the MCP to bring PostHog into Claude Code, Cursor, or any MCP-compatible agent.

We have SDKs and libraries for popular languages and frameworks like:

FrontendMobileBackend
JavaScriptReact NativePython
Next.jsAndroidNode
ReactiOSPHP
VueFlutterRuby

Beyond this, we have docs and guides for Go, .NET/C#, Django, Angular, WordPress, Webflow, and more.

Once you've installed PostHog, see our product docs for more information on how to set up product analytics, web analytics, session replays, feature flags, experiments, error tracking, surveys, data sources, and more.

Learning more about PostHog

Our code isn't the only thing that's open source 😳. We also open source our company handbook which details our strategy, ways of working, and processes.

Curious about how to make the most of PostHog? We wrote a guide to winning with PostHog which walks you through the basics of measuring activation, tracking retention, and capturing revenue.

Contributing

We <3 contributions big and small:

  • Vote on features or get early access to beta functionality in our roadmap
  • Open a PR (see our instructions on developing PostHog locally)
  • Submit a feature request on our roadmap or a bug report

For an overview of the codebase structure, see monorepo layout and products.

Open-source vs. paid

This repo is available under the MIT expat license, except for the ee directory (which has its license here) if applicable.

Need absolutely 💯% FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features.

The pricing for our paid plan is completely transparent and available on our pricing page.

We're hiring!

Hey! If you're reading this, you've proven yourself as a dedicated README reader.

You might also make a great addition to our team. We're growing fast and would love for you to join us.


If you're looking for easter eggs or abandoned ideas, please check the trash.

How do I install PostHog MCP Server?
Copy the http config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does PostHog MCP Server need an API key?
No required environment variable is listed on this record.
What transport does PostHog MCP Server use?
PostHog MCP Server is reached over HTTP.
When was PostHog MCP Server last checked?
Last checked 2026-10-16. Official PostHog MCP Server for product analytics, feature flags, experiments, and more.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Pricing
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • MCP Apps
  • Tools
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • Club
  • Work with us
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA