liquidium mcp
A server that allows users to interact with PostHog analytics platform through Claude Desktop, enabling listing projects, creating annotations, searching insights, and accessing documentation.
A server that allows users to interact with PostHog analytics platform through Claude Desktop, enabling listing projects, creating annotations, searching insights, and accessing documentation.
A Model Context Protocol (MCP) server for interacting with PostHog analytics through Liquidium. Create annotations and manage projects directly through Claude Desktop or Smithery!
The easiest way to use Liquidium MCP is through Smithery:
Prerequisites
Python 3.10 or higher
pip
or uv
package managerPostHog API Key with annotation:write
and project:read
scopes obtained from your project settings
Installation
# clone the repo
git clone https://github.com/Shudufhadzo/liquidium-mcp.git
cd liquidium-mcp
# Create and activate virtual environment
python -m venv .venv
# On Windows
.venvScriptsactivate
# On macOS/Linux
source .venv/bin/activate
# Install dependencies
pip install -e .
Configuration
Create a .env
file in the project root:
PERSONAL_API_KEY=phx_your_posthog_api_key_here
Claude Desktop Setup
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%Claudeclaude_desktop_config.json
claude_desktop_config.json
(adjust paths according to your system):
{
"mcpServers": {
"posthog": {
"command": "/path/to/python", # Get this by running: which python
"args": [
"-m",
"posthog_mcp",
"--directory",
"/path/to/your/posthog-mcp" # Full path to this project
]
}
}
}
Check the latest documentation on setting up Claude Desktop as MCP client if you ran into any issues.After setup, you'll see a hammer icon in Claude Desktop. The following commands are available:
Ask Claude:
"List my PostHog projects"
Ask Claude:
"List my PostHog insights" or "Search for revenue insights in my PostHog"
You can ask:
Using the Project ID you get from the list of projects, ask Claude:
"Create a PostHog annotation in project 53497 saying 'Deployed v1.2.3'"
or with a specific date:
"Create a PostHog annotation in project 53497 for March 20th saying 'Started new marketing campaign'"
~/Library/Logs/Claude/mcp*.log
(macOS) or %APPDATA%Claudelogs
(Windows)claude_desktop_config.json
are absolute pathsFeel free to open issues and PRs! We follow PostHog's contribution guidelines.