PostHog MCP
Use the MCP Server
Quick install
You can install the MCP server automatically into popular clients by running the following command:
npx @posthog/wizard@latest mcp add
Manual install
Obtain a personal API key using the MCP Server preset here.
Add the MCP configuration to your desktop client (e.g. Cursor, Windsurf, Claude Desktop) and add your personal API key
{
"mcpServers": {
"posthog": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://mcp.posthog.com/sse",
"--header",
"Authorization:${POSTHOG_AUTH_HEADER}"
],
"env": {
"POSTHOG_AUTH_HEADER": "Bearer {INSERT_YOUR_PERSONAL_API_KEY_HERE}"
}
}
}
}
Here are some examples of prompts you can use:
- What feature flags do I have active?
- Add a new feature flag for our homepage redesign
- What are my most common errors?
Running locally
Environment variables
- Create
.dev.varsin the root - Add Inkeep API key to enable
docs-searchtool (seeInkeep API key - mcp)
INKEEP_API_KEY="..."
Remote MCP Server on Cloudflare Workers
Project Details
- PostHog/mcp
- MIT License
- Last Updated: 6/13/2025
Recomended MCP Servers
Model Context Protocol (MCP) Server for Tibber
Integrator MCP Server
Bringing the bankless onchain API to MCP
A Model Context Protocol implementation for Value Change Dump (VCD) files.
An MCP for Day One Journal users.
About A Model Context Protocol server that executes commands in the current WezTerm session
MCP Server for Google Cloud Healthcare API
A server status monitoring MCP server
MCP Server for Shopify API
An MCP server that provides image recognition 👀 capabilities using Anthropic and OpenAI vision APIs





