mcp
Official PostHog MCP Server 🦔
claude mcp add --transport stdio posthog-mcp npx @posthog/wizard@latest mcp add
How to use
This MCP server implements the Model Context Protocol integration for PostHog and has been moved into the PostHog monorepo. The repository indicates that the MCP server is distributed via the PostHog wizard tooling, and that you can add or configure MCP support in development environments (Cursor, Claude, Claude Code, VS Code, and Zed) using the wizard command. The available tooling is centered around enabling MCP interactions within PostHog’s ecosystem, allowing agents and clients to query and reason about PostHog models and contexts through the MCP interface. To begin, install the MCP server through the wizard command and follow the prompts to integrate it with your development environment, after which you can use the standard MCP endpoints and capabilities exposed by the server in your workspace.
Once installed, you should be able to interact with the MCP server’s capabilities via the client tools provided by the PostHog wizard integration, which typically includes model-context queries, context-aware decision making, and agent-style interactions that leverage the MCP protocol. If you are working in a supported IDE or environment, the wizard will guide you through enabling the MCP features and connecting to the server. For more details, refer to the documentation linked in the repository (Documentation: posthog model context protocol) and the monorepo location for the MCP service.
How to install
Prerequisites:
- Node.js and npm (or core npx tooling) installed on your system
- Internet access to fetch the MCP server package
- Access to the PostHog wizard tooling (or the monorepo where MCP lives) for integration
Installation steps:
- Ensure Node.js and npm are installed. Verify with: node -v npm -v
- Use the wizard to add the MCP server to your environment (this aligns with the recommended quick install): npx @posthog/wizard@latest mcp add
- Follow the interactive prompts from the wizard to complete MCP integration with your IDE/ENV. If you are working directly with the monorepo, clone the repository and navigate to services/mcp to run the server locally as documented there.
- If you are managing dependencies manually, you can install the MCP tooling via npx or your preferred package manager as indicated by the wizard prompts, then start the MCP service according to the monorepo guidance.
Note: The MCP server has been moved into the PostHog monorepo. For authoritative setup instructions and paths, refer to the monorepo location: https://github.com/PostHog/posthog/tree/master/services/mcp.
Additional notes
Tips and considerations:
- The MCP server is now part of the PostHog monorepo; use the wizard integration for the recommended setup in Cursor, Claude, Claude Code, VS Code, and Zed.
- The official documentation for Model Context Protocol is available at the provided link in the README; consult it for supported MCP capabilities and protocol details.
- If you encounter connectivity or integration issues, ensure your environment variables are correctly set (see placeholder env vars in common MCP configurations) and verify that the wizard is pulling the latest MCP tooling.
- Since the MCP server is distributed via the wizard/monorepo tooling, you may not need to install a separate npm package; rely on the wizard flow to configure and run the server in your workspace.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
growthbook
Official GrowthBook MCP server for creating flags, getting experiments, and more.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.