Google Keyword Planner

io.github.afeezadebayo由 GitHub 账号 afeezadebayo 发布v1.1.0更新于 Oct 31, 2026

Keyword ideas, search volumes, CPC ranges, trends and forecasts from Google Ads Keyword Planner.

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

本地 MCP 服务器,把 Google Ads 关键字规划师的关键字建议、搜索量、出价、趋势和预测带入助手。

可以做什么
  • 根据种子关键字、网址、关键字加网址或整个网站生成关键字建议,含搜索量、竞争度、出价区间和趋势
  • 查询最多 1 万个精确关键字的搜索量与趋势,含近似变体和无数据关键字清单
  • 按指定最高单次点击出价,预测 1 至 365 天的展示、点击、费用、点击率和平均单次点击费用
  • 按地名查找 Google 地区 ID,并列出可投放语言及其代码和 ID
  • 列出登录账号可访问的 Google Ads 账户,并检查凭据、账户、币种和默认设置
适用场景
适合 SEO、付费搜索和内容规划场景:希望在对话中完成关键字调研、搜索量核对或预算预测,而不必打开关键字规划师网页。适用于已有 Google Ads 账户并能配置 Google Ads API 访问的用户。
运行要求
以本地 Node.js 进程运行(从源码 npm install 并构建,或使用 Claude Desktop 安装包)。需要一个已启用的 Google Ads 账户,以及启用 Google Ads API 并具备 Basic 访问权限的 Google Cloud 项目,外加 Desktop 类型的 OAuth 客户端。必需环境变量:GOOGLE_ADS_CLIENT_ID、GOOGLE_ADS_CLIENT_SECRET、GOOGLE_ADS_REFRESH_TOKEN、GOOGLE_ADS_CUSTOMER_ID;可选 GOOGLE_ADS_LOGIN_CUSTOMER_ID、KEYWORD_PLANNER_DEFAULT_LANGUAGE、KEYWORD_PLANNER_DEFAULT_LOCATIONS。需要访问 Google 的网络连接。
安装前请注意
服务器持有 OAuth 凭据:GOOGLE_ADS_CLIENT_SECRET 和 GOOGLE_ADS_REFRESH_TOKEN 可访问你的 Google Ads 账户,应保存在客户端配置中并视为机密。申请 Basic 访问需完成品牌验证,免费试用中的结算账户可能需升级为付费层级。搜索量为估算值,广告花费少的账户可能看到更宽的区间。请求有频率限制,服务器会自动退避重试。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google Keyword Planner,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Google Keyword Planner MCP server

An MCP server that gives Claude and other MCP clients direct access to Google Ads Keyword Planner data: keyword ideas, average monthly searches, competition, top-of-page bid ranges, monthly trends and click and cost forecasts.

Built by Afeez Adebayo. MIT licensed.

What you can ask

  • "Find 100 keyword ideas for online accounting software in Nigeria, sorted by search volume."
  • "Get search volume for these 50 keywords in the UK and US, with their trends."
  • "Pull keyword ideas from https://example.com/pricing."
  • "Forecast clicks and cost for these exact-match keywords at a ₦300 max CPC for 30 days."

Tools

ToolWhat it does
generate_keyword_ideasIdeas from seed keywords, a URL, keywords plus a URL, or a whole site. Returns average monthly searches, competition, low and high top-of-page bids, 3-month change, change across the period (first to last month shown), and optional monthly volumes. Filter by minimum volume and sort by searches, competition, bid or relevance.
get_search_volumeHistorical metrics for up to 10,000 exact keywords, with close variants and a list of keywords Google returned no data for. Optional month range.
forecast_keywordsImpressions, clicks, cost, CTR and average CPC for keywords at a given max CPC over 1 to 365 days.
find_locationsLook up Google location IDs by place name.
list_languagesList targetable languages with codes and IDs.
list_accessible_customersList the Google Ads accounts your login can access.
check_connectionConfirm credentials and show the account, currency and defaults.

Locations and languages accept plain names ("Nigeria", "Lagos", "English") as well as Google IDs. Bids and costs are shown in your Google Ads account currency.

What you need

