Ira Bodnar··Updated ·9 min read

Best PostHog MCP server: 6 options compared

Quick answer: PostHog's own remote server at mcp.posthog.com is the broadest option for product teams. Ryze AI is the best PostHog MCP server for marketers who already run ads through Ryze AI, with one caveat: it has 3 PostHog tools and one project per connection.

Below: 6 servers checked on November 10, 2026, PostHog's official options, API limits and test prompts.

Ryze AI · Paid Ads

PostHog in the Ryze AI connector

  • 7-day free trial, $89 a month flat

Used by 2,000+ marketers

Uber Eats logoadidas logoDuolingo logoMGM Resorts logoWharton logoLendingClub logoNorton logoEventbrite logoHuel logoTogether AI logoghd logoHack The Box logo

The best PostHog MCP servers at a glance

Ranked for marketers and analysts who want an AI assistant to read PostHog and change a few objects. Ryze AI publishes this page, so rank 1 is on that axis only.

  1. 1Ryze AI MCPHosted

    Who it is for: Marketers who also run ads in Ryze AI

    PostHog access: 3 tools: read (with HogQL), write, delete

    Price: From $89 a month, 7-day free trial

  2. 2PostHog official MCPHosted by PostHog

    Who it is for: Product and engineering teams

    PostHog access: Broad: analytics, flags, experiments, errors

    Price: Free to connect

  3. 3Composio PostHog toolkitHosted

    Who it is for: Developers building agents

    PostHog access: 686 tools, 11 triggers

    Price: Free tier, then usage

  4. 4PostHog/mcp (archived)Local or hosted

    Who it is for: Reference only

    PostHog access: Moved into the PostHog monorepo

    Price: Free

  5. 5mcp-research/PostHog__posthog-mcpLocal

    Who it is for: Claude Desktop users who want annotations

    PostHog access: Projects and annotations

    Price: Free

  6. 6Zapier MCPHosted

    Who it is for: Teams already on Zapier

    PostHog access: 1 trigger and 1 action

    Price: Zapier plan

Rows 1 to 3 can change PostHog data through MCP when the key allows it. Row 4 is an archived repo, row 5 is a small community server and row 6 can only send events and watch for actions.

How these PostHog MCP servers were compared

Each server was checked against its own docs, GitHub page or toolkit page on November 10, 2026. No customer PostHog data was used.

  • Who it is for: a marketer, a product team or a developer building an agent.
  • PostHog access: which objects it reads and what it can create, change or delete.
  • Auth and guardrails: OAuth or a personal API key, and what stands between the agent and live data.
  • Upkeep and price: who hosts it, whether the repo is active and what it costs.

PostHog's own server ranks second only because the axis here is a marketer who wants analytics next to ad accounts. For the Ryze AI setup, read the PostHog MCP page.

The 6 PostHog MCP servers, one by one

1. Ryze AI MCP

A hosted MCP server you add to Claude or ChatGPT as one connector URL, https://connector.get-ryze.ai/mcp. PostHog connects with a personal API key and your host (US Cloud, EU Cloud or a self-hosted URL), then you pick a project. The same connector also serves the other platforms connected in your Ryze AI workspace. Disclosure: Ryze AI publishes this page.

PostHog tools

3: read (projects, insights, dashboards, feature flags, cohorts, persons, event definitions and HogQL queries), write (insights, dashboards, feature flags, cohorts) and delete.

Guardrail

A key with read scopes only keeps the agent read-only. In Claude, write and delete tools can be set to Needs approval.

Limit

One PostHog project per connection. HogQL queries need a time window and a row limit of 1,000 at most.

Price

A Ryze AI plan or trial; Paid Ads is $89 a month with a 7-day free trial. Connecting is free.

Setup steps and the tool list are on the PostHog MCP page. Other platforms are on the developers page.

2. PostHog official MCP server

PostHog's hosted server at https://mcp.posthog.com/mcp. It supports OAuth and personal API keys, and the login routes you to your US or EU region. PostHog lists Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, Codex, Lovable, Replit and v0 as supported clients.

Made by

PostHog. Its docs describe tools for analytics queries, feature flags, experiments, error triage, HogQL and more.

Setup

Run npx @posthog/wizard mcp add, or follow the per-client guide in the docs.

Guardrail

The docs page I opened does not describe a read-only mode; a key with narrow scopes limits what it can do. Self-hosting is not covered there.

Price

Connecting and calling tools is free, but some tools use LLMs internally and may be billed as PostHog AI spend. AI tools need AI data processing enabled in organization settings.

