> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# PostHog MCP server

> PostHog's MCP server reads and writes across its whole product suite; nextanalytica is web analytics built for your agent. Setup, access and checks compared.

Updated: 2026-11-29

The PostHog MCP server is a hosted server at `https://mcp.posthog.com/mcp` that lets your agent use all of PostHog: product analytics, feature flags, experiments, surveys, error tracking, dashboards and SQL. It reads and writes, and you can make it read-only or limit it to some tools. [nextanalytica](/) is web analytics built for your agent: a smaller set of tools focused on your site's visits, AI traffic and your other sources, with skills that check the numbers on a schedule.

We checked PostHog's side on its [MCP docs](https://posthog.com/docs/model-context-protocol) on November 29, 2026.

## What does PostHog's MCP server do?

- **Setup:** run `npx @posthog/wizard mcp add`, which adds it to Claude Code, Cursor, Codex, VS Code, Zed, Claude Desktop and PostHog Desktop, or add the address by hand.
- **Sign-in:** OAuth, recommended; a personal API key with the "MCP Server" preset works too. It routes you to your US or EU project on its own.
- **Reads and writes:** by default your agent can create and change flags, experiments, dashboards and surveys. The header `x-posthog-read-only: true` (or `?readonly=true`) removes the write tools.
- **Fewer tools:** `?features=flags,dashboards` keeps only some feature areas, and `?tools=` keeps named tools.
- **AI inside:** some of its tools use models of their own and run only when AI data processing is on in your organization.

## What does nextanalytica's MCP server do?

- **Setup:** add `https://mcp.nextanalytica.app/mcp` and sign in with OAuth, or use an agent key where no browser is at hand.
- **Reads, and a few writes:** visits, pages, channels, conversions, people and funnels; it writes your team's notes, memory, conversions and cohorts, and changes your site only through connectors an owner added. An agent can be limited to reading.
- **No model of ours:** your own agent reads the numbers. We run no AI on your data.
- **Checks on a schedule:** skills run on your team's Claude Code and report what changed; daily rules watch the numbers too.
- **AI traffic and sources:** assistants as their own channel, AI crawlers, and Search Console, GA4, Bing Webmaster Tools, ChatGPT Ads and Odoo next to your visits.

## How do they compare?

| | nextanalytica | PostHog |
| --- | --- | --- |
| What your agent reaches | Web analytics, AI traffic, your sources, team memory | The whole product: analytics, flags, experiments, surveys, errors, SQL |
| Address | `mcp.nextanalytica.app/mcp` | `mcp.posthog.com/mcp` |
| Sign-in | OAuth, or an agent key | OAuth, or a personal API key |
| Writes | Notes, memory, conversions, cohorts | Flags, experiments, dashboards, surveys and more |
| Read-only | A choice per sign-in or key | A header or query setting |
| AI on your data | None of ours | Some tools use PostHog's models, when you allow it |
| Checks on a schedule | Skills and daily rules | Alerts you create |

## When is PostHog the better choice?

When you build a product and want your agent to work across it: roll out a feature flag, start an experiment, read session data, write SQL against your events. PostHog's server reaches all of that, and nextanalytica reaches none of it.

## When is nextanalytica the better choice?

When the question is about your website: where visitors come from, what ChatGPT sends you, how search is doing, what changed this week. nextanalytica keeps the tool set small and answers those directly, with checks that run without anyone asking.

## Can you use both?

Yes. An agent can have several MCP servers. Use PostHog's for product work and nextanalytica's for your site's traffic, search and AI visits. See [nextanalytica vs PostHog](/docs/compare/posthog).

## Next steps

- [Connect your agent](/docs/model-context-protocol/agent-setup)
- [Best analytics MCP servers](/docs/compare/best-analytics-mcp-servers)
- [nextanalytica vs PostHog](/docs/compare/posthog)
- [PostHog alternatives](/docs/compare/posthog-alternatives)
- [Product analytics platforms](/docs/compare/product-analytics-platforms)

Canonical address: https://nextanalytica.app/docs/compare/posthog-mcp
