PostHog MCP Server
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Set up and audit site measurement: GA4, Search Console and PageSpeed. Read-only unless enabled.
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
SettingsDeveloperEdit Config
{
"mcpServers": {
"ga4-seo": {
"command": "uvx",
"args": [
"ga4-seo-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GA4SEO_TOOLSETS": "your-value",
"GA4SEO_ENABLE_WRITES": "your-value",
"PAGESPEED_API_KEY": "your-value",
"DATAFORSEO_LOGIN": "your-value",
"DATAFORSEO_PASSWORD": "your-value",
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "your-value"
}
}
}
}キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
GA4 SEO MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が GA4 SEO MCP を使っていると言うか、回答に GA4 SEO MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ GA4 SEO MCP につなげません
GA4 SEO MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · GA4 SEO MCP につなげるアプリを使う
B · マーケティング・SNS の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
GA4 SEO MCP のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user ga4-seo --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GA4SEO_TOOLSETS=your-value --env GA4SEO_ENABLE_WRITES=your-value --env PAGESPEED_API_KEY=your-value --env DATAFORSEO_LOGIN=your-value --env DATAFORSEO_PASSWORD=your-value --env GOOGLE_ADS_DEVELOPER_TOKEN=your-value --env GOOGLE_ADS_LOGIN_CUSTOMER_ID=your-value -- uvx ga4-seo-mcpEnter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
GA4 SEO MCP が一覧にあり、接続済みと表示されれば OK です
GA4 SEO MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が GA4 SEO MCP を使っていると言うか、回答に GA4 SEO MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
GA4 SEO MCP のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
GA4 SEO MCP の設定で GOOGLE_APPLICATION_CREDENTIALS, GA4SEO_TOOLSETS, GA4SEO_ENABLE_WRITES, PAGESPEED_API_KEY, DATAFORSEO_LOGIN, DATAFORSEO_PASSWORD, GOOGLE_ADS_DEVELOPER_TOKEN, GOOGLE_ADS_LOGIN_CUSTOMER_ID が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
GA4 SEO MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が GA4 SEO MCP を使っていると言うか、回答に GA4 SEO MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
GA4 SEO MCP のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
GA4 SEO MCP の設定で GOOGLE_APPLICATION_CREDENTIALS, GA4SEO_TOOLSETS, GA4SEO_ENABLE_WRITES, PAGESPEED_API_KEY, DATAFORSEO_LOGIN, DATAFORSEO_PASSWORD, GOOGLE_ADS_DEVELOPER_TOKEN, GOOGLE_ADS_LOGIN_CUSTOMER_ID が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
GA4 SEO MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が GA4 SEO MCP を使っていると言うか、回答に GA4 SEO MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
Claude Code
claude mcp add --scope user ga4-seo --env GOOGLE_APPLICATION_CREDENTIALS=your-value --env GA4SEO_TOOLSETS=your-value --env GA4SEO_ENABLE_WRITES=your-value --env PAGESPEED_API_KEY=your-value --env DATAFORSEO_LOGIN=your-value --env DATAFORSEO_PASSWORD=your-value --env GOOGLE_ADS_DEVELOPER_TOKEN=your-value --env GOOGLE_ADS_LOGIN_CUSTOMER_ID=your-value -- uvx ga4-seo-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"ga4-seo": {
"command": "uvx",
"args": [
"ga4-seo-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GA4SEO_TOOLSETS": "your-value",
"GA4SEO_ENABLE_WRITES": "your-value",
"PAGESPEED_API_KEY": "your-value",
"DATAFORSEO_LOGIN": "your-value",
"DATAFORSEO_PASSWORD": "your-value",
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"ga4-seo": {
"command": "uvx",
"args": [
"ga4-seo-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GA4SEO_TOOLSETS": "your-value",
"GA4SEO_ENABLE_WRITES": "your-value",
"PAGESPEED_API_KEY": "your-value",
"DATAFORSEO_LOGIN": "your-value",
"DATAFORSEO_PASSWORD": "your-value",
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"ga4-seo": {
"type": "stdio",
"command": "uvx",
"args": [
"ga4-seo-mcp"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "your-value",
"GA4SEO_TOOLSETS": "your-value",
"GA4SEO_ENABLE_WRITES": "your-value",
"PAGESPEED_API_KEY": "your-value",
"DATAFORSEO_LOGIN": "your-value",
"DATAFORSEO_PASSWORD": "your-value",
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "your-value"
}
}
}
}GOOGLE_APPLICATION_CREDENTIALS envGA4SEO_TOOLSETS envGA4SEO_ENABLE_WRITES envPAGESPEED_API_KEY 秘密 envDATAFORSEO_LOGIN envDATAFORSEO_PASSWORD 秘密 envGOOGLE_ADS_DEVELOPER_TOKEN 秘密 envGOOGLE_ADS_LOGIN_CUSTOMER_ID envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月13日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント GermaniU で確認済みです
コードの最終更新:7 日前
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:PAGESPEED_API_KEY, DATAFORSEO_PASSWORD, GOOGLE_ADS_DEVELOPER_TOKEN
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は7 日前、最新バージョン(0.1.2)がレジストリに届いたのは20 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv), Dockerも必要です。
同じカテゴリには:PostHog MCP Server, Openshorts, Google Ads + Meta Ads + SEO/GEO MCP
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Turn long videos into viral vertical shorts and publish them to TikTok, Instagram and YouTube.
Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
English · Español
Get a site's measurement ready end to end: GA4 + Search Console + PageSpeed, with optional, guarded writes.
An open source Model Context Protocol server for Google Analytics 4 & Search Console. Most MCP servers for Google *read* your data; this one can also set it up: property, web stream, key events, custom dimensions, Search Console DNS verification, sitemap and a PageSpeed baseline — read-only until you say otherwise.
Tags: mcp-server · ga4 · google-analytics · search-console · seo · pagespeed · core-web-vitals · keyword-research · claude-code · cursor
Real run: psi_audit on a public site and bootstrap_site_measurement(apply=False) planning a new site. The demo script redacts the account ID.
Launching a site means the same chores every time: create the GA4 property and its web stream, mark the key events, register custom dimensions, add the domain to Search Console, publish a DNS TXT record, verify it, submit the sitemap, and record a PageSpeed baseline. ga4-seo-mcp turns that into one plan your agent shows you, and one confirmation.
| ga4-seo-mcp | Google's official GA4 MCP | search-console-mcp | google-seo-mcp | |
|---|---|---|---|---|
| GA4 reports (Data API) | ✅ | ✅ | ✅ | ✅ |
| Search Console | ✅ | — | ✅ (+ Bing) | ✅ |
| PageSpeed Insights / CrUX | ✅ | — | ✅ | ✅ |
| Create GA4 property + web stream | ✅ | — | — | — |
| Create key events / custom dimensions | ✅ | — | — | ✅ |
| Search Console DNS verification | ✅ | — | — | — |
| One-call site plan → apply (idempotent) | ✅ bootstrap_site_measurement | — | — | — |
| Read-only by default | ✅ write tools are not even registered | read-only only | see its docs | ✅ read-only mode |
| Toolsets | ✅ | — | — | ✅ |
| Language | Python | Python | TypeScript | TypeScript |
Based on each project's README on 2026-10-19; "—" means we did not find it documented. Corrections welcome. Those projects go wider than this one (Bing, AdSense, WordPress, GEO audits…); this one goes deeper on setting up measurement.
This server is built and maintained by Germani Uicab. If you'd rather not run it yourself, ServerStack Solutions can get your GA4 + Search Console measurement ready: a written plan, property and key events configured, the DNS verification and sitemap in place, and a PageSpeed baseline — with a QA pass before handover.
Extras: optional keyword research with DataForSEO (exact long-tail volumes) and Google Ads Keyword Planner (free, bucketed volumes), with es-MX defaults that you can override.
1. Install [`uv`](https://docs.astral.sh/uv/) 0.13.4 or newer — the client launches the server with uvx; nothing else to install.
2. Log in with the minimum scopes. The CLI prints the exact gcloud command for the toolsets you enable:
uvx ga4-seo-mcp auth-command --client-id-file=oauth-client.json
Run the printed command. Google blocks Analytics and Search Console scopes on gcloud's built-in OAuth client, so you need your own (a one-time, few-minute setup) or a service account — both are explained in docs/AUTH.md.
3. Check everything before connecting a client (read-only, changes nothing):
uvx ga4-seo-mcp doctor
4. Add it to your client (Claude Code shown; others below):
claude mcp add ga4-seo -- uvx ga4-seo-mcp
Ask: *"List my GA4 properties and show last week's sessions for the first one."*
Enable only what you need with --toolsets (or GA4SEO_TOOLSETS). Default: admin,data,gsc,psi. Only the tools of active toolsets are registered, and the OAuth scopes follow.
| Toolset | What | Scopes (read-only) | Extra scopes with --enable-writes | Tools (read + write) |
|---|---|---|---|---|
admin | GA4 Admin API: accounts, properties, streams, key events, custom dimensions, Ads links, `bootstrap_site_measurement` | analytics.readonly | analytics.edit | 9 + 10 |
data | GA4 Data API: reports, realtime, top pages, events, traffic sources, portfolio | analytics.readonly | — | 8 + 0 |
gsc | Search Console: queries, pages, sitemaps, domain add + DNS verification | webmasters.readonly | webmasters, siteverification | 5 + 3 |
psi | PageSpeed Insights: Lighthouse lab + CrUX field data | none (PAGESPEED_API_KEY recommended) | — | 2 + 0 |
dataforseo | DataForSEO keyword ideas and exact volumes (paid) | none (DATAFORSEO_LOGIN / DATAFORSEO_PASSWORD) | — | 2 + 0 |
ads | Google Ads Keyword Planner (needs pip install 'ga4-seo-mcp[ads]') | adwords | — | 2 + 0 |
Tool counts from the real registry: 24 with the defaults, 37 with --enable-writes, 8 with --toolsets data, 41 with every toolset and writes. The full list with descriptions is in docs/TOOLS.md (generated from the registry and checked in CI).
Prompts: audit_ga4_setup, seo_360_audit, portfolio_performance_digest and launch_site_measurement (the guided flow: plan → your confirmation → apply → DNS verification → sitemap → PageSpeed baseline).
bootstrap_site_measurementbootstrap_site_measurement(site_url="https://example.com", account_id="123456789",
property_display_name="Example", time_zone="America/Mexico_City", currency_code="USD", key_events=["generate_lead"], custom_dimensions=[{"parameter_name": "plan_type", "display_name": "Plan type"}])
--enable-writes; otherwise it fails before touching anything. Idempotent: it skips what exists, so you can re-run it. Returns a step-by-step report with the measurement ID (G-…) and the DNS TXT token.sc_verify_site_dns) and the sitemap (sc_submit_sitemap) stay explicit follow-up steps: you have to publish the TXT record first.Defaults are safe for a single user on a laptop. Details and threat model: SECURITY.md.
--enable-writes (or GA4SEO_ENABLE_WRITES=1), tools that create, update, delete, submit or verify are not registered at all — the model cannot call what does not exist.readOnlyHint on reads, destructiveHint on deletes and updates, idempotentHint where repeating is harmless, openWorldHint everywhere. Clients that honor them can auto-approve reads and ask before writes.auth-command asks only for the scopes of your toolsets.--transport streamable-http): binds to 127.0.0.1, DNS-rebinding protection on, CORS off unless MCP_CORS_ORIGINS, and an optional bearer token MCP_AUTH_TOKEN (401 without it). Listening on 0.0.0.0 without a token prints a warning, and LAN clients need MCP_ALLOWED_HOSTS or the rebinding protection answers 421.chmod 600 file, and are never logged or returned in errors.| Variable | Default | Description |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS | — | Service account key file. Unset = Application Default Credentials from gcloud. |
GA4SEO_TOOLSETS | admin,data,gsc,psi | Same as --toolsets. |
GA4SEO_ENABLE_WRITES | 0 | 1 = same as --enable-writes. |
PAGESPEED_API_KEY | — | Recommended: the anonymous PageSpeed quota is shared and often exhausted (429). |
DATAFORSEO_LOGIN, DATAFORSEO_PASSWORD | — | dataforseo toolset. |
GOOGLE_ADS_DEVELOPER_TOKEN | — | ads toolset, or ~/.config/ga4-seo-mcp/dev-token with chmod 600. |
GOOGLE_ADS_LOGIN_CUSTOMER_ID | — | Only when operating through a manager (MCC) account. |
MCP_TRANSPORT | stdio | stdio, streamable-http or sse. |
MCP_HOST / MCP_PORT | 127.0.0.1 / 8000 | HTTP bind address and port. A specific non-loopback address is added to the allowed Host headers; 0.0.0.0 is not, so set MCP_ALLOWED_HOSTS for LAN clients. |
MCP_AUTH_TOKEN | — | Require Authorization: Bearer on every HTTP request. |
MCP_CORS_ORIGINS | — | Comma-separated exact origins for a browser client. Never *. |
MCP_ALLOWED_HOSTS | — | Comma-separated host/IP values clients use (e.g. 192.168.1.10). Required when binding 0.0.0.0 and connecting over the LAN; DNS-rebinding protection rejects everything else with 421. |
Copy .env.example as a starting point.
Every client launches the server over stdio. Add --enable-writes to args only for the session where you actually want to set up a site.
Claude Code
claude mcp add ga4-seo -- uvx ga4-seo-mcp
claude mcp add ga4-seo -e PAGESPEED_API_KEY=your-key -- uvx ga4-seo-mcp --toolsets admin,data,gsc,psi
Claude Desktop (claude_desktop_config.json) and Cursor (~/.cursor/mcp.json)