mcp
PostHog MCP is a tool that allows users to manage feature flags and track errors. It features easy installation steps and configuration using an API key, enabling integration with desktop clients. Local execution is also supported through the setup of environment variables.
GitHub Stars
63
User Rating
Not Rated
Forks
7
Issues
7
Views
0
Favorites
0
README
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.vars
in the root - Add Inkeep API key to enable
docs-search
tool (seeInkeep API key - mcp
)
INKEEP_API_KEY="..."
Author Information
1,350
Followers
245
Repositories
0
Gists
82
Total Contributions
Top Contributors
Threads