Skip to main content
Glama

PostHog MCP Server

Type 3 DAuth MCP server for the PostHog product analytics API.

Tools

Tool

Description

list_projects

List all projects in the organization

query_events

Query events with optional filters

query_insights

Query TRENDS, FUNNELS, or RETENTION insights

list_feature_flags

List all feature flags

get_feature_flag

Get a specific feature flag by ID

create_annotation

Create a graph annotation

Related MCP server: posthog-mcp

Auth Setup

  1. Go to PostHog → Settings → Personal API Keys

  2. Create a key with project read access

  3. Copy the key (starts with phc_)

Environment Variables

POSTHOG_API_KEY=phc_your_key_here   # Required Credential (DAuth)

Deploy

pip install -e .
python src/main.py

Usage

result = await runner.run(
    input="List my PostHog projects",
    mcp_servers=["JiayuWang/posthog-mcp"],
)

Safety Notes

  • create_annotation writes to PostHog but is non-destructive

  • All other tools are read-only

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityStale
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables interaction with PostHog analytics platform, allowing users to list projects, create annotations, and search insights through natural language in Claude Desktop.
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Metabase through its API, allowing users to list cards, databases, collections, execute queries, and create cards or bookmarks.
    5
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables interaction with PostHog's product analytics platform through natural language, allowing users to manage feature flags, view errors, and access other platform features.
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JiayuuWang/posthog-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server