# PostHog MCP tools for AI agents

Source: https://corespeed.io/catalog/posthog

Connect PostHog to Claude Code, Codex, Cursor or any MCP agent through CoreSpeed. List projects, insights, dashboards, and events, and create annotations in a connected PostHog project (US Cloud only for now — EU-region accounts are not yet supported). Your agent works through your own PostHog account and gets 7 PostHog tools; CoreSpeed holds the credential, so the agent never sees the token. Calling it is free.

## Tools

- `posthog__get_me`: Fetch the connected PostHog user's profile (email, organization, current project).
- `posthog__list_projects`: List the projects (teams) the connected PostHog account can access.
- `posthog__list_insights`: List insights (saved queries/charts) in a PostHog project, optionally filtered by a search term.
- `posthog__get_insight`: Fetch a single PostHog insight's definition and last-computed result by id.
- `posthog__list_dashboards`: List the dashboards in a PostHog project.
- `posthog__create_annotation`: Create an annotation in a PostHog project — a dated marker (e.g. a release or incident) that appears on trend charts. Defaults to the current time when no date_marker is given.
- `posthog__list_events`: List recent events captured in a PostHog project, optionally filtered to a single event name.

## Questions

### Does PostHog need my own account?

Yes. Connect your own PostHog account once; CoreSpeed holds the credential, and your agents get tools, never the token.

### What does PostHog cost on CoreSpeed?

Calling it is free.

### Which agents can use PostHog?

Any MCP client, such as Claude Code, Codex, or Cursor. Give your agent the setup line, and the tools join its tool list. Set up an agent: https://corespeed.io/docs/mcp

## Related pages

- [PostHog for Claude Code, Codex, and Cursor](https://corespeed.io/integrations/posthog): Read PostHog insights and dashboards from your agent. Get the numbers behind a question, and mark releases on your charts.

## Links

- Catalog: https://corespeed.io/catalog
- Set up an agent: https://corespeed.io/SKILL.md
- Pricing: https://corespeed.io/pricing (Markdown: https://corespeed.io/pricing.md)
