posthog-mcp
Provides tools for interacting with PostHog's product analytics API, including listing projects, querying events and insights (trends, funnels, retention), managing feature flags, and creating annotations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@posthog-mcpList my PostHog projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PostHog MCP Server
Type 3 DAuth MCP server for the PostHog product analytics API.
Tools
Tool | Description |
| List all projects in the organization |
| Query events with optional filters |
| Query TRENDS, FUNNELS, or RETENTION insights |
| List all feature flags |
| Get a specific feature flag by ID |
| Create a graph annotation |
Related MCP server: Posthog Universal MCP Server
Auth Setup
Go to PostHog → Settings → Personal API Keys
Create a key with project read access
Copy the key (starts with
phc_)
Environment Variables
POSTHOG_API_KEY=phc_your_key_here # Required Credential (DAuth)Deploy
pip install -e .
python src/main.pyUsage
result = await runner.run(
input="List my PostHog projects",
mcp_servers=["JiayuWang/posthog-mcp"],
)Safety Notes
create_annotationwrites to PostHog but is non-destructiveAll other tools are read-only
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables interaction with Google Analytics APIs to fetch reports, manage properties, data streams, conversion events, and custom dimensions/metrics through OAuth2 authentication.Last updated1776MIT
- Alicense-qualityDmaintenanceEnables interaction with Posthog through a standardized MCP interface, providing access to Posthog's tools and services for analytics and product management.Last updatedMIT
- AlicenseBqualityDmaintenanceEnables interaction with PostHog analytics platform, allowing users to list projects, create annotations, and search insights through natural language in Claude Desktop.Last updated5MIT
- Alicense-qualityCmaintenanceEnables interaction with Metabase through its API, allowing users to list cards, databases, collections, execute queries, and create cards or bookmarks.Last updated5MIT
Related MCP Connectors
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Define, ship & query your analytics tracking from one source of truth, trusted by humans and agents.
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/JiayuuWang/posthog-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server