io.github.CloudCorpRecords/productmetrics
PostHog projects, insights, flags and experiments as MCP tools.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
@reneturcios/productmetricsclaude mcp add productmetrics -- npx -y @reneturcios/productmetrics@0.1.0 mcp
{
"mcpServers": {
"productmetrics": {
"command": "npx",
"args": [
"-y",
"@reneturcios/productmetrics@0.1.0",
"mcp"
]
}
}
}
ghcr.io/cloudcorprecords/productmetrics:0.1.0claude mcp add productmetrics -- docker run -i --rm ghcr.io/cloudcorprecords/productmetrics:0.1.0 mcp
{
"mcpServers": {
"productmetrics": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/cloudcorprecords/productmetrics:0.1.0",
"mcp"
]
}
}
}
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
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
Frequently asked questions
What is io.github.CloudCorpRecords/productmetrics?
PostHog projects, insights, flags and experiments as MCP tools.
How do I install io.github.CloudCorpRecords/productmetrics?
It runs on your machine. In Claude Code: claude mcp add productmetrics -- npx -y @reneturcios/productmetrics@0.1.0 mcp. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.CloudCorpRecords/productmetrics need an API key?
Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.
Is io.github.CloudCorpRecords/productmetrics open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains io.github.CloudCorpRecords/productmetrics?
It is published by CloudCorpRecords. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.