MCP YouTube Transcript
An MCP server retrieving transcripts of YouTube videos
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
GA4 MCP that reads AND writes: reports, funnels, audits, and server-side events. 26 tools.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GA_SERVICE_ACCOUNT_JSON, GA_PROPERTY_ID, GA_MEASUREMENT_ID, GA_API_SECRETค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"google-analytics": {
"command": "npx",
"args": [
"-y",
"mcp-google-analytics"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "ใส่ค่าของคุณ",
"GA_PROPERTY_ID": "ใส่ค่าของคุณ",
"GA_MEASUREMENT_ID": "ใส่ค่าของคุณ",
"GA_API_SECRET": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add google-analytics --env GA_SERVICE_ACCOUNT_JSON='ใส่ค่าของคุณ' --env GA_PROPERTY_ID='ใส่ค่าของคุณ' --env GA_MEASUREMENT_ID='ใส่ค่าของคุณ' --env GA_API_SECRET='ใส่ค่าของคุณ' -- npx -y mcp-google-analyticsเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"google-analytics": {
"command": "npx",
"args": [
"-y",
"mcp-google-analytics"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "ใส่ค่าของคุณ",
"GA_PROPERTY_ID": "ใส่ค่าของคุณ",
"GA_MEASUREMENT_ID": "ใส่ค่าของคุณ",
"GA_API_SECRET": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"google-analytics": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-analytics"
],
"env": {
"GA_SERVICE_ACCOUNT_JSON": "ใส่ค่าของคุณ",
"GA_PROPERTY_ID": "ใส่ค่าของคุณ",
"GA_MEASUREMENT_ID": "ใส่ค่าของคุณ",
"GA_API_SECRET": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
GA_PROPERTY_ID envGA_MEASUREMENT_ID envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub leonardosepulvedat ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GA_SERVICE_ACCOUNT_JSON, GA_API_SECRET
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.3.0) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
An MCP server retrieving transcripts of YouTube videos
GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.
AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A Model Context Protocol (MCP) server for Google Analytics 4, providing comprehensive integration with both the Google Analytics Data API (for reading reports) and Measurement Protocol v2 (for sending events).
The GA4 MCP that reads AND writes. Most GA4 MCP servers (including Google's official one) are read-only. This one gives your AI agent the full loop: run reports and funnels, audit your setup (custom dimensions, key events, compatibility checks), send ecommerce and conversion events server-side, and verify them in the realtime report — 26 tools in one npx command.
Built for agencies too: every read tool accepts an optional propertyId, so one conversation can query all your clients' properties — no reconfiguration between clients. See Multi-Property Mode.
You only need two values to start (same as any other GA4 MCP): the service account JSON and your property ID. Sending events is an optional extra.
Click Install in Cursor, then paste:
123456789)That is enough to ask “users by country this week”. To also send events, add two more keys later (see Send events (optional)).
Reports can get large. This server is designed with token optimization in mind:
limit parameter as neededSee the dedicated Token Optimization Guide for strategies to minimize token usage.
See QUICKSTART.md for a 5-minute setup guide, or follow the installation steps below.
npm install -g mcp-google-analytics
npx mcp-google-analytics
Start with two values. That unlocks reports, funnels, realtime, and property audits — everything most people need, and the same setup every other GA4 MCP asks for.
Use the file path or paste the JSON into GA_SERVICE_ACCOUNT_JSON.
GA4 Admin → Property Settings → Property ID (numbers only, e.g. 123456789).
{
"mcpServers": { "google-analytics": { "command": "npx", "args": ["-y", "mcp-google-analytics"], "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }
You can now ask: *“Show me active users by country this week.”*
Only if you want the agent to record events (purchases, signups, custom events). Most GA4 MCPs cannot do this; it is extra, not required.
G-XXXXXXXXXX).Add them next to the two values you already have:
"GA_MEASUREMENT_ID": "G-XXXXXXXXXX",
"GA_API_SECRET": "your-api-secret"
Every read tool accepts an optional propertyId argument that overrides the configured GA_PROPERTY_ID — so a single conversation can query any property the service account can access, with no reconfiguration between clients.
GA_SERVICE_ACCOUNT_JSON (GA_PROPERTY_ID becomes optional — if set, it acts as the default).Show me all my accounts and properties → ga_get_account_summaries
Compare last week's active users between the → ga_run_report with propertyId "111111" Acme property and the Globex property and again with propertyId "222222"
propertyId accepts both 123456789 and properties/123456789. Event sending (Measurement Protocol) remains tied to the configured GA_MEASUREMENT_ID/GA_API_SECRET, since each data stream has its own secret.
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": { "google-analytics": { "command": "npx", "args": ["-y", "mcp-google-analytics"], "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }
Or if installed globally:
{
"mcpServers": { "google-analytics": { "command": "mcp-google-analytics", "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }
Restart Claude Desktop after updating the configuration.
Add to your Cursor MCP settings file:
macOS/Linux: ~/.cursor/mcp.json Windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": { "google-analytics": { "command": "npx", "args": ["-y", "mcp-google-analytics"], "env": { "GA_SERVICE_ACCOUNT_JSON": "/path/to/service-account.json", "GA_PROPERTY_ID": "123456789" } } } }
Restart Cursor after updating the configuration.
Reading data (Google Analytics Data API) — all read tools default to 10 rows to save tokens:
| Tool | Purpose | Notes |
|---|---|---|
ga_run_report | Custom reports with dimensions and metrics | Adjust limit as needed |
ga_run_realtime_report | Real-time data (last 30 minutes) | Great for verifying sent events |
ga_get_metadata | All available dimensions and metrics | Large response (500+ items), use sparingly |
ga_list_accounts | List accessible GA accounts | |
ga_list_properties | List GA4 properties | Aggregates all accounts if no accountId |
ga_get_property | Details of the configured property | |
ga_list_data_streams | Data streams of the property | Useful to find measurement IDs |
ga_run_pivot_report | Pivot table reports | Responses can be very large |
ga_run_funnel_report | Funnel analysis across event steps | Uses Data API v1alpha |
ga_batch_run_reports | Multiple reports in one request | 2–5 reports per batch recommended |
ga_get_account_summaries | All accounts and properties in one call | Fastest way to discover IDs |
ga_list_custom_dimensions | Custom dimensions of the property | Discover API names for reports |
ga_list_custom_metrics | Custom metrics of the property | Discover API names for reports |
ga_list_key_events | Key events (conversions) of the property | Know what counts as a conversion |
ga_list_google_ads_links | Google Ads accounts linked to the property | |
ga_check_compatibility | Validate dimension/metric combos before reporting | Avoids wasted requests and error loops |
Sending events (Measurement Protocol):
| Tool | Purpose |
|---|---|
ga_send_event | Any custom GA4 event with parameters |
ga_validate_event | Test an event against the debug endpoint without recording it |
ga_send_pageview | Page/screen views |
ga_send_purchase | Ecommerce purchases with transaction and items |
ga_send_login | User logins |
ga_send_signup | User registrations |
ga_send_view_item | Product/item detail views |
ga_send_add_to_cart | Add-to-cart events |
ga_send_begin_checkout | Checkout initiations |
ga_send_refund | Full or partial refunds |
ga_run_reportRun custom reports with dimensions and metrics.
Common Dimensions: date, city, country, deviceCategory, browser, pagePath, eventName, sessionSource, sessionMedium, sessionCampaignName
Common Metrics: activeUsers, sessions, screenPageViews, conversions, totalRevenue, engagementRate, averageSessionDuration
Example:
{
"dateRanges": [{"startDate": "7daysAgo", "endDate": "today"}], "dimensions": [{"name": "city"}], "metrics": [{"name": "activeUsers"}], "limit": 10 }
ga_run_realtime_reportGet real-time data (last 30 minutes).
Example:
{
"metrics": [{"name": "activeUsers"}], "dimensions": [{"name": "country"}], "limit": 10 }
ga_get_metadataGet all available dimensions and metrics for your property.
Warning: Returns 500+ items. Use sparingly.
ga_list_accountsList all GA accounts accessible to the service account.
ga_list_propertiesList GA4 properties, optionally filtered by account ID.
ga_get_propertyGet details about the configured property.
ga_list_data_streamsList data streams for the configured property.
ga_run_pivot_reportRun pivot table reports with row/column dimensions.
Example:
{
"dateRanges": [{"startDate": "7daysAgo", "endDate": "today"}], "dimensions": [{"name": "country"}, {"name": "deviceCategory"}], "metrics": [{"name": "activeUsers"}], "pivots": [{"fieldNames": ["deviceCategory"], "limit": 5}] }
ga_run_funnel_reportRun funnel analysis to track user progression.
Note: Funnel reporting uses the Data API v1alpha channel (the only channel where Google exposes it). Each step matches an event: set eventName per step, or omit it to use the step's name as the event name. For advanced matching, pass a full filterExpression.
Example:
{
"dateRanges": [{"startDate": "7daysAgo", "endDate": "today"}], "funnelSteps": [ {"name": "page_view"}, {"name": "add_to_cart"}, {"name": "begin_checkout"}, {"name": "Purchase", "eventName": "purchase"} ] }
ga_batch_run_reportsRun multiple reports in a single request.
Warning: Can return large datasets. Limit to 2-5 reports per batch.
ga_get_account_summariesGet all accessible accounts with their properties in a single compact call. The fastest way to discover account and property IDs.
ga_list_custom_dimensions / ga_list_custom_metricsList the custom dimensions and metrics defined for the property, including their API names (e.g., customEvent:plan_type) so yo
ตัดมาแค่ช่วงต้น อ่านต่อใน repo