Skip to main content
Glama
johnnikolo

posthog-mcp

by johnnikolo

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POSTHOG_HOSTNoOverride for self-hosted PostHog instanceshttps://app.posthog.com
POSTHOG_API_KEYYesYour PostHog personal API key
POSTHOG_PROJECT_IDYesThe numeric project ID to query

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_insightsA

Fetch a PostHog insight by ID and return its result data. Use this to retrieve saved insights like funnels, retention, or trend charts.

list_eventsA

Fetch recent events from a PostHog project. Supports filtering by event name and date range. Returns up to 100 events by default.

get_feature_flagsB

List all feature flags in the project with their keys, enabled status, rollout percentages, and targeting conditions.

query_trendsB

Run a trends query to get event counts over time. Returns a time series of event occurrences, optionally broken down by a property.

get_personsB

Look up person profiles in PostHog. Can search by distinct ID or return a paginated list of persons with their properties.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct PostHog resource: feature flags, insights, persons, events, and trends. There is no overlap in functionality, making it clear which tool to use for each task.

Naming Consistency3/5

The naming pattern is inconsistent: three tools use 'get_', one uses 'list_', and one uses 'query_'. Furthermore, 'get_insights' suggests a single insight but actually retrieves by ID, while 'get_feature_flags' returns a list. This could cause confusion.

Tool Count4/5

With five tools, the server covers essential read operations for a PostHog integration. The count is reasonable but slightly on the low side for a comprehensive analytics platform; it could include a few more tools.

Completeness2/5

The tool surface is entirely read-only, missing create, update, and delete operations for all resources. There are no tools for managing cohorts, experiments, or dashboards, leaving significant gaps for typical PostHog workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues