Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Posthog MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.
- Builders & DevelopersCOMPOSIOFOR YOUGive Claude, codex, or any harness secure access to 1000+ tools
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
DEVELOPER PLATFORMSDKs, tool execution, and auth infrastructure to ship agentsCLIOne command to add tools and auth to your coding agent - TOOLKITS
- BLOG
- DOCS

How to integrate Posthog MCP with Codex
Connect Codex to Posthog MCP. Add a new member to project with admin role, bulk invite multiple users to your organization, and more using natural language, with authentication handled for you.
PostHog is an open-source analytics platform for tracking user interactions and product metrics. It helps teams refine features, analyze funnels, and reduce churn with actionable insights.
Connect Posthog without auth hassles
We manage OAuth, API keys, token refresh, and scopes — you just build.
Try for freeIntroduction
Also integrate Posthog with
Why use Composio?
Apart from a managed and hosted MCP server, you will get:
- CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
- Large tool responses: Handle them to minimise context rot.
- Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.
How to install Posthog MCP in Codex
Run the setup command
Run this command in your terminal to add the Composio MCP server to Codex.
It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

(Optional) Authenticate with OAuth
To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.
codex mcp login composioVerify the connection
Run codex mcp list to confirm Composio appears as a registered MCP server.
codex mcp listCodex App
Codex App follows the same approach as VS Code.
- Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
- Fill the header and Key fields with
{ "x-consumer-api-key" = "ck_*******" }. - The Key is the Composio API key, that you can find on dashboard.composio.dev
- Click on Authenticate and authorize Codex to your Composio account and you're all set.
- Restart and verify if it's there in
.codex/config.toml
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }What is the Posthog MCP server, and what's possible with it?
The Posthog MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Posthog account. It provides structured and secure access to your product analytics workspace, so your agent can perform actions like managing team permissions, updating feature flag access, handling project insights, and maintaining pipeline plugins on your behalf.
- Role and team management: Seamlessly add members to organization roles, assign specific permissions, and manage dashboard collaborators for effective collaboration.
- Feature flag access control: Let your agent assign role-based access to feature flags, ensuring precise rollout and permission management for new features.
- Project insight handling: Cancel ongoing insights for a project or bookmark key activity notifications, helping your team stay focused on actionable analytics.
- Pipeline plugin and app updates: Automate the process of checking for updates and statuses of pipeline destinations, import apps, and transformation plugins to keep your analytics infrastructure healthy.
- Bulk organization invites: Efficiently send out and manage organization invitations in bulk, streamlining onboarding for new team members and stakeholders.
Conclusion
You've successfully integrated Posthog with Codex using Composio's MCP server. Now you can interact with Posthog directly from your terminal, VS Code, or the Codex App using natural language commands.
Key benefits of this setup:
- Seamless integration across CLI, VS Code, and standalone app
- Natural language commands for Posthog operations
- Managed authentication through Composio
- Access to 20,000+ tools across 1000+ apps for cross-app workflows
- CodeAct workbench for complex tool chaining
Next steps:
- Try asking Codex to perform various Posthog operations
- Explore cross-app workflows by connecting more toolkits
- Build automation scripts that leverage Codex's AI capabilities
Supported Tools
Every Posthog action and event your agent gets out of the box.
Add collaborators to a specific project dashboard.
Add a member to an organization role by submitting their details and UUID in JSON/form, using organization and role IDs.
Add persons to a static cohort by their UUIDs.
Tool to add a product intent to a PostHog project.
Add members with specific roles to a project by providing their user_uuid and level (member or admin).
Add an existing session recording to a playlist.
Append transcript segments to an existing desktop recording for real-time streaming support.
Tool to archive a single survey response.
Set up role-based access for a feature flag using `project_id` and `feature_flag_id`.
POST /api/organizations/{organization_id}/invites/bulk/: Bulk-create organization invites with customizable levels, sender details, and validation checks.
Bulk delete feature flags by filter criteria or explicit IDs.
Tool to bulk delete persons by PostHog person IDs or distinct IDs.
The "/api/projects/{project_id}/insights/cancel/" endpoint allows users to cancel insights for a project by providing a project ID and insight details in JSON or CSV, and confirms cancellation in the response.
Capture (ingest) a single analytics event into PostHog using the public ingestion API and a project API key.
Check for available updates to a pipeline destination plugin by comparing the currently installed version (tag) with the latest version available in the plugin's repository.
Retrieve the latest update information for a specific pipeline import app by its ID within an organization.
Get update status for a specific pipeline transformation plugin by its unique ID within an organization.
Check if a project is currently generating demo data.
Tool to create and query insights using PostHog's Max AI assistant.
Tool to create a new alert configuration in PostHog.
Capture a batch of analytics events to PostHog using the public batch ingestion API.
Create a new batch export to automatically export PostHog data to external destinations like S3, BigQuery, or Snowflake.
Tool to create a new backfill for a BatchExport.
Tool to run a test step for a batch export configuration in PostHog.
Create a customer profile configuration for a PostHog project.
Create custom analytics insights for a PostHog project.
Tool to create a new data color theme in a PostHog project.
Tool to create a new dataset in a PostHog project.
Tool to create a new dataset item in a PostHog project dataset.
Create a new desktop recording and get Recall.
Tool to create a new endpoint for a PostHog project.
Tool to create a new error tracking autocapture control configuration for a PostHog project.
Create a new error tracking release in PostHog.
Tool to create a new error tracking suppression rule for a project.
Create a new evaluation for a PostHog project to assess AI-generated content or responses.
Tool to create a new evaluation run and enqueue a Temporal workflow to asynchronously execute the evaluation.
Create a new event definition in a PostHog project.
Create a new exposure cohort for an experiment in a project by sending a POST request with experiment details and feature flag data.
Tool to create a new experiment holdout group in PostHog.
Tool to create a new experiment saved metric in a PostHog project.
Tool to create a new feature flag in a PostHog project.
Manage feature flags for apps with create, read, update, and delete operations using PostHog's JavaScript Library or dedicated endpoint.
Manage feature flags by creating, reading, updating, and deleting them.
Tool to create a new file system resource in PostHog with specified metadata and hierarchy.
Create a new file system shortcut in a PostHog project.
Tool to create a new metric for a specific group type in a PostHog project.
Create a new hog function in PostHog.
Create a new insight variable for a PostHog project.
Tool to create a new live debugger breakpoint in a PostHog project.
Generate an AI-powered summary of an LLM trace or event.
Tool to generate human-readable text representations of LLM trace events for display, logging, or analysis.
Tool to create a logs export job using HogQL queries in PostHog.
Create a new PostHog organization with configurable security and notification settings.
Create and send an organization invitation to a user via email.
Create a managed reverse proxy record for an organization to enable custom domain routing for PostHog analytics events.
Create a new custom role within a PostHog organization with optional feature flag access permissions.
Create and configure an authentication domain with SAML SSO for a PostHog organization.
Tool to create a new persisted folder in a PostHog project.
Retrieve path analytics for a specific person within a PostHog project.
Tool to create a new product tour in a PostHog project.
This POST endpoint creates actions for a project, accepts various data types, requires project_id and action data, optionally outputs in CSV/JSON, and needs PersonalAPIKeyAuth, returning a 201 with action details.
Create cohorts for a specified project by POSTing JSON-form data to "/api/projects/{project_id}/cohorts/".
The POST endpoint creates a dashboard within a project using a `project_id`, accepting details in JSON/form formats.
Create a new experiment in a specific project using JSON, form, or multipart data.
Create a new analytics insight in a PostHog project.
The API for interacting with Notebooks.
Create a job for a pipeline frontend app config in a project.
Create and retrieve retention insights for a project using PostHog's Query API.
Create a subscription for a given project by providing required details such as delivery method, frequency, and starting date.
Create surveys in a project by providing a project ID and details like type, questions, and targets in JSON, form-data, or urlencoded format.
The `/api/projects/{project_id}/query/` POST endpoint allows users to submit queries for a specific project by providing the project ID in the URL and the query details in JSON or form data.
Create playlists of session recordings for a specified project.
Generate an AI-powered summary for a session recording.
Tool to create or regenerate a summary headline for a survey.
Create a new warehouse saved query in PostHog for data warehouse operations.
Create a new web experiment in a PostHog project.
Delete an alert configuration by providing its UUID and the associated project ID.
Tool to delete a customer profile configuration by ID in a PostHog project.
Tool to delete a desktop meeting recording by its UUID and project ID.
Delete an endpoint and clean up materialized query.
Delete an error tracking autocapture control configuration by UUID and project ID.
Delete a specific error tracking grouping rule by ID.
Delete an error tracking release by its UUID and project ID.
Tool to delete an error tracking suppression rule by its UUID.
Delete an experiment holdout by providing its ID and the associated project ID.
Tool to delete an experiment saved metric by ID from a PostHog project.
DELETE /api/projects/{project_id}/feature_flags/{feature_flag_id}/role_access/{id}: Remove role access from a feature flag in a project by ID, requiring authorization.
Tool to delete a file system resource in PostHog by UUID.
Tool to delete a group usage metric by its UUID within a specific project and group type.
Delete an insight variable by its UUID from a specified project.
Delete a live debugger breakpoint by providing its UUID and project ID.
Delete an organization by its UUID.
Delete a specific batch export by its UUID in an organization.
Delete a specific domain by its UUID within an organization, given valid organization and domain IDs.
Remove a member from a PostHog organization by their user UUID.
Delete a specific pipeline destination in an organization by ID.
Delete a specific pipeline import app plugin associated with an organization by ID.
Delete a specific pipeline transformation plugin for an organization by ID.
Delete a specific plugin (by its integer ID) from the organization (identified by UUID) with no response body on success.
Projects for the current organization.
Delete a proxy record by ID for a specific organization.
Delete a role with a specific UUID in an organization.
Delete a persisted folder by providing its UUID and the associated project ID.
This endpoint is used to read and delete user data.
Delete specific properties from a person record using the $unset operation.
Delete a product tour by providing its UUID and the associated project ID.
Delete a specific batch export by providing the UUID and project ID.
Remove a collaborator from a project dashboard.
Delete an early access feature by ID from a specified project.
Delete an event definition by providing its UUID and the associated project ID.
Soft-delete a specific experiment by its unique integer ID within a project.
Delete a specific user (by UUID) from the explicit members of a given project.
DELETE /api/projects/{project_id}/plugin_configs/{id}/: Removes a specific plugin configuration by ID from a given project.
(Experimental)
Delete a property definition by providing its UUID and the associated project ID.
Remove a user from a custom organization role by deleting their role membership.
Delete a session recording by providing the session's UUID and the associated project ID.
Remove a session recording from a playlist in a PostHog project.
Delete a survey by providing its UUID and the associated project ID.
Tool to delete a warehouse saved query from PostHog.
Delete a web experiment by its ID from a specific project.
This endpoint duplicates a specified cohort as a static one within a project.
Tool to duplicate an existing experiment in PostHog.
Duplicate a survey to multiple projects in a single transaction.
Enables a new early access feature for a project using project ID, payload with details, and PersonalAPIKeyAuth.
Tool to finalize bulk upload of error tracking symbol sets for a PostHog project.
Soft delete an annotation by setting 'deleted' to true via PATCH request.
Tool to generate an AI-suggested name for a PostHog insight based on its query configuration.
The /api/projects/{project_id}/insights/funnel/correlation endpoint generates a correlation insight for funnel analysis in a project, accepting JSON/CSV and needing 'project_id' and insight details.
Retrieve performance and error metrics for a specific plugin configuration (app) in a PostHog project.
Retrieves detailed error information for a specific app metric (plugin config) within a project.
Retrieve details of a specific batch export by its UUID in a project.
Tool to retrieve backfills for a specific batch export within a project.
Retrieve activity details for a specific cohort within a project.
Retrieve details of persons within a cohort by its unique ID in the specified project.
Tool to retrieve the calculation history for a specific cohort.
Tool to retrieve a specific conversation by UUID and project ID.
Tool to retrieve conversations for a specific PostHog project with pagination support.
Retrieve a specific customer profile configuration by its ID for a given project.
Tool to retrieve customer profile configurations for a project with pagination support.
Fetch specific dashboard template details by UUID in a project with 'dashboard_template:read' rights using a PersonalAPIKeyAuth.
Retrieve the JSON schema for dashboard templates of a specific project.
Tool to retrieve a specific data color theme by ID from a PostHog project.
Tool to retrieve data color themes for a specific project.
Retrieve detailed information about a specific dataset within a project.
Tool to retrieve a specific dataset item by its ID from a PostHog project.
Tool to retrieve paginated dataset items for a specific project in PostHog.
Tool to retrieve datasets for a PostHog project.
Tool to retrieve desktop meeting recordings for a specific project.
Get OpenAPI 3.
Tool to retrieve error tracking assignment rules for a project.
Retrieve a specific error tracking autocapture control configuration by its ID.
Tool to retrieve error tracking fingerprints for a project.
Tool to retrieve error tracking grouping rules for a project.
Retrieve details of a specific error tracking release by its UUID and project ID.
Tool to retrieve an error tracking release by its hash identifier.
Tool to retrieve paginated error tracking releases for a specific project in PostHog.
Tool to retrieve error tracking suppression rules for a project.
Tool to retrieve error tracking symbol sets for a PostHog project.
Retrieve details of a specific evaluation by its UUID and project ID.
Tool to retrieve evaluations configured for a specific PostHog environment/project.
Retrieve an event definition by its UUID within a specified project.
Tool to retrieve an event definition by its exact name for a specific project.
Retrieve definitions for events within a specified project by providing the unique project_id.
Tool to retrieve event definitions in Golang format for a specific PostHog project.
Tool to retrieve Python-formatted event definitions for a specific project.
Tool to retrieve TypeScript event definitions for a specific project.
Access detailed experiment info within a project using unique `experiment ID` & `project ID`, with 'experiment:read' rights.
Retrieve details of a specific experiment holdout by ID within a project.
Tool to retrieve experiment holdouts for a specific PostHog project.
Tool to retrieve a specific experiment saved metric by ID from a PostHog project.
Tool to retrieve feature flags eligible for use in experiments.
Retrieve details for experiments that require feature flag implementation in a specific project.
Tool to retrieve experimentation velocity statistics for a PostHog project.
Retrieves export unsubscribe configurations for pipeline import apps in an organization.
Retrieves export unsubscribe configurations for pipeline transformations in an organization.
Tool to retrieve details of a specific external data source by its UUID and project ID.
Tool to retrieve external data sources for a PostHog project with pagination support.
Manage feature flags (creation, reading, updating, and deleting) using PostHog's guides or via JavaScript Library/endpoint for user-specific flag status.
Retrieve detailed information about a specific feature flag in a PostHog project.
Retrieve details for a specific role's access to a feature flag within a project.
Learn to manage feature flags by creating, reading, updating, and deleting them.
Retrieve all active feature flags that depend on a specified flag.
Manage feature flags—create, read, update, delete—using the PostHog JavaScript Library or endpoint for user-specific flag status.
Tool to get IDs of all feature flags matching the current filters.
Tool to retrieve the status of a specific feature flag in a PostHog project.
Tool to retrieve a specific file system resource by UUID and project ID.
Retrieve a specific file system shortcut by UUID from a project.
Get property definitions for a project using project_id, with filters for event names, property types, exclusions, and numerical or feature flags.
Execute a funnel analysis for a specific project.
Retrieve property definitions for a group within a project by providing the project ID.
Retrieve property values by 'group_type_index' and 'key' within a 'project_id'.
Tool to retrieve detailed information about a specific group usage metric by its ID.
Tool to retrieve metrics for a specific group type in a PostHog project.
Retrieve user's hedgehog configuration details by their UUID.
Retrieve historical export data for app metrics by supplying the `project_id` and `plugin_config_id`.
Tool to retrieve a specific hog function by UUID and project ID.
Tool to retrieve hog functions for a specific PostHog project.
Retrieve a log of important activities and changes for a specified project.
Retrieve sharing configurations for a specific insight within a project, requiring project and insight IDs.
Tool to retrieve thresholds configured for a specific insight within a project.
Tool to retrieve a specific insight threshold by ID for a PostHog project.
Tool to retrieve a specific insight variable by UUID and project ID.
Tool to retrieve paginated list of insight variables for a project.
Tool to retrieve a specific live debugger breakpoint by UUID and project ID.
Tool to retrieve live debugger breakpoints for a project.
Tool to retrieve the LLM analytics evaluation configuration for a specific PostHog project.
Tool to list available LLM models for a specific provider in PostHog LLM Analytics.
Tool to retrieve LLM analytics provider keys for a project.
Tool to retrieve available log attributes for a PostHog project.
Tool to check if a project has logs available.
Tool to retrieve unique values for a specific log field key in a PostHog project.
Retrieve organization details by UUID.
Retrieve details of pipeline import app repositories for a specific organization by its UUID.
Tool to list persisted folders for a PostHog project with pagination support.
Retrieve activity logs and metadata for a specific pipeline destination configuration.
Retrieve available pipeline transformation plugins from the organization's plugin repository.
Tool to retrieve a specific product tour by UUID from a PostHog project.
This endpoint is for reading and deleting persons.
Retrieve the activity log of surveys within a specific project by using the project ID.
Retrieve details of a specific role membership within an organization by its UUID.
Tool to retrieve stored group session summaries for a project.
Retrieve session recording playlist details for a specific project by project_id and playlist short_id.
Get survey response statistics for a specific survey.
Tool to get list of archived response UUIDs for HogQL filtering.
Tool to get aggregated response statistics across all surveys for a project.
Retrieve a list of pipeline frontend apps that are available but not currently in use within a specific organization.
Tool to retrieve user home settings including homepage and tab configurations.
Tool to retrieve paginated list of user interviews for a specific project.
Tool to retrieve activity details for a specific warehouse saved query in PostHog.
Tool to retrieve a warehouse saved query from PostHog data warehouse.
Retrieve details of a specific data warehouse table by its UUID.
Tool to retrieve a paginated list of warehouse tables for a specific project.
Tool to retrieve a specific web experiment by ID from a PostHog project.
Tool to retrieve web vitals metrics for a specific pathname in a PostHog project.
Initiates domain verification for SAML SSO authentication.
Tool to retrieve all alerts configured for a specific PostHog project.
Tool to list all projects the authenticated user can access by enumerating organizations and aggregating each organization's projects.
Create, Read, Update and Delete annotations.
List all feature flags for a specific project with pagination support.
List runs for a batch export by `batch_export_id` within a project.
Tool to list tickets with person data attached for a project.
Retrieve a list of dashboard sharing configurations for a specified project and dashboard.
Tool to list all endpoints for the team.
Tool to list all versions for a specific endpoint in PostHog.
Tool to list error tracking autocapture controls for a PostHog project.
Tool to list experiment saved metrics for a project with pagination support.
This GET endpoint returns role access details for a feature flag in a project, needs 'project_id' & 'feature_flag_id', and offers optional 'limit' & 'offset' for pagination.
Tool to list file system resources for a PostHog project with pagination support.
List all groups of a specific group type.
Tool to retrieve breakpoint hit events from ClickHouse with optional filtering and pagination.
Tool to fetch active live debugger breakpoints for external client applications using Project API key.
The API for interacting with Notebooks.
This endpoint is for reading/deleting persons.
Retrieve paginated batch exports for an organization, with filters and optional limits.
Fetch a list of an organization's domains with pagination using `limit` and `offset`.
Tool to list organization-level integrations with read-only access.
Retrieve a paginated list of all pending and active invites for an organization.
List all members of a specific organization with pagination support.
Retrieve a paginated list of an organization's pipeline destinations by ID, with optional count and offset parameters.
Retrieve a paginated list of available pipeline frontend apps for a specific organization.
Retrieve a paginated list of pipeline import applications for a specified organization by ID.
Retrieve paginated pipeline transformation lists for an organization using `limit` and `offset`, requiring a UUID and PersonalAPIKeyAuth.
Retrieve the list of plugins for a specified organization.
Projects for the current organization.
Retrieve a paginated list of custom domain proxy records for an organization.
List all roles in an organization with pagination support.
List pipeline destination configurations for a given project by ID, with optional pagination through 'limit' and 'offset' query parameters.
List all pipeline frontend app configurations for a project.
Tool to retrieve a paginated list of product tours for a specific project.
Get paginated project actions with filters by format.
Retrieve an indexed list of batch exports for a specified project with optional pagination.
Retrieve logs for a specific plugin configuration within a project.
Retrieve the list of collaborators for a specific dashboard within a project.
Get paginated dashboards for a project by ID, using 'limit' and 'offset'.
Retrieve available dashboard templates for a PostHog project.
Retrieve a paginated list of a project's early access features by ID with 'limit' and 'offset' parameters.
Get a paginated list of experiments within a project using 'limit' and 'offset' parameters.
Retrieve a paginated list of export items for a specific project by ID with optional 'limit' and 'offset' query parameters.
List all group types configured for a PostHog project.
Retrieve a list of project membership details for a specified project by ID.
List all pipeline transformation configurations for a specific project.
List pipeline import app configurations for a specified project, with pagination options 'limit' and 'offset'.
List all plugin configurations for a specific project.
Retrieve a paginated list of session recordings for a specific project, including viewing times and user interactions.
Retrieve a paginated list of subscriptions for a given project by its ID.
Get paginated surveys for a project with its ID, using 'limit' and 'offset'.
List all users assigned to a specific role within an organization.
List all session recording playlists for a PostHog project, including both user-created playlists and system-generated synthetic playlists (like "Watch history", "Recordings with comments", etc.
Retrieve a list of sharing configurations for a specific session recording in a project, including creation timestamps and access tokens.
Retrieve a list of unused pipeline transformations for a specified organization, identified by UUID.
API endpoint fetches a user list with staff filter, pagination (limit, offset), and requires a personal API key.
Tool to retrieve warehouse saved queries for a project.
Tool to retrieve a paginated list of web experiments for a specific project.
Learn to manage feature flags (creation, access, modification, removal) using PostHog's docs, with options to use a JavaScript Library or a dedicated endpoint for user-specific flag status.
Create, Read, Update and Delete annotations.
Retrieve all feature flag definitions for a project to enable local evaluation.
Hard delete of this model is not allowed.
Marks one or more insights as viewed by the current user for a specified project.
Record insights as viewed by updating their last_viewed_at timestamps.
Hard delete of this model is not allowed.
Endpoint to move a tile from one dashboard to another.
Tool to update an existing alert configuration in PostHog.
Update an existing batch export configuration in PostHog by partially modifying fields like name, paused status, destination, or schedule.
Tool to mark a specific product onboarding as complete for a PostHog project.
Update a customer profile configuration by partially modifying fields like content, scope, or sidebar.
Tool to partially update a dataset in a PostHog project.
Tool to partially update a dataset item by its ID in a PostHog project.
Tool to partially update an endpoint for a project.
Partially update an error tracking autocapture control configuration.
Update an evaluation by patching specific fields.
Endpoint enables partial updates to an experiment in a project using PATCH, needing `project_id`, `experiment_id`, and various payload types.
Tool to partially update an experiment saved metric by ID in a PostHog project.
Tool to update an external data source in PostHog by patching specific fields like description or configuration.
Tool to partially update a file system resource by UUID and project ID.
Tool to partially update a file system shortcut in PostHog by its UUID.
Tool to update a group usage metric configuration in PostHog.
Tool to partially update a hog function by UUID and project ID.
Update an insight variable by partially modifying its properties (name, type, default value, etc.
Tool to update a live debugger breakpoint by UUID and project ID.
Updates selected properties of a domain in an organization via PATCH request, supports various data formats but SAML fields are immutable.
PATCH /api/organizations/{organization_id}/roles/{id}/: Update partial details of a role by ID within an organization, including name and feature flag access level.
Tool to partially update a persisted folder by ID for a PostHog project.
This endpoint allows reading and deleting individuals.
Tool to partially update a product tour in PostHog.
Update an action within a project with a specified ID.
Create, Read, Update and Delete annotations.
Update partial cohort details for a specific project.
Endpoint PATCH /api/projects/{project_id}/dashboards/{id}: Allows partial update of a project's dashboard with specified ID.
Learn to manage feature flags (create, read, update, delete) using PostHog's docs, with options for JavaScript Library use or dedicated endpoints for user flag status.
The PATCH endpoint supports partial insight updates in a project, allows format specification (CSV/JSON), and requires `PersonalAPIKeyAuth` and `insight:write` scope for access.
Update a project member's role using their UUID in a specific project.
The API for interacting with Notebooks.
PATCH /api/projects/{project_id}/property_definitions/{id}/: Partially update a specific property definition by UUID in a project.
PATCH /api/projects/{project_id}/subscriptions/{id}/: Update partial details of a specific project subscription by ID.
Update partial survey details by PATCH to /api/projects/{project_id}/surveys/{id}/ with UUID.
Update session recording playlists using PATCH on the endpoint with `project_id` and `short_id`.
Tool to update user profile settings in PostHog.
Tool to partially update a warehouse saved query in PostHog.
Tool to partially update a warehouse table by patching specific fields like name, format, or schema.
Tool to partially update a web experiment in PostHog.
Pause a batch export in PostHog to temporarily stop scheduled data exports.
Pause an organization-level batch export in PostHog.
Create comprehensive funnel analysis for a PostHog project with advanced configuration options.
The `/api/projects/{project_id}/insights/trend/` endpoint provides project trends in CSV/JSON, requires `project_id` and optional parameters, and needs 'PersonalAPIKeyAuth'.
Rearrange (reorder) the configuration of frontend apps in a project's data pipeline.
Rearrange the execution order of pipeline transformation configurations for a project.
Rearrange app import settings in a project using PATCH /api/projects/{project_id}/.
Rearrange the execution order of pipeline destination configurations for a project.
Tool to create a recalculation request for experiment timeseries data.
Reconfigure the execution order and status of plugin configurations within a project.
Replace a desktop meeting recording in PostHog using PUT.
Reset a distinct_id for a deleted person.
(Experimental)
Returns basic details about the last 5 insights viewed by this user.
Retrieves event IDs matching a filter with one session ID and at least one event/action criterion.
The API for interacting with Notebooks.
The API for interacting with Notebooks.
The API for interacting with Notebooks.
This endpoint is for reading and deleting person data; use the capture API, `$set`/`$unset` properties, or SDKs for creation and updates.
Retrieves persons who entered or progressed through a funnel in the specified project.
Retrieve pipeline frontend app details for an organization using its 'organization_id' (UUID).
Retrieve details for repository pipeline destinations within a specific organization by its UUID.
Retrieve org pipeline transformation activity
Retrieve export unsubscribe configurations for an organization's pipeline frontend apps.
Retrieve activity details for plugins in a specified organization by ID.
Retrieve a specific plugin's details for an organization.
Retrieve plugin repository details for a specific organization by its UUID, including plugin type, name, URL, and more.
Retrieve export unsubscribe configurations for plugins in an organization.
Projects for the current organization.
Retrieve the details of a specific role within an organization using its UUID.
Retrieve unused pipeline import apps for a specified organization.
Retrieve a paginated list of organizations with optional 'limit' and 'offset' query parameters.
Tool to retrieve a specific persisted folder by its UUID and project ID.
This endpoint is for reading and deleting persons; for creating/updating, use the capture API, `$set`/`$unset` properties, or SDKs.
This endpoint is used to read and delete persons.
Retrieve unique values for a specific person property across all persons in a project.
Retrieve activity details for pipeline destinations within an organization.
Retrieve details of a specific pipeline destination config for a project by its ID.
Fetch a pipeline destination's details by ID and organization UUID, using a PersonalAPIKeyAuth with read access to plugins.
Retrieve details of a specific pipeline destination plugin within an organization by its unique ID.
Retrieve activity details for pipeline front-end apps within a specified organization by organization ID.
Retrieve detailed information about a specific pipeline frontend app within an organization.
Retrieve details for a specific pipeline frontend app's source by its ID within an organization.
Retrieve the frontend-specific configuration for a pipeline frontend app by its config ID and project ID.
Retrieve activity details of pipeline import apps for a given organization.
Retrieve detailed information about a specific pipeline transformation plugin by ID.
Retrieve the source details of a pipeline transformation for a specific plugin by ID within an organization.
Retrieve the frontend configuration details for a specific pipeline transformation by ID within a given project.
Retrieve plugin source details by organization and plugin ID.
This endpoint retrieves update information for a specific plugin within an organization's pipeline frontend app by its integer ID and the organization's UUID.
Retrieve the latest update status for a specific plugin, identified by its integer ID, within an organization specified by UUID.
Get details on a project action by ID.
Retrieve the activity log for a specified project, showing recent changes and events.
Retrieve the activity log history for insights in a specific project.
Retrieve a project's activity log with cursor-based pagination.
Create, Read, Update and Delete annotations.
Retrieve detailed information about a specific cohort within a project using its ID.
Retrieve activity log for a specific project's cohorts.
Retrieve a paginated list of cohorts for a specific project using `project_id`.
Retrieve details of a specific early access feature in a project by ID.
Retrieve details for a specific event by ID within a project.
Retrieve event values for a specific project by ID.
Retrieve experiment timeseries results within a project by project and experiment ID.
Retrieve detailed info on a specific export of a project using its unique ID.
Retrieve funnel correlation insights for a specific project.
Retrieves specified group details within a project by group key and type index.
Retrieve insights activity for a specific project and insight ID, offering data in JSON or CSV format.
Retrieve details for a specific project insight by ID, with options to format as JSON/CSV, request refresh, and specify dashboard context.
The GET `/api/projects/{project_id}/insights/` endpoint retrieves a paginated list of insights for a specified project.
Retrieve detailed information about a specific user's membership level and status within a project by their UUID.
This endpoint allows reading and deleting individuals.
Retrieve session values for a specified project.
Retrieve a specific subscription for a project, identified by 'project_id' and 'id'.
Retrieves saved trend insights from a PostHog project.
Allows a caller to provide a list of event names and a single property name Returns a map of the event names to a boolean representing whether that property has ever been seen with that event_name
Retrieve details of a specific property definition by UUID within a project.
Retrieve related groups for a specific project and user.
Retrieve property definitions for a specific project by providing the project's ID.
Retrieve detailed information about a specific session recording by providing the session's UUID and associated project ID.
Retrieve error clusters from session recordings for a specified project.
Retrieve the list of session recordings within a playlist.
Retrieve properties of session recordings for a given project by ID, including activity metrics, timestamps, and participant details.
Snapshots for a session can be loaded from S3 (if old) or Redis (if recent).
Retrieve details of a specific batch export for an organization by its UUID.
Retrieve details for a specific batch export run within a project by ID.
Retrieve complete details of a specific authentication domain within an organization by its UUID.
Retrieve the content of a specific exported asset by ID within a project.
Retrieve historical export data for a specific plugin configuration within a project.
Retrieve the configuration details of a specific pipeline frontend app by providing its unique ID and the associated project ID.
Retrieve details of a specific dashboard within a project.
Retrieve activity logs for specific survey in a project, identified by UUIDs.
Retrieve survey details using survey UUID and associated project ID.
Retrieve the count of survey responses for a specific project by its ID.
Retrieve export unsubscribe configurations for an organization's pipeline destinations.
Fetch user profile info including team, organization, and notifications.
Tool to retry a failed or incomplete batch export run.
Delete an organization invite by its UUID.
Tool to execute a PostHog endpoint with optional materialization and filtering.
This endpoint allows reading and deleting persons; for creation or updates, use the capture API, `$set`/`$unset` properties, or SDKs.
Tool to initiate bulk upload of error tracking symbol sets for a PostHog project.
Tool to initiate symbol set upload session for error tracking in PostHog.
Tool to generate an AI-powered summary of survey responses for a specific question.
Tool to translate text to a target language using PostHog's LLM analytics translation endpoint.
The `/api/projects/{project_id}/exports/` endpoint triggers a project export, requiring `project_id` and `export_format`.
Tool to unarchive a single survey response.
Tool to unpause a paused batch export in PostHog.
Tool to unpause a paused batch export at the organization level.
Tool to fully update an existing alert configuration in PostHog using PUT method.
Create, Read, Update and Delete annotations.
Tool to update an existing batch export configuration in PostHog.
Update a customer profile configuration by completely replacing it with new data via PUT request.
Tool to update a dataset in PostHog by its ID and project ID.
Tool to fully update a dataset item by its ID in a PostHog project using PUT method.
Update desktop meeting recording details via PATCH.
This PATCH endpoint updates a specific early access project feature.
Tool to update an existing endpoint for a PostHog project.
Tool to fully update an error tracking autocapture control configuration for a PostHog project.
Tool to update an existing evaluation in PostHog using PUT request.
Update an event definition by sending a PUT request to '/api/projects/{project_id}/event_definitions/{id}/' using the UUID and project ID, provided you have 'event_definition:write' authorization.
Update an experiment by sending a PUT request with `project_id` and `id`, including new details as JSON/form data.
Tool to partially update an experiment holdout in a PostHog project.
Tool to fully update an experiment holdout in PostHog using PUT method.
Tool to update an existing experiment saved metric in PostHog.
Tool to update an existing external data source in PostHog (e.
Manage feature flags for your app with creation, reading, updating, and deletion options.
Tool to update a file system resource in PostHog by UUID and project ID.
Tool to update a specific group usage metric by its ID.
Tool to update a hog function by UUID and project ID using PUT method.
Update an insight variable by replacing all its properties.
Tool to update a live debugger breakpoint for a project.
Update specific details of an organization using its UUID.
Tool to update an existing organization-level batch export configuration in PostHog.
PUT /api/organizations/{id}/: Update organization details by providing a UUID as 'id'.
Update an organization's authentication domain settings, including SAML SSO configuration and user provisioning policies.
Update an organization member's access level and permissions.
Update member details in an organization by ID and user UUID.
Update an organization's proxy record configuration.
Update an organization role by submitting its UUID and organization_id in UUID format.
Tool to update an existing persisted folder in PostHog.
Request data's "properties" will be updated on a person using "$set" event, affecting only listed properties without deletion or other changes.
This endpoint allows for reading and deleting individuals.
Update an existing product tour in PostHog.
PUT endpoint '/api/projects/{project_id}/actions/{id}/' updates actions in a project by ID, accepts JSON/form data, supports 'format' query, and needs 'action:write' authentication.
Tool to update a batch export configuration within a project using PUT method.
Update cohort details of a specific project by ID.
Endpoint to update an existing dashboard within a project.
Update a specific early access feature of a project by providing the `project_id` and feature `id` (UUID).
Update an existing event definition for a specified project using its UUID.
PATCH /api/projects/{project_id}/groups_types/update_metadata: Update group type metadata for a specific project using its project_id.
Endpoint "/api/projects/{project_id}/insights/{id}/" allows for updating an insight's details for a given project and insight ID, supporting JSON and CSV formats, with fields like name, query, and various timestamps.
Update explicit project membership using UUIDs.
The API for interacting with Notebooks.
Update a property definition in a project by its UUID.
Update an existing session recording playlist for a project with the specified project_id and playlist short_id.
Tool to update project settings and configuration within a PostHog organization.
Update a subscription for a specific project.
The `/api/projects/{project_id}/surveys/{id}/` PUT endpoint updates survey details in a project using survey UUID and project ID, accepts JSON/form/multipart data, needs `survey:write` permission, and returns the updated survey.
Tool to update user home settings including homepage and tab configurations.
Update a warehouse saved query in PostHog by completely replacing it with new data.
Tool to completely update a web experiment in PostHog using PUT method.
Tool to validate LLM provider API keys without persisting them to PostHog.
How to build Posthog MCP Agent with another framework
ChatGPT Work
Use Posthog MCP with ChatGPT Work

Antigravity
Use Posthog MCP with Antigravity
OpenAI Agents SDK
Use Posthog MCP with OpenAI Agents SDK
Claude Agent SDK
Use Posthog MCP with Claude Agent SDK
Claude Code
Use Posthog MCP with Claude Code
Claude Cowork
Use Posthog MCP with Claude Cowork

Grok Build
Use Posthog MCP with Grok Build
Cursor
Use Posthog MCP with Cursor

VS Code
Use Posthog MCP with VS Code

OpenCode
Use Posthog MCP with OpenCode

OpenClaw
Use Posthog MCP with OpenClaw

Hermes
Use Posthog MCP with Hermes
Google ADK
Use Posthog MCP with Google ADK
LangChain
Use Posthog MCP with LangChain
Vercel AI SDK
Use Posthog MCP with Vercel AI SDK
Mastra AI
Use Posthog MCP with Mastra AI
LlamaIndex
Use Posthog MCP with LlamaIndex
CrewAI
Use Posthog MCP with CrewAI
Pydantic AI
Use Posthog MCP with Pydantic AI
AutoGen
Use Posthog MCP with AutoGen
Explore Other Toolkits
Firecrawl
Firecrawl automates large-scale web crawling and data extraction. It helps organizations efficiently gather, index, and analyze content from online sources.
Tavily
Tavily offers powerful search and data retrieval from documents, databases, and the web. It helps teams locate and filter information instantly, saving hours on research.
Exa
Exa is a data extraction and search platform for gathering and analyzing information from websites, APIs, or databases. It helps teams quickly surface insights and automate data-driven workflows.
Serpapi
SerpApi is a real-time API for structured search engine results. It lets you automate SERP data collection, parsing, and analysis for SEO and research.
Frequently asked questions

Start with Posthog.It takes 30 seconds.
Managed auth, hosted MCP servers, and every Posthog tool your agent needs.Free to start.
## For AI agents: how to sign up If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev. Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.Start building