productmetrics
Provides tools for interacting with the PostHog REST API, enabling management and querying of projects, insights, feature flags, and experiments, including running HogQL queries.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
productmetrics
PostHog product analytics as MCP tools, talking to the PostHog REST API. productmetrics is a clean-room rebuild of the core surface of the PostHog MCP server, under a new name: fresh code, no copied branding. The original is PostHog's hosted remote MCP (OAuth); hosted OAuth is NOT reproduced — this rebuild is a personal-API-key REST client for the same API.
Tools (core subset, 12)
list_projects, get_project, list_insights, get_insight,
query_insight, run_hogql_query, list_feature_flags,
get_feature_flag, create_feature_flag, update_feature_flag,
list_experiments, get_experiment.
Not in this subset: events and persons, actions and cohorts, annotations, dashboards, data warehouse, error tracking, surveys, session recordings, subscriptions, and organization admin tools.
Related MCP server: posthog-mcp
Setup
Create a personal API key in PostHog and set it:
export POSTHOG_API_KEY=phx_...
export POSTHOG_PROJECT_ID=12345 # optional default projectOptionally override the host with POSTHOG_HOST (for example the EU
host) or the full base with POSTHOG_API_BASE_URL (default
https://app.posthog.com/api). Without the key, every tool call fails
with an error naming the missing variable. Pass project_id per call
or rely on the POSTHOG_PROJECT_ID fallback.
CLI
npx @reneturcios/productmetrics list_projects '{}'
npx @reneturcios/productmetrics mcp # stdio MCP serverEach tool name is a subcommand taking one JSON object argument.
MCP client config
{
"mcpServers": {
"productmetrics": {
"command": "npx",
"args": ["-y", "@reneturcios/productmetrics", "mcp"],
"env": { "POSTHOG_API_KEY": "phx_..." }
}
}
}Docker
docker run -i -e POSTHOG_API_KEY ghcr.io/cloudcorprecords/productmetricsDevelopment
npm install
npm run build
npm testLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
PostHog MCP — wraps PostHog Analytics API (app.posthog.com/api)
Manage Pipefork API projects, drafts, connections, secrets, and deployments through MCP.
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Manage Timequip projects, tasks, comments, members, and dashboards through MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Posthog through a standardized MCP interface, providing access to Posthog's tools and services for analytics and product management.MIT
- AlicenseBqualityDmaintenanceEnables interaction with PostHog analytics platform, allowing users to list projects, create annotations, and search insights through natural language in Claude Desktop.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with PostHog product analytics API, supporting project listing, event queries, insight analysis, feature flag management, and annotation creation.MIT
- AlicenseAqualityFmaintenanceConnects AI assistants to PostHog to query events, persons, insights, dashboards, feature flags, cohorts, and experiments through the Model Context Protocol.13114 npmMIT