PostHog
Query product analytics, manage feature flags, and triage errors.
PostHog
Query product analytics, manage feature flags, and triage errors. With Lunar.dev MCPX, the MCP Gateway for secure and governed tool access, you connect the PostHog MCP server to Claude, ChatGPT, Cursor, and any MCP client through one gateway that routes, authenticates, and governs every PostHog tool call against your policies.
Why MCPX
MCPX is Lunar.dev's MCP Gateway. It sits between your AI agents and your MCP servers as a single gateway for every tool call, routing, authenticating, and governing traffic against your policies. Connect PostHog once and govern it everywhere: role-based access per agent with on-behalf-of attribution, real-time visibility, and an immutable audit trail of who did what, all deployable inside your own VPC.
Tools content
- action-create · Write
Create action - action-delete · Write
Delete action - action-get · Read-only
Get action - action-update · Write
Update action - actions-get-all · Read-only
Get all actions - evaluation-create · Write
Create a new evaluation. - evaluation-delete · Write
Delete an evaluation. - evaluation-get · Read-only
Get a specific evaluation by ID. - evaluation-run · Write
Run an evaluation on a specific event. - evaluation-test-hog · Write
Dry-run Hog evaluation code against sample events. - evaluation-update · Write
Update an evaluation. - evaluations-get · Read-only
List AI observability evaluations. - get-llm-total-costs-for-project · Read-only
Fetches the total LLM daily costs for each model for a project over a given number of days. - llma-clustering-job-get · Read-only
Get clustering job - llma-clustering-job-list · Read-only
List clustering jobs - llma-evaluation-config-get · Read-only
Get evaluation config - llma-evaluation-config-set-active-key · Write
Set active evaluation provider key - llma-evaluation-create · Write
Create evaluation - llma-evaluation-delete · Write
Delete evaluation - llma-evaluation-get · Read-only
Get evaluation
Frequently asked questions
What is the PostHog MCP server?
Query product analytics, manage feature flags, and triage errors. Through Lunar.dev MCPX, PostHog connects to any MCP-compatible AI client behind a single governed gateway.
How do I connect PostHog to MCPX?
Add the PostHog server in the MCPX control plane or your app.yaml, then point your AI client at your MCPX gateway. MCPX handles API Key and routes every PostHog call through the gateway.
Is the PostHog MCP server official?
Yes. PostHog is an official, vendor-published MCP server, and MCPX governs it like any other server in your catalog.
What authentication does PostHog use with MCPX?
PostHog uses API Key. MCPX enforces authentication at the gateway with token-based auth, OAuth, and role-based profiles, so you control which agents can invoke it.
How many tools does PostHog expose in MCPX?
PostHog's tools can be enabled or disabled individually in MCPX for least-privilege access.
