PostHog logo

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.

ToolWhat it doesAccess
list_hris_employeesList employees from PostHog.Read
get_hris_employeeRetrieve a single employee by its ID from PostHog.Read
update_hris_employeeUpdate an existing employee by its ID in PostHog.Write
remove_hris_employeeDelete an employee by its ID from PostHog.Write
list_metadata_metadatasList metadatas from PostHog.Read
update_metadata_metadataUpdate an existing metadata by its ID in PostHog.Write
remove_metadata_metadataDelete a metadata by its ID from PostHog.Write
create_analytics_propertyCreate a property in PostHog.Write
list_analytics_propertiesList properties from PostHog.Read
get_analytics_propertyRetrieve a single property by its ID from PostHog.Read
update_analytics_propertyUpdate an existing property by its ID in PostHog.Write
remove_analytics_propertyDelete a property by its ID from PostHog.Write
list_analytics_eventsList events from PostHog.Read
get_analytics_sessionRetrieve a single session by its ID from PostHog.Read
list_analytics_sessionsList sessions from PostHog.Read
create_analytics_visitorCreate a visitor in PostHog.Write
list_analytics_visitorsList visitors from PostHog.Read
get_analytics_visitorRetrieve a single visitor by its ID from PostHog.Read
update_analytics_visitorUpdate an existing visitor by its ID in PostHog.Write
list_analytics_reportsList reports from PostHog.Read

Supported PostHog data

The PostHog objects AI can work with, and what it can do with each.

Analytics

PropertyRead & write

Fields: id, created_at, updated_at, name, timezone, parent_id

EventRead only

Fields: id, created_at, name, event_type, property_id, session_id, visitor_id, page_url, page_title, page_referrer, device, browser and 11 more

SessionRead only

Fields: id, created_at, property_id, visitor_id, start_at, end_at, duration_seconds, page_views, events_count, source, medium, campaign and 1 more

VisitorRead & write

Fields: id, created_at, updated_at, property_id, email, name, country, city, timezone, metadata, first_seen_at, last_seen_at and 2 more

ReportRead only

Fields: created_at, property_id, start_at, end_at, metrics

HR & Directory

EmployeeRead & write

Fields: id, name, emails, first_name, last_name, hired_at, employee_roles

Forms

FormRead only

Fields: id, name, description, created_at, is_active, fields

Cdp

SegmentRead only

Fields: id, name, description, definition, type, compute_mode, size, is_active, created_at

Connect PostHog to your AI in minutes

  1. 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.

  2. Step 2

    Copy your MCP server URL

    UnifiedMCP creates an MCP server for your PostHog connection, with the tools listed above.

  3. 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.