Keyword Planner data comes from the Google Ads API. Since 9 September 2026, Google no longer uses developer tokens: API access belongs to the Google Cloud project that owns your OAuth client. You need:

  1. A Google Ads account. It must be enabled, but it doesn't need running campaigns. A manager account is optional.

  2. A Google Cloud project with the Google Ads API enabled. In the Google Cloud console, create a project and enable the Google Ads API. This gives Test access, which only works with test accounts.

  3. Basic access for that project. Keyword Planner isn't included in Explorer access, so you need Basic access:

    • Configure the OAuth consent screen (Google Auth Platform > Branding) and complete brand verification.
    • Open the Google Ads API Overview page for the project and apply for Basic access. Google reviews it automatically, usually within minutes of brand verification.
    • If your project is on the Google Cloud free trial, Google may reject the application; upgrading the billing account to a paid tier fixes this (you won't be charged for the Google Ads API).
  4. An OAuth client ID of type Desktop app, in the same project. Set the consent screen's publishing status to In production, because refresh tokens from apps in Testing status expire after 7 days.

  5. A refresh token. Clone this repository and run:

    bash
    npm installGOOGLE_ADS_CLIENT_ID=your-client-id GOOGLE_ADS_CLIENT_SECRET=your-secret npm run auth

    Open the printed link, sign in with the Google account that can access your Ads account, and copy the refresh token it prints.

Install

Claude Desktop (one click)

Download google-keyword-planner.mcpb from the latest release and open it. Claude Desktop asks for your credentials and stores the secrets securely.

Any MCP client (from source)

bash
git clone https://github.com/afeezadebayo/google-keyword-planner-mcp.gitcd google-keyword-planner-mcpnpm install && npm run build

Then add it to your client config:

json
{  "mcpServers": {    "google-keyword-planner": {      "command": "node",      "args": ["/path/to/google-keyword-planner-mcp/server/index.js"],      "env": {        "GOOGLE_ADS_CLIENT_ID": "...",        "GOOGLE_ADS_CLIENT_SECRET": "...",        "GOOGLE_ADS_REFRESH_TOKEN": "...",        "GOOGLE_ADS_CUSTOMER_ID": "123-456-7890",        "GOOGLE_ADS_LOGIN_CUSTOMER_ID": "",        "KEYWORD_PLANNER_DEFAULT_LANGUAGE": "English",        "KEYWORD_PLANNER_DEFAULT_LOCATIONS": "Nigeria"      }    }  }}

For Claude Code:

bash
claude mcp add google-keyword-planner \  -e GOOGLE_ADS_CLIENT_ID=... -e GOOGLE_ADS_CLIENT_SECRET=... \  -e GOOGLE_ADS_REFRESH_TOKEN=... -e GOOGLE_ADS_CUSTOMER_ID=123-456-7890 \  -- node /path/to/google-keyword-planner-mcp/server/index.js

Configuration

VariableRequiredNotes
GOOGLE_ADS_CLIENT_IDYesOAuth client (Desktop app). Its Cloud project needs Basic access.
GOOGLE_ADS_CLIENT_SECRETYes
GOOGLE_ADS_REFRESH_TOKENYesFrom npm run auth.
GOOGLE_ADS_CUSTOMER_IDYesThe account to query. Dashes are fine.
GOOGLE_ADS_LOGIN_CUSTOMER_IDNoYour manager account ID, if you access the account through one.
GOOGLE_ADS_API_VERSIONNoDefaults to v25. Change it when Google retires a version.
KEYWORD_PLANNER_DEFAULT_LANGUAGENoUsed when a request doesn't name a language.
KEYWORD_PLANNER_DEFAULT_LOCATIONSNoComma-separated names or IDs used when a request doesn't name locations.
GOOGLE_ADS_DEVELOPER_TOKENNoLegacy. Google retired developer tokens on 9 September 2026; it's only sent if you set it.

Good to know

  • Volumes are estimates. Keyword Planner rounds search volumes into ranges and groups close variants. Accounts with little or no ad spend may see broader ranges.
  • Rate limits. Keyword Planner allows a limited number of requests per minute. The server retries rate-limit and server errors automatically with back-off.
  • Errors explain the fix. Common problems (a Cloud project with only Test access, a missing manager account ID, an expired refresh token) come back with a plain-English explanation of how to fix them.
  • Privacy. The server runs on your machine and talks only to Google. Credentials stay in your MCP client's config.

Development

bash
npm installnpm run typechecknpm run buildnpm test   # runs every tool against a local mock of the Google Ads API

Releases are automated: bumping version in package.json and pushing to main builds the bundle, creates a GitHub release and publishes the listing to the official MCP Registry.

来源:README.md,提交 df938df

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

1
  1. v1.1.0最新Oct 31, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分