3. Composio PostHog toolkit

A developer platform that exposes many apps through one MCP gateway or SDK. Its PostHog toolkit lists 686 tools and 11 triggers and signs in with a PostHog API key. Agents connect through hosted MCP servers or its API.

Writes

Yes. The page lists flags, experiments, dashboards, cohorts, batch exports, error tracking and surveys.

Guardrail

No approval gate is described on the toolkit page; use your client's tool permissions.

Setup

A Composio account plus your own PostHog credentials.

Price

The page lists a free tier of 100,000 tool calls a month with no credit card; paid plans bill usage.

4. PostHog/mcp on GitHub (archived)

The original official repo has 151 stars and an MIT license. PostHog archived it on January 19, 2026 and moved the code into its monorepo under services/mcp. Use the monorepo or the hosted server for anything new.

Status

Read-only archive; no new commits.

Setup

The README points to npx @posthog/wizard@latest mcp add.

Price

Free, open source.

5. mcp-research/PostHog__posthog-mcp

A small community server with 0 stars, 11 commits and an MIT license. It lists the projects in your organization and adds annotations, and its README targets Claude Desktop. The page did not show a last commit date. Treat it as a minimal example.

Auth

A PostHog API key with annotation:write and project:read scopes.

Setup

Python 3.10 or later and the uv package manager.

Price

Free, open source.

6. Zapier MCP

Zapier MCP lists two PostHog capabilities: a trigger when an action is performed and a Capture Event action. It cannot read insights or run queries. It suits teams that already send events from Zapier.

Writes

Capture Event only, with organization, project, event name and distinct ID.

Reads

None beyond the action trigger.

Price

The page I opened did not list task usage per call; check Zapier's pricing.

PostHog's own MCP options and who each is for

PostHog documents one hosted server and keeps its code in the main repository.

  1. Hosted server, mcp.posthog.com/mcp

    Where it runs
    PostHog
    Who it is for
    Anyone with a PostHog Cloud account
    Auth
    OAuth or personal API key
  2. EU endpoint, mcp-eu.posthog.com

    Where it runs
    PostHog
    Who it is for
    EU Cloud accounts that use API keys
    Auth
    Personal API key as a Bearer token
  3. services/mcp in the PostHog monorepo

    Where it runs
    Your machine or your own host
    Who it is for
    Developers who read or run the code
    Auth
    Personal API key as a Bearer token

The monorepo README describes two modes: cli, the default, with a single exec tool, and tools, with one tool per operation. A request header, x-posthog-mcp-mode, sets the mode. The README also lists more than 50 feature categories.

If you only want PostHog in Claude, the official server is the direct route. Ryze AI adds value when the agent also works on your ad and SEO accounts in the same workspace.

PostHog API limits every MCP server runs into

Servers that use a personal API key call the same PostHog API, so the same limits apply (PostHog API docs):

  1. Analytics (insights, persons, recordings)

    Limit
    240 a minute, 1,200 an hour
    What it means for an agent
    Many dashboard reads in one chat can hit the hourly cap
  2. Query endpoint

    Limit
    2,400 an hour
    What it means for an agent
    HogQL-heavy chats use this budget
  3. Events values

    Limit
    60 a minute, 300 an hour
    What it means for an agent
    Property value lookups run out first
  4. CRUD (create, read, update, delete)

    Limit
    480 a minute, 4,800 an hour
    What it means for an agent
    Bulk edits to flags or cohorts go in batches

PostHog says most limits apply per personal API key, and that OAuth or logged-in sessions do not use up personal API key limits. Ryze AI uses a personal API key, so its calls count against that key. For large one-off exports, PostHog points to file download exports or batch exports.

In Ryze AI, PostHog stops unbounded HogQL queries, so ask for a time window and at most 1,000 rows.

How to choose a PostHog MCP server

Start from who will use the agent and whether it should change anything.

You run ads and want PostHog in the same chat

Ryze AI MCP

One connector for PostHog and the other platforms in your workspace. Ad-side picks: best MCP for Google Analytics covers GA4.

You are a product or engineering team

PostHog official MCP server

Hosted by PostHog, OAuth sign-in and the widest tool coverage in this list.

You build agents over many apps

Composio

A free tier and a very large tool list, with your own credentials.

You want free and self-run

PostHog monorepo services/mcp

Open source, kept current by PostHog.

You only send events from Zapier

Zapier MCP

