PostHog MCP Server
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Description from the maker (original English)
Agent-first analytics: stats, events, sessions, funnels, ingest, websites & billing.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
Passed 3/3 checks · What you ask goes through the maker’s server (mcp.analyga.com)
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude · about 5 min
You need a Analyga key (sign up on the maker’s site, may cost money) · Set it up once on claude.ai or the desktop app, then use it in chat · free accounts can add 1
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
CustomizeConnectors
Copy each value into the field with the same name in Claude, then click Continue
Analygahttps://mcp.analyga.com/sseUnder Request headers, add this name and value
AuthorizationBearer <paste your key here>Paste the key only into the app’s field, never into a chat or to anyone
Leave Authentication as Claude detected it, then click Add
+ConnectorsAnalyga
Use Analyga and tell me what you can do for me, then show me one thing✓ If Claude says it is using Analyga or shows a Analyga tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Analyga yet
Analyga needs your own key to connect, but OpenAI’s help page only describes OAuth sign-in; there is no key option we could verify
A · Use an app that can connect Analyga
B · Others in Marketing & social media that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code · about 5 min
You need a Analyga key (sign up on the maker’s site, may cost money)
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --transport sse analyga https://mcp.analyga.com/sse --header 'Authorization: your-value'Replace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
You should see Analyga listed as connected
Use Analyga and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Analyga or shows a Analyga tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor · about 5 min
You need a Analyga key (sign up on the maker’s site, may cost money)
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
In the Analyga settings, Authorization is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Analyga and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Analyga or shows a Analyga tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code · about 5 min
You need a Analyga key (sign up on the maker’s site, may cost money)
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
In the Analyga settings, Authorization is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Use Analyga and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Analyga or shows a Analyga tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
Address for apps that connect over the web
https://mcp.analyga.com/sseJSON settings are under “For developers” below
Claude Code
claude mcp add --transport sse analyga https://mcp.analyga.com/sse --header 'Authorization: your-value'Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"analyga": {
"url": "https://mcp.analyga.com/sse",
"headers": {
"Authorization": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"analyga": {
"type": "sse",
"url": "https://mcp.analyga.com/sse",
"headers": {
"Authorization": "your-value"
}
}
}
}Claude Code
claude mcp add analyga --env ANALYGA_KEY=your-value -- npx -y analygaClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"analyga": {
"command": "npx",
"args": [
"-y",
"analyga"
],
"env": {
"ANALYGA_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"analyga": {
"command": "npx",
"args": [
"-y",
"analyga"
],
"env": {
"ANALYGA_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"analyga": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"analyga"
],
"env": {
"ANALYGA_KEY": "your-value"
}
}
}
}ANALYGA_KEY secret envThese settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
npm: analygaBased on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Connect over the internet in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
We have not read this server’s tool list yet; we check endpoints in rotation.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 11, 2026
The registry name was verified with the GitHub account jyswee, which owns the repo
Code last changed 3 months ago
We have not read this repo from GitHub yet
Responded in 473 ms (HTTP 200)
No sign-in needed
Not checked yet; we read the tool list when we check the endpoint
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
You need to fill in: ANALYGA_KEY, Authorization
Either way works: install it on your computer or connect to the cloud version.
The GitHub repo last changed 3 months ago, and the latest version (0.1.15) reached the registry 2 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. It connects by URL, so apps that accept remote MCP servers work too, such as ChatGPT Business and above.
In the same category: PostHog MCP Server, Openshorts, Google Ads + Meta Ads + SEO/GEO MCP
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Turn long videos into viral vertical shorts and publish them to TikTok, Instagram and YouTube.
Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
Agent-first analytics for MCP + web traffic — query, instrument and configure from a terminal or an MCP client. No browser, no dashboard.
A dashboard for humans. `tga` for your agents.
One analytics surface for both halves of modern traffic: the web visits your site still gets, and the agent/MCP calls that increasingly drive it. Analytics tools assume a human staring at a chart — but increasingly the thing that needs the numbers is an agent: it fired the events, it wants to know whether they landed, and it wants five numbers back, not a dashboard to render. analyga is the surface the agent drives itself: one install, and it queries stats and funnels across web and MCP, sends server-side events, and reads its own schema — all as structured JSON, none of it screen-scraped.
Works with: Claude Code · Cursor · Cline · Windsurf · Aider · Codex · any MCP client
*One agent, one terminal — query to funnel in 60 seconds. Watch the full demo.*
No mockups — every clip is a live tga session against a seeded tenant. Click any GIF for the full-res video.
| Query → funnel | Agent self-signup | Server-side ingest |
|---|---|---|
| One agent, one terminal, 60s | Keyless bootstrap — no admin in the loop | Send events with a stable --id |
| MCP client | The human dashboard |
|---|---|
| 13 native tools in Claude Code / Cursor | Everything the agent captures, in one real-time UI |
npm install -g analyga
The npm package is analyga; the command is tga.
# No account yet? Create a tenant and its first key — no card, no admin in the loop
tga signup --slug acme --name "Acme" --username you --password <8+ chars>
tga login --key # or set ANALYGA_KEY
tga whoami
tga websites
tga stats --from 7d
tga --help
Every command takes --json — the machine surface is a first-class citizen, not an afterthought:
tga stats <websiteId> --from 7d --json
tga agent-schema --json
That returns every command, argument, flag, type, whether it is read-only, and the full list of error codes — generated from the same table that drives the parser, the help text and the MCP tools, so it cannot drift from what the CLI actually does. If it is not in the schema, it does not exist.
Ask the questions an agent actually asks after it ships: did the events land, and did anyone make it through the flow?
# Traffic and top-line stats for a window
tga stats --from 7d tga events --from 24h
tga funnel define --name signup --steps "/,/pricing,/signup" tga funnel list tga funnel run --from 30d
tga network --from 7d
All read-only, all --json-able — an agent branches on the numbers instead of parsing a chart.
--id or your agents collapse into one visitorAnonymous identity is derived from IP and user-agent. Agent traffic shares both — one CLI version means one user-agent, and agents often share an egress IP — so without a stable id every agent behind that IP collapses into a single visitor. It cannot be backfilled.
tga send <websiteId> --name cli_signup --id <stable-user-id> --data '{"source":"cli"}'
# Mint a per-website ingest key first (shown ONCE; regenerating rotates it)
tga ingest-key create
tga send --name cli_signup --id \ --ingest-key --data '{"plan":"pro"}'
tga ingest health --from 24h # did anything actually land?
tga ingest-key revoke # kill server-side ingest for this site
A discarded event still answers HTTP 200. The ingest endpoint returns {"beep":"boop"} when it drops an event as a bot. This CLI treats that as a hard failure with a hint rather than reporting success — so an agent never believes a dropped event succeeded.
Server-side ingest uses a separate per-website key (ANALYGA_INGEST_KEY or --ingest-key), scoped to one website so it can only ever write that site's traffic. Mint one with tga ingest-key create and revoke it with tga ingest-key revoke — the plaintext is shown once and only its hash is stored.
An agent authenticates with its tenant key, names a plan, and gets back a Stripe Checkout URL to pass to a human who completes payment:
tga billing checkout --plan pro
The tenant is pinned server-side from the key. The free plan (and any plan without a configured price) is not purchasable, and internal sister-stack tenants are never billed.
Prefer tools over a CLI? analyga ships an MCP server. Point Claude Code (or any MCP client) at it and your agent gets 13 native tools covering stats, events, funnels, websites, identity, server-side ingest (including minting/revoking ingest keys) and billing checkout.
tga mcp-serve # stdio, for Claude Code / Cursor / Cline / Windsurf
For clients that use a JSON config, pass your key via ANALYGA_KEY. The MCP server runs outside your project directory, so it will not pick up .analyga/config.json:
{
"mcpServers": { "analyga": { "command": "tga", "args": ["mcp-serve"], "env": { "ANALYGA_KEY": "your-key" } } } }
Read-only tools are flagged, so a client will not prompt a human to confirm a read. Every tool declares an outputSchema, so an agent never parses prose or guesses field names — and a tool result and --json output are the same bytes, one client across two surfaces. A session with no key sees only the onboarding surface — how to connect, plus analyga_signup to bootstrap its own tenant — rather than the full toolset.
Failures carry a stable code and a distinct exit code, so an agent can branch on the outcome instead of string-matching a message.
| Exit | Meaning | What to do |
|---|---|---|
| 2 | usage | fix the call, do not retry |
| 3 | auth | fix the credential |
| 4 | permission | do not retry, escalate |
| 5 | not found | check the id |
| 6 | validation | fix the payload |
| 7 | rate limited | back off and retry |
| 8 | network | retry is reasonable |
| 9 | server | retry once, then report |
Exit 1 is reserved for unhandled crashes, so a classified failure is never ambiguous. Where the server can say what to do next, it comes back as a hint on its own line.
Resolved highest-priority first:
--key flagANALYGA_KEY environment variable.analyga/config.json in the current directorytga whoami reports which of these won. On a multi-tenant platform, "which tenant am I about to write to" is the question that matters most. .analyga/ holds a live credential — keep it out of version control.
tga signup creates a tenant and its first API key with no card and no admin in the loop; keyless, so it works before you have a credentialtga whoami shows the pinned tenant and key scope for a tga_ key, or the user and teams for a session login--jsontga send with a scoped per-site key; mint/rotate/revoke keys with tga ingest-key create|revoke; dropped-as-bot events fail loudly instead of faking a 200tga billing checkout --plan returns a Stripe URL to hand to a human--id keeps agents from collapsing into one anonymous visitortga mcp-serve) for Claude Code, Cursor, Cline, Windsurf, any MCP clientcode + distinct exit code per failure class, with actionable hintsAdd to your CLAUDE.md, .cursorrules, .clinerules, .windsurfrules, or AGENTS.md:
## Analyga
This project uses Analyga for analytics. Use the tga CLI. Config is in .analyga/config.json (auto-loaded), or set ANALYGA_KEY. If not configured: tga login --key YOUR_KEY
Run tga agent-schema --json — it returns every command + valid flags + error codes. This is the single source of truth: if it is not in the schema, do not use it. Always pass --id on tga send, or agent traffic collapses into one visitor.
Every analytics tool I reached for assumed a human looking at a chart — but the thing that needed the numbers was the agent that fired the events. So the CLI and the MCP server are the primary interface here, not a wrapper bolted onto a REST API. It's early and iterating fast: if something's rough or missing, open an issue.
For now, tga --help and tga agent-schema --json are the authoritative reference.
Early. Published for dogfooding by the Tyga sister stacks. Interfaces may change; error codes will not be reworded once published, because agents branch on them.
Proprietary — Tyga.Cloud Ltd. See LICENSE.