Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion contents/docs/model-context-protocol/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@ The [PostHog Wizard](https://github.com/PostHog/wizard) can install the MCP serv
npx @posthog/wizard mcp add
```

## Manual setup
## Claude Code plugin

You can also install PostHog as a [Claude Code plugin](https://github.com/PostHog/ai-plugin), which provides the same MCP tools along with built-in slash commands for quick access:

```bash
claude plugin install posthog
```

After installing, run `/mcp` in Claude Code and follow the browser prompts to log in to PostHog.

The plugin includes slash commands like `/posthog:flags`, `/posthog:insights`, `/posthog:errors`, `/posthog:experiments`, and more.

## Manual MCP setup

Run the following command in your shell. The next time you run [Claude Code](https://www.anthropic.com/claude-code), it will have access to the PostHog MCP.

Expand Down
10 changes: 9 additions & 1 deletion contents/docs/model-context-protocol/codex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ The [PostHog Wizard](https://github.com/PostHog/wizard) can install the MCP serv
npx @posthog/wizard mcp add
```

## Manual setup
## Codex plugin

You can also install PostHog as a [Codex plugin](https://github.com/PostHog/ai-plugin):

```bash
codex plugin install posthog
```

## Manual MCP setup

Run the following command in your shell. [Codex](https://openai.com/index/introducing-codex/) supports native OAuth, so you'll be prompted to log in to PostHog when you first use the MCP.

Expand Down
1 change: 1 addition & 0 deletions contents/docs/model-context-protocol/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ We're working on adding more supported tools to the wizard. If you're using anot

## Next steps

- [PostHog AI plugin](https://github.com/PostHog/ai-plugin): Install PostHog as a plugin for Claude Code, Codex, Cursor, and Gemini CLI
- [Lovable integration](/docs/integrations/lovable): Set up PostHog in your Lovable project
- [Replit integration](/docs/integrations/replit): Set up PostHog with Replit Agent
- [v0 integration](/docs/integrations/v0): Set up PostHog with v0 and the Vercel Flags SDK
Expand Down
Loading