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
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like...
MCP to connect Claude with Spotify.
MCP Server for Nutanix
Claude Server is an MCP implementation that enhances Claude's capabilities by providing sophisticated context management across sessions, enabling...
MCP Deep Research is a tool that allows you to search the web for information. It is built...
MCP server for Netlify integration - manage Netlify sites through Model Context Protocol
A Model Context Protocol (MCP) server for the Google Programmable Search Engine (PSE) API
An MCP server implementation providing persistent memory capabilities for Claude, based on research into optimal LLM memory techniques
A Model Context Protocol (MCP) server for Google Calendar integration in Cluade Desktop with auto authentication support. This...
🤖 A TypeScript implementation of a Sentry MCP (Modern Context Protocol) tool that allows AI agents to access...





