PostHog MCP サーバー 📊
PostHogと連携するためのモデルコンテキストプロトコル(MCP)サーバー。Claude Desktopから直接アノテーションを作成し、プロジェクトを管理できます。
機能🚀
- プロジェクトの一覧: 組織内で利用可能なすべての PostHog プロジェクトを表示します
- 注釈の作成: オプションのタイムスタンプを使用して、PostHog プロジェクトに注釈を追加します [このリストはさらに長くなる可能性があります。基本的に、API にあるものはすべて...]
セットアップ 🛠️
- 前提条件
- Python 3.10以上
uv
パッケージマネージャー- プロジェクト設定から取得した
annotation:write
およびproject:read
スコープを含むPostHog APIキー
- インストール
- 構成
- プロジェクト ルートに
.env
ファイルを作成します。
- プロジェクト ルートに
- クロードデスクトップセットアップ
- Claude Desktopをインストールする
- Claude Desktopの設定を開き、「設定の編集」をクリックします。または、以下の場所からファイルを開くこともできます。
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- これを
claude_desktop_config.json
に追加します (システムに応じてパスを調整してください)。問題が発生した場合は、Claude Desktop を MCP クライアントとして設定する方法についての最新のドキュメントを確認してください。
使用方法💡
セットアップ後、Claude Desktop にハンマー🔨アイコンが表示されます。以下のコマンドが利用可能です。
プロジェクトの一覧
クロードに聞く:
洞察の取得と検索
クロードに聞く:
「PostHogのインサイトを一覧表示する」または「PostHogで収益インサイトを検索する」
オンラインでドキュメントを検索する
次のように尋ねることができます。
- 「posthog の nextjs でリバース プロキシを実行するにはどうすればいいですか?」
注釈を作成
プロジェクト リストから取得したプロジェクト ID を使用して、Claude に質問します。
または特定の日付で:
トラブルシューティング🔍
- ハンマーアイコンが表示されない場合は、Claude Desktopを再起動してください。
~/Library/Logs/Claude/mcp*.log
(macOS) または%APPDATA%\Claude\logs
(Windows) のログを確認します。- PostHog APIキーに正しい権限があることを確認してください
claude_desktop_config.json
内のすべてのパスが絶対パスであることを確認してください
貢献中🤝
お気軽に問題や PR を投稿してください。PostHog の貢献ガイドラインに従っています。
local-only server
The server can only run on the client's local machine because it depends on local resources.
Claude Desktop ユーザーが PostHog と直接対話し、自然言語コマンドを使用してプロジェクトを表示したり注釈を作成したりできるようにするモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server for Claude Desktop that provides structured memory management across chat sessions, allowing Claude to maintain context and build a knowledge base within project directories.Last updated -2TypeScript
- -securityAlicense-qualityA Model Context Protocol server that allows Claude to interact with Warpcast accounts, enabling actions like posting casts, reading content, searching by keywords, and managing channel interactions through natural language.Last updated -3PythonMIT License
- AsecurityAlicenseAqualityA collection of Model Context Protocol servers that enable Claude Desktop to provide development assistance capabilities with filesystem, Git, shell command, and web search functionality without incurring API usage costs.Last updated -219TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that allows Claude Desktop to manage and execute tasks in a queue-based system, supporting planning, execution, and completion phases.Last updated -101,2935TypeScriptMIT License