io.github.CloudCorpRecords/productmetrics

Registre officiel Autres

PostHog projects, insights, flags and experiments as MCP tools.

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @reneturcios/productmetrics
Claude Code
claude mcp add productmetrics -- npx -y @reneturcios/productmetrics@0.1.0 mcp
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "productmetrics": {
            "command": "npx",
            "args": [
                "-y",
                "@reneturcios/productmetrics@0.1.0",
                "mcp"
            ]
        }
    }
}
OCI package ghcr.io/cloudcorprecords/productmetrics:0.1.0
Claude Code
claude mcp add productmetrics -- docker run -i --rm ghcr.io/cloudcorprecords/productmetrics:0.1.0 mcp
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "productmetrics": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/cloudcorprecords/productmetrics:0.1.0",
                "mcp"
            ]
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. productmetrics
  2. Tools (core subset, 12)
  3. Setup
  4. CLI
  5. MCP client config
  6. Docker
  7. Development
  8. License

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.

Setup

Create a personal API key in PostHog and set it:

export POSTHOG_API_KEY=phx_...
export POSTHOG_PROJECT_ID=12345   # optional default project

Optionally 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 server

Each 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/productmetrics

Development

npm install
npm run build
npm test

License

MIT

Questions fréquentes

Qu'est-ce que io.github.CloudCorpRecords/productmetrics ?

PostHog projects, insights, flags and experiments as MCP tools.

Comment installer io.github.CloudCorpRecords/productmetrics ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add productmetrics -- npx -y @reneturcios/productmetrics@0.1.0 mcp. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.CloudCorpRecords/productmetrics ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

io.github.CloudCorpRecords/productmetrics est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.CloudCorpRecords/productmetrics ?

Il est publié par CloudCorpRecords. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.