PostHog
Lets an agent analyze product data, manage feature flags, and run experiments in PostHog. Summary written by AI Index.
The registry’s description: Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Authorization Add to your client
Add the PostHog MCP server to Claude Code
Run the command
claude mcp add --transport http posthog https://mcp.posthog.com/mcp --header 'Authorization: <Authorization>'Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to Cursor
Open mcp.json· Where the file is:
~/.cursor/mcp.json,.cursor/mcp.jsonPaste the server entry
{ "mcpServers": { "posthog": { "url": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to VS Code
Open mcp.json· Where the file is:
.vscode/mcp.jsonPaste the server entry
{ "servers": { "posthog": { "type": "http", "url": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to Codex
Run the command
codex mcp add posthog --url https://mcp.posthog.com/mcpCheck it’s connected
This client’s docs give no way to pass these values here; set them as the server’s documentation says.
Add the PostHog MCP server to Claude
Open Claude’s MCP config
- Open Customize > Connectors.
- Choose Add custom connector.
- Enter the server URL below.
- Add OAuth credentials under Advanced settings if the server needs them, then choose Add.
Server URL
https://mcp.posthog.com/mcpCheck it’s connected
This client’s docs give no way to pass these values here; set them as the server’s documentation says.
Add the PostHog MCP server to ChatGPT
Open ChatGPT’s MCP config
- Go to chatgpt.com/plugins.
- Choose the plus button, then Add custom MCP server.
- Enter a name and description.
- Under Connection, enter the server URL below.
- Set up authentication, then choose Create as a plugin.
Server URL
https://mcp.posthog.com/mcpCheck it’s connected
This client’s docs give no way to pass these values here; set them as the server’s documentation says.
Add the PostHog MCP server to Devin Desktop
Open mcp_config.json· Where the file is:
~/.config/devin/mcp_config.json,%APPDATA%\devin\mcp_config.jsonPaste the server entry
{ "mcpServers": { "posthog": { "serverUrl": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to Gemini CLI
Open settings.json· Where the file is:
~/.gemini/settings.json,.gemini/settings.jsonPaste the server entry
{ "mcpServers": { "posthog": { "httpUrl": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to GitHub Copilot
Run the command
copilot mcp add --transport http --header 'Authorization: <Authorization>' posthog https://mcp.posthog.com/mcpFill in the values ↓
Check it’s connected
Add the PostHog MCP server to Cline
Open cline_mcp_settings.json· Where the file is:
~/.cline/data/settings/cline_mcp_settings.jsonPaste the server entry
{ "mcpServers": { "posthog": { "type": "streamableHttp", "url": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to Kiro
Open mcp.json· Where the file is:
.kiro/settings/mcp.json,~/.kiro/settings/mcp.jsonPaste the server entry
{ "mcpServers": { "posthog": { "url": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to Zed
Open settings.json
Paste the server entry
{ "context_servers": { "posthog": { "url": "https://mcp.posthog.com/mcp", "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to OpenCode
Open opencode.json· Where the file is:
~/.config/opencode/opencode.json,opencode.jsonPaste the server entry
{ "$schema": "https://opencode.ai/config.json", "mcp": { "posthog": { "type": "remote", "url": "https://mcp.posthog.com/mcp", "enabled": true, "headers": { "Authorization": "<Authorization>" } } } }Fill in the values ↓
Check it’s connected
Add the PostHog MCP server to JetBrains AI Assistant
Open JetBrains AI Assistant’s MCP config
- Open Settings | Tools | AI Assistant | Model Context Protocol (MCP).
- Choose Add.
Paste the server entry
{ "mcpServers": { "posthog": { "url": "https://mcp.posthog.com/mcp" } } }Check it’s connected
This client’s docs give no way to pass these values here; set them as the server’s documentation says.
If the file already has servers, add the entry inside the existing object. To check it’s connected, restart or reload the client and look for posthog in its list of MCP servers. A server that needs sign-in opens it on first use.
What you fill in
Required values appear as <NAME> placeholders in the snippets; add optional ones the same way. Descriptions are the server’s registry entry’s.
<Authorization>HTTP header Required · SecretBearer token with your PostHog personal API key. Create one at https://us.posthog.com/settings/user-api-keys with the 'MCP Server' preset.
Client compatibility
By transport: whether the client’s docs list a transport this server offers. It doesn’t cover sign-in or other requirements.
- Claude Code Transport supported
- Cursor Transport supported
- VS Code Client docs don’t list transports
- Codex Transport supported
- Claude Client docs don’t list transports
- ChatGPT Transport supported
- Devin Desktop Transport supported
- Gemini CLI Transport supported
- GitHub Copilot Client docs don’t list transports
- Cline Transport supported
- Kiro Transport supported
- Zed Client docs don’t list transports
- OpenCode Client docs don’t list transports
- JetBrains AI Assistant Transport supported
Sources
- Official MCP Registry registry.modelcontextprotocol.io · checked Nov 4, 2026
- GitHub organization PostHog (verified domain) github.com · checked Nov 4, 2026
This data comes from the Official MCP Registry.