PostHog MCP Server MCP server
Hosted MCP endpoint that lets agents read and write across PostHog products: analytics queries and HogQL, feature flags, experiments, error tracking and stack traces, CDP destinations, and support ticket triage. The authentication server routes to the correct data region (US or EU) based on the account used to log in.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
OAuth sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://mcp.posthog.com/mcpWhat you can do with it
- Query product analytics and run HogQL from an agent.
- Ship and manage feature flags from a prompt.
- Dig into error stack traces without leaving the editor.
- Manage experiments and CDP destinations.
- Triage support tickets through the agent.
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http posthog https://mcp.posthog.com/mcpCodex
Codex configuration
codex mcp add posthog --url https://mcp.posthog.com/mcpCursor
Cursor configuration
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"posthog": {
"type": "streamableHttp",
"url": "https://mcp.posthog.com/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"posthog": {
"type": "http",
"url": "https://mcp.posthog.com/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http posthog https://mcp.posthog.com/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"posthog": {
"serverUrl": "https://mcp.posthog.com/mcp"
}
}
}Other developer tools servers
Do you run PostHog MCP Server?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.