MCP YouTube Transcript
An MCP server retrieving transcripts of YouTube videos
作者提供的说明(英文原文)
Full Google Ads, Analytics & Tag Manager lifecycle MCP for AI agents — 57 tools.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GOOGLE_ADS_DEVELOPER_TOKEN, GOOGLE_ADS_CUSTOMER_ID, GTM_SERVICE_ACCOUNT_KEY_PATH标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"ainative-gtm": {
"command": "npx",
"args": [
"-y",
"@ainative/gtm-mcp"
],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_CUSTOMER_ID": "your-value",
"GTM_SERVICE_ACCOUNT_KEY_PATH": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add ainative-gtm --env GOOGLE_ADS_DEVELOPER_TOKEN=your-value --env GOOGLE_ADS_CUSTOMER_ID=your-value --env GTM_SERVICE_ACCOUNT_KEY_PATH=your-value -- npx -y @ainative/gtm-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"ainative-gtm": {
"command": "npx",
"args": [
"-y",
"@ainative/gtm-mcp"
],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_CUSTOMER_ID": "your-value",
"GTM_SERVICE_ACCOUNT_KEY_PATH": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"ainative-gtm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ainative/gtm-mcp"
],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "your-value",
"GOOGLE_ADS_CUSTOMER_ID": "your-value",
"GTM_SERVICE_ACCOUNT_KEY_PATH": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
GOOGLE_ADS_CUSTOMER_ID env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 AINative-Studio 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GOOGLE_ADS_DEVELOPER_TOKEN, GTM_SERVICE_ACCOUNT_KEY_PATH
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.4.2)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
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.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Google Tag Manager and Google Ads MCP server — audit, fix, and manage GTM containers and Google Ads campaigns, budgets, conversions, placements, geo targeting, and auto-apply recommendations from AI agents (Claude, Cursor, and any MCP client).
Part of the AINative open-source tools.
57 tools across 7 categories: accounts, tags, triggers, audit, versions/publishing, and a complete Google Ads lifecycle (39 tools) — build, publish, track, and adjust campaigns end-to-end: create campaigns/ad groups/RSAs/RDAs/HTML5 ads, Performance Max, bidding strategy & bid control, ad extensions (sitelinks/callouts/snippets/call), audiences, offline gclid conversion import, geo/language targeting, budgets, placements, and auto-apply recommendations — fully programmatic, no UI required.
Keywords: google tag manager mcp, google ads mcp, gtm mcp server, google ads api mcp, conversion tracking mcp, campaign budget management, negative placement / click-fraud exclusion, geo targeting, auto-apply recommendations, recommendation subscriptions, conversion goals, Smart Bidding, PPC automation, ad spend control, Claude MCP, model context protocol, AI agent advertising tools.
# Claude Code (recommended)
claude mcp add ainative-gtm-mcp npx -- -y @ainative/gtm-mcp \ -e GTM_SERVICE_ACCOUNT_KEY_PATH=/path/to/service-account.json
npx @ainative/gtm-mcp
The server authenticates via a Google Cloud service account with Tag Manager API access. There is no browser OAuth flow — it's designed for headless/agent use.
tagmanager.googleapis.com) and click Enablegtm-mcp-agent)This is the step most people miss. The GCP service account needs to be added as a user inside Google Tag Manager separately:
gtm-mcp-agent@your-project.iam.gserviceaccount.com)Note: If you only need read access (auditing), Read permission is sufficient.
export GTM_SERVICE_ACCOUNT_KEY_PATH="/path/to/service-account.json"
export GTM_SERVICE_ACCOUNT_KEY_JSON='{"type":"service_account","project_id":"...","private_key":"..."}'
gcloud auth application-default login
claude mcp add ainative-gtm-mcp npx -- -y @ainative/gtm-mcp \
-e GTM_SERVICE_ACCOUNT_KEY_PATH=/path/to/service-account.json
Or add a .mcp.json to your project root:
{
"mcpServers": { "ainative-gtm-mcp": { "command": "npx", "args": ["-y", "@ainative/gtm-mcp"], "env": { "GTM_SERVICE_ACCOUNT_KEY_PATH": "/path/to/service-account.json" } } } }
Security: Add
.mcp.jsonto.gitignoreif it contains key paths. Use.mcp.example.jsonas a template for teammates.
Ask Claude:
List my GTM accounts
Expected: your GTM account name and ID. If you get an empty array [], the service account hasn't been added to GTM yet (Step 3 above).
This MCP server manages Google Tag Manager containers — tags, triggers, variables, and publishing.
If you see events like ads_conversion_PURCHASE_1 in GA4, those may be coming from Google Ads auto-imported conversions (via GA4 ↔ Google Ads account linking), not GTM tags. In that case:
gtm_find_misfiring_conversion_tags to fix itTo tell the difference: if your GTM container has no tags (gtm_list_tags returns []), the conversion event is coming from outside GTM.
The most common GTM billing issue — a Google Ads conversion tag fires on every page view instead of only on purchase confirmation.
1. List your accounts:
"List my GTM accounts" → accountId: 123456789
| Tool | Description |
|---|---|
gtm_list_accounts | List all accessible GTM accounts |
gtm_list_containers | List containers in an account |
gtm_get_container | Get container details |
| Tool | Description |
|---|---|
gtm_list_tags | List all tags in a workspace |
gtm_get_tag | Get full tag configuration |
gtm_update_tag | Update a tag (trigger, params, name) |
gtm_delete_tag | Delete a tag |
| Tool | Description |
|---|---|
gtm_list_triggers | List all triggers |
gtm_get_trigger | Get trigger configuration |
gtm_create_trigger | Create a new trigger |
gtm_update_trigger | Update an existing trigger |
| Tool | Description |
|---|---|
gtm_audit_container | Full container audit — health score 0–100, issues list |
gtm_find_misfiring_conversion_tags | Find conversion tags firing on All Pages instead of specific events |
gtm_fix_conversion_tag_trigger | Fix a misfiring tag — creates scoped Custom Event trigger, rewires tag |
| Tool | Description |
|---|---|
gtm_list_workspaces | List workspaces |
gtm_get_workspace_status | View pending changes before publishing |
gtm_create_version | Create a named version from workspace changes |
gtm_publish | Publish workspace to live |
Full programmatic campaign lifecycle — an agent can build, launch, measure, and optimize a campaign end-to-end with no UI.
Build (campaigns, ad groups, ads, assets)
| Tool | Description |
|---|---|
gads_create_campaign | Create a Search/Display campaign with a dedicated budget + correct network settings |
gads_create_pmax_campaign | One-call Performance Max builder — campaign + budget + asset group (headlines, descriptions, images, logo) in a single call; Google's AI optimizes across Search/Display/YouTube/Gmail |
gads_create_ad_group | Create an ad group inside a campaign |
gads_create_responsive_search_ad | Create an RSA (3–15 headlines, 2–4 descriptions, length-validated) |
gads_create_responsive_display_ad | Create a responsive display ad |
gads_create_html5_ad | Create an HTML5 upload (animated) display ad from a media bundle |
gads_upload_image_asset | Upload an image asset by URL |
gads_upload_media_bundle | Upload an HTML5 media-bundle (zip) asset |
Bidding & bids
| Tool | Description |
|---|---|
gads_set_bidding_strategy | Swap bidding strategy (Maximize Clicks / Maximize Conversions / Target CPA / Target ROAS / Manual CPC) — reads back the change to confirm it landed (empty-payload swaps silently no-op) |
gads_set_ad_group_bid | Set an ad group's default max CPC bid |
gads_set_keyword_bid | Set a specific keyword's max CPC bid |
Ad control
| Tool | Description |
|---|---|
gads_set_ad_status | Pause / enable / remove an individual ad |
gads_request_ad_review | Request re-review (appeal) of a disapproved/limited ad where API-appealable; honest result for UI-only policy topics |
Ad extensions (assets)
| Tool | Description |
|---|---|
gads_add_sitelink | Create + attach a sitelink |
gads_add_callout | Create + attach a callout (e.g. "7-Day Free Trial") |
gads_add_structured_snippet | Create + attach a structured snippet |
gads_add_call_extension | Create + attach a call (phone) extension |
Audiences & conversions (attribution)
| Tool | Description |
|---|---|
gads_add_audience_to_ad_group | Attach a user-list audience (observation or targeting) |
gads_create_conversion_action | Create an offline (UPLOAD_CLICKS) conversion action for gclid import |
gads_upload_click_conversion | Upload an offline conversion keyed by gclid — ties a real signup back to the ad click that drove it |
Conversions & reporting
| Tool | Description |
|---|---|
gads_list_conversion_actions | List all conversion actions — name, ID, counting type, status, category |
gads_update_conversion_counting | Fix counting type (ONE_PER_CLICK vs MANY_PER_CLICK) for a conversion action |
gads_audit_conversion_goals | Audit all conversion goals — find misconfigured counting, inactive conversions |
gads_set_conversion_goal_inclusion | Include/exclude a conversion action from the primary Conversions metric & Smart Bidding (e.g. stop a PAGE_VIEW action inflating conversions) |
gads_get_account_performance | Account-level performance — impressions, clicks, cost, conversions by date range |
Campaigns & budgets
| Tool | Description |
|---|---|
gads_update_campaign_budget | Set a campaign's daily budget (scale spend up or down) |
gads_pause_campaign | Pause a campaign — stop ad serving immediately |
gads_create_keyword | Add a keyword to an ad group |
gads_remove_keyword | Remove (pause) a keyword from an ad group |
Targeting & fraud protection
| Tool | Description |
|---|---|
gads_remove_campaign_criterion | Remove a campaign criterion (targeted geo/placement/keyword) by ID — e.g. stop targeting a country sending invalid traffic |
gads_add_negative_placement | Exclude a website/app placement (block click-fraud sites like quiz farms and junk apps) |
gads_add_geo_target | Add a geo target (presence-only by default — the India-fraud-safe setting) |
gads_set_presence_only | Force presence-only geo targeting on a campaign |
gads_add_negative_keyword | Add a campaign-level negative keyword |
gads_add_language_target | Add a language target to a campaign |
Auto-apply recommendations
| Tool | Description |
|---|---|
gads_list_recommendation_subscriptions | List auto-apply recommendation subscriptions and their status (audit what auto-applies) |
gads_set_recommendation_subscription | Turn auto-apply recommendations ON/OFF (pause budget/bid recommendations that can silently raise spend) |
The Google Ads tools use OAuth2 credenti
只显示了开头部分;其余内容请在仓库中阅读