Co-Pilot / 辅助式
更新于 24 days ago

posthog-for-claude

PPostHog
0.0k
posthog/posthog-for-claude
76
Agent 评分

💡 摘要

PostHog for Claude 将分析、功能标志和错误跟踪直接集成到 Claude Code 中。

🎯 适合人群

产品经理数据分析师软件开发人员市场团队用户体验研究员

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析中风险

风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

PostHog for Claude

Official PostHog plugin for Claude Code. Access your analytics, feature flags, experiments, and error tracking directly from Claude.

Installation

From Claude Code

claude plugin install posthog

Manual installation

  1. Clone and install the plugin:
git clone https://github.com/PostHog/posthog-for-claude claude --plugin-dir ./posthog-for-claude
  1. Authenticate via OAuth:
/mcp

Then follow the browser prompts to log in to PostHog.

Features

This plugin provides access to 27+ PostHog tools across these categories:

  • Feature flags - Create, update, and manage feature flags
  • Experiments - Run and analyze A/B tests
  • Insights - Query analytics and create visualizations
  • Dashboards - Manage dashboards and add insights
  • Error tracking - View and debug errors
  • LLM analytics - Track AI/LLM costs and usage
  • Documentation - Search PostHog docs

Slash Commands

  • /posthog:flags - List and manage feature flags
  • /posthog:insights - Query analytics and create visualizations
  • /posthog:errors - View and debug error tracking data
  • /posthog:experiments - Manage A/B testing experiments
  • /posthog:dashboards - Create and manage dashboards
  • /posthog:surveys - Create and manage user surveys
  • /posthog:query - Run HogQL queries and natural language analytics
  • /posthog:logs - Query application logs
  • /posthog:llm-analytics - Track AI/LLM costs and usage
  • /posthog:docs - Search PostHog documentation
  • /posthog:actions - Manage PostHog actions
  • /posthog:search - Search across all PostHog entities
  • /posthog:workspace - Manage organizations and projects

Example Usage

> What feature flags do I have?
> Create a feature flag called new-onboarding for 50% of users

> Show me errors from the last 24 hours
> Which errors are affecting the most users?

> How many users signed up this week?
> What's the conversion rate for the checkout funnel?

> Show me all my experiments
> What are the results of the checkout-flow experiment?

> Create a new dashboard called Product Metrics
> Add the signup funnel insight to the Growth dashboard

> What are the responses to the NPS survey?
> Create a feedback survey for the checkout page

> What's my most triggered event?
> Show me the top 10 pages by pageviews

EU Cloud

If your PostHog project is on EU Cloud, set the POSTHOG_MCP_URL environment variable:

# Add to your ~/.zshrc or ~/.bashrc export POSTHOG_MCP_URL="https://mcp-eu.posthog.com/mcp"

Then restart Claude Code or open a new terminal session.

Self-hosted

For self-hosted PostHog instances, set the POSTHOG_MCP_URL environment variable to point to your instance:

export POSTHOG_MCP_URL="https://mcp.your-posthog-instance.com/mcp"

Documentation

License

MIT

五维分析
清晰度8/10
创新性6/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 全面访问 PostHog 工具。
  • 简化的分析和错误跟踪。
  • 支持 A/B 测试和功能管理。

缺点

  • 需要 OAuth 身份验证。
  • 可能需要为 EU Cloud 设置环境变量。
  • 依赖于 PostHog 服务的可用性。

相关技能

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

mcp-builder

S
toolCode Lib / 代码库
90/ 100

“这份指南详尽到可能教会 AI 自己编写 MCP 服务器,从而让你失业。”

japanese-webdesign

A
toolCo-Pilot / 辅助式
88/ 100

“看起来很能打,但别让配置把人劝退。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 PostHog.