
PostHog MCP server
Connect PostHog to ChatGPT, Claude, Gemini, Cursor or any MCP client. Let AI read and update your PostHog properties, events and sessions. No code required.
- Categories
- Analytics, HR & Directory, Forms, Cdp
- Access
- Read and write
- MCP tools
- 20
- Works with
- ChatGPT, Claude, Gemini, Cursor
- Supported objects
- Property, Event, Session, Visitor, Report, Employee, Form and Segment
PostHog MCP tools
Every PostHog connection comes with its own MCP server. These are all 20 tools it gives ChatGPT, Claude, Gemini and other AI clients.
| Tool | What it does | Access |
|---|---|---|
| list_hris_employees | List employees from PostHog. | Read |
| get_hris_employee | Retrieve a single employee by its ID from PostHog. | Read |
| update_hris_employee | Update an existing employee by its ID in PostHog. | Write |
| remove_hris_employee | Delete an employee by its ID from PostHog. | Write |
| list_metadata_metadatas | List metadatas from PostHog. | Read |
| update_metadata_metadata | Update an existing metadata by its ID in PostHog. | Write |
| remove_metadata_metadata | Delete a metadata by its ID from PostHog. | Write |
| create_analytics_property | Create a property in PostHog. | Write |
| list_analytics_properties | List properties from PostHog. | Read |
| get_analytics_property | Retrieve a single property by its ID from PostHog. | Read |
| update_analytics_property | Update an existing property by its ID in PostHog. | Write |
| remove_analytics_property | Delete a property by its ID from PostHog. | Write |
| list_analytics_events | List events from PostHog. | Read |
| get_analytics_session | Retrieve a single session by its ID from PostHog. | Read |
| list_analytics_sessions | List sessions from PostHog. | Read |
| create_analytics_visitor | Create a visitor in PostHog. | Write |
| list_analytics_visitors | List visitors from PostHog. | Read |
| get_analytics_visitor | Retrieve a single visitor by its ID from PostHog. | Read |
| update_analytics_visitor | Update an existing visitor by its ID in PostHog. | Write |
| list_analytics_reports | List reports from PostHog. | Read |
Supported PostHog data
The PostHog objects AI can work with, and what it can do with each.
Analytics
Fields: id, created_at, updated_at, name, timezone, parent_id
Fields: id, created_at, name, event_type, property_id, session_id, visitor_id, page_url, page_title, page_referrer, device, browser and 11 more
Fields: id, created_at, property_id, visitor_id, start_at, end_at, duration_seconds, page_views, events_count, source, medium, campaign and 1 more
Fields: id, created_at, updated_at, property_id, email, name, country, city, timezone, metadata, first_seen_at, last_seen_at and 2 more
Fields: created_at, property_id, start_at, end_at, metrics
HR & Directory
Fields: id, name, emails, first_name, last_name, hired_at, employee_roles
Forms
Fields: id, name, description, created_at, is_active, fields
Cdp
Fields: id, name, description, definition, type, compute_mode, size, is_active, created_at
Connect PostHog to your AI in minutes
- Step 1
Connect PostHog
Sign up for UnifiedMCP and sign in to your PostHog account. Your credentials stay encrypted and you can disconnect at any time.
- Step 2
Copy your MCP server URL
UnifiedMCP creates an MCP server for your PostHog connection, with the tools listed above.
- Step 3
Add it to your AI client
Paste the URL into Claude (Settings → Connectors), ChatGPT (developer mode → Apps & Connectors), Gemini, Cursor or any MCP client, then ask about your PostHog data.
PostHog integration FAQ
What is the PostHog MCP server?
The PostHog MCP server lets AI assistants such as ChatGPT, Claude and Gemini work with your PostHog account over the Model Context Protocol (MCP). Connect PostHog once in UnifiedMCP and you get a personal MCP server URL to add to your AI client. It exposes 20 PostHog tools.
How do I connect PostHog to ChatGPT or Claude?
Sign up for UnifiedMCP, connect your PostHog account, and copy the MCP server URL for that connection. In Claude, go to Settings → Connectors → Add custom connector and paste the URL. In ChatGPT, turn on developer mode, then go to Apps & Connectors → Create and paste the URL. Any other MCP-compatible client, such as Cursor or VS Code, works the same way.
What PostHog data can AI access?
UnifiedMCP can read PostHog properties, events, sessions, visitors, reports, employees, forms and segments. It can also create or update properties, visitors and employees.
Can I control what AI can do in PostHog?
Yes. Each MCP server only acts on the PostHog account you connected, with the permissions you granted when connecting. You can disconnect it at any time.
How much does the PostHog integration cost?
PostHog is included in every UnifiedMCP plan: it is one of 2,311+ integrations. You can start on the Free plan; see the pricing page for plan limits.
More Analytics integrations
Connect PostHog alongside the other apps your team uses, and let AI work across all of them.
Give AI access to PostHog today
Connect PostHog and 2311+ other apps to ChatGPT, Claude and Gemini. No code required.