Capture Event and one trigger, no reads.

You only want reports

Any server with a read-only key

Create a personal API key with read scopes only.

Using GA4 as well? See how to connect Claude to Google Analytics. Everything else on the hub: Integrations.

Prompts to test any PostHog MCP server

Run these with a read-only key first.

Project check (read only)
List the PostHog projects this connection can see and tell me which one you are using. Do not change anything.

A list of projects comes back. A server without project access cannot answer.

HogQL with bounds
Run a HogQL query for pageview events over the last 7 days, grouped by day, limited to 100 rows. Show the query you ran.

This shows whether the server runs HogQL and respects a time window and row limit.

Objects overview
List my dashboards and feature flags, and flag any feature flag that has no description.

A table of dashboards and flags comes back if the key has read access to them.

Scope check
Which PostHog objects can you read and which can you change with this key? Tell me what is blocked.

You see the real permissions before you ask for edits.

Change, then wait
Create a cohort named [name] for [definition]. Show me what you plan to create and wait for my OK before saving.

With write and delete tools set to Needs approval in Claude, the call waits for your click.

Access and safety checklist before you connect

  • Create a personal API key in PostHog under Settings, Personal API keys, with read access to the projects you need and the Query and Insight scopes.
  • Add write scopes only for objects the agent should change. A read-only key makes PostHog reject changes.
  • Use the right host: https://us.posthog.com, https://eu.posthog.com or your self-hosted URL.
  • Require approval: in Claude, set write and delete tools to Needs approval under Customize, Connectors, Ryze AI, Tool permissions. The Ryze AI chat starts on Skip all approvals, and scheduled tasks run without an approval step.
  • Treat deletes as irreversible. The Ryze AI delete tool removes an object by path, for example a cohort.
  • Know how to revoke: delete the personal API key in PostHog, or disconnect PostHog in Ryze AI with the trash icon on its card.

More on connecting: the Ryze AI help center has the PostHog guide.

Sources

The verdict

Pick by who uses the agent. Product teams start with PostHog's own server, developers building agents look at Composio, and marketers who already work in Ryze AI can add PostHog to the connector they use. Whichever you choose, start with a read-only key and add write scopes only when a task needs them.

Frequently asked questions

What is the best PostHog MCP server?
For product and engineering teams, PostHog's own hosted server at mcp.posthog.com. For marketers who already use Ryze AI for ads, the Ryze AI connector with 3 PostHog tools. For developers building agents across many apps, Composio.
Does PostHog have an official MCP server?
Yes. PostHog hosts one at https://mcp.posthog.com/mcp with OAuth and personal API key sign-in. The original GitHub repo was archived on January 19, 2026 and its code moved into the PostHog monorepo.
Is the PostHog MCP server free?
Connecting to PostHog's server and calling its tools is free, but some tools use LLMs internally and may be billed as PostHog AI spend. Ryze AI needs a plan or trial, from $89 a month with a 7-day free trial.
Which clients work with PostHog's MCP server?
PostHog lists Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, Codex, Lovable, Replit and v0. Ryze AI works in Claude and ChatGPT through one connector URL.
Show 6 more questions
Can an MCP server change my PostHog data?
Some can. Ryze AI can create or update insights, dashboards, feature flags and cohorts, and delete them when asked. PostHog's server and Composio also list write tools. Zapier MCP can only capture events.
How do I keep an AI agent read-only in PostHog?
Create a personal API key with read scopes only. PostHog rejects any change the key does not allow. In Claude you can also set write and delete tools to Needs approval.
What PostHog API limits apply to an MCP server?
PostHog lists 240 requests a minute and 1,200 an hour for analytics endpoints, 2,400 an hour for the query endpoint and 480 a minute and 4,800 an hour for CRUD, mostly per personal API key.
Can I connect more than one PostHog project?
Ryze AI connects one project per connection. Another project can live in another workspace, and one Claude or ChatGPT connection can cover up to 20 workspaces.
Does Ryze AI work with PostHog EU Cloud or self-hosted?
Yes. When you connect, you enter the host: https://us.posthog.com, https://eu.posthog.com or a self-hosted URL.
Which Ryze AI plan includes the PostHog tools?
Any active Ryze AI plan or trial: Paid Ads at $89 a month with a 7-day free trial, SEO Starter at $129 with a 3-day free trial, or Agency at $279. Annual billing saves 30% in the first year.

Related guides

Ryze AI: PostHog MCP tools

7-day free trial, $89 a month flat

Start free trial