Google Ads Keyword Planner MCP server with a single keyword research tool.
Project description
flin-google-keyword-planner-mcp
MCP server for Google Ads Keyword Planner ideas.
This server exposes focused read-only tools so an LLM can clearly choose the right seed strategy.
Exposed MCP tools
keyword_ideas_from_keywordskeyword_ideas_from_urlkeyword_ideas_from_keyword_and_urlkeyword_ideas_from_sitekeyword_ideas_historical
Tool overview
1) keyword_ideas_from_keywords
Generate ideas from a keyword list (KeywordSeed).
Required:
keywords
2) keyword_ideas_from_url
Generate ideas from a page URL (UrlSeed).
Required:
url
3) keyword_ideas_from_keyword_and_url
Generate ideas from keyword list + URL (KeywordAndUrlSeed).
Required:
keywordsurl
4) keyword_ideas_from_site
Generate ideas from a full site/domain (SiteSeed).
Required:
site_url
5) keyword_ideas_historical
Generate ideas from keywords and constrain historical metrics to a year-month range.
Required:
keywordsstart_yearstart_monthend_yearend_month
Historical option:
include_average_cpc(defaultfalse)
Common optional parameters (all tools)
customer_idlanguage_id(default1000)location_ids(default2840= US)network(GOOGLE_SEARCHorGOOGLE_SEARCH_AND_PARTNERS)include_adult_keywords(defaultfalse)limit(default50, max1000)page_tokenkeyword_annotation(currently:KEYWORD_CONCEPT)aggregate_metric_types(currently:DEVICE)login_customer_id
Requirements
- Python 3.10+
- Google Ads API credentials:
GOOGLE_ADS_DEVELOPER_TOKENGOOGLE_ADS_CLIENT_IDGOOGLE_ADS_CLIENT_SECRETGOOGLE_ADS_REFRESH_TOKEN
Optional:
GOOGLE_ADS_LOGIN_CUSTOMER_IDGOOGLE_ADS_CUSTOMER_ID(default customer if nocustomer_idargument is passed)GOOGLE_ADS_USE_PROTO_PLUS(trueby default)
Quickstart (local)
uv sync --extra dev
cp .env.example .env
# Fill .env with real credentials
uv run flin-google-keyword-planner-mcp
Claude integration
Option A: Published package (uvx)
{
"mcpServers": {
"flin-google-keyword-planner-mcp": {
"command": "uvx",
"args": ["flin-google-keyword-planner-mcp@latest"],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "REPLACE_ME",
"GOOGLE_ADS_CLIENT_ID": "REPLACE_ME",
"GOOGLE_ADS_CLIENT_SECRET": "REPLACE_ME",
"GOOGLE_ADS_REFRESH_TOKEN": "REPLACE_ME",
"GOOGLE_ADS_CUSTOMER_ID": "1234567890",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "1234567890",
"GOOGLE_ADS_USE_PROTO_PLUS": "true"
}
}
}
}
Option B: Local development checkout
{
"mcpServers": {
"flin-google-keyword-planner-mcp-local": {
"command": "uv",
"args": [
"run",
"--directory",
"/ABSOLUTE/PATH/TO/flin-google-keyword-planner-mcp",
"flin-google-keyword-planner-mcp"
],
"env": {
"GOOGLE_ADS_DEVELOPER_TOKEN": "REPLACE_ME",
"GOOGLE_ADS_CLIENT_ID": "REPLACE_ME",
"GOOGLE_ADS_CLIENT_SECRET": "REPLACE_ME",
"GOOGLE_ADS_REFRESH_TOKEN": "REPLACE_ME",
"GOOGLE_ADS_CUSTOMER_ID": "1234567890",
"GOOGLE_ADS_LOGIN_CUSTOMER_ID": "1234567890",
"GOOGLE_ADS_USE_PROTO_PLUS": "true"
}
}
}
}
Restart Claude Desktop after config changes.
Security
- Never commit real credentials to git.
.envand.env.*are gitignored; only.env.exampleis tracked.- Keep secrets in environment variables or secret managers.
- Rotate credentials immediately if accidentally exposed.
- CI and release workflows run secret scanning with OSS
gitleaks(noGITLEAKS_LICENSEsecret required).
Testing
uv sync --extra dev
python3 -m pytest
python3 -m compileall src
uv build
Release automation (GitHub + PyPI)
- CI workflow:
.github/workflows/ci.yml - Release workflow:
.github/workflows/release.yml - Tag push (
v*) triggers:
- tests + compile + build +
twine check - publish to PyPI via Trusted Publishing (OIDC)
- GitHub Release creation with built artifacts
PyPI Trusted Publishing (one-time)
In the PyPI project flin-google-keyword-planner-mcp, add a Trusted Publisher:
- Owner:
flin-agency - Repository:
flin-google-keyword-planner-mcp - Workflow:
release.yml - Environment:
pypi
Release steps
# 1) bump version in pyproject.toml + src/flin_google_ads_mcp/__init__.py
# 2) run checks
python3 -m pytest
python3 -m compileall src
uv build
# 3) release
git add -A
git commit -m "release: vX.Y.Z"
git tag vX.Y.Z
git push origin main --tags
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flin_google_keyword_planner_mcp-0.2.3.tar.gz.
File metadata
- Download URL: flin_google_keyword_planner_mcp-0.2.3.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3d354bf2b4fdfbe5bc5139c68ba2d553ae8c45444f731633208ffb18be39477
|
|
| MD5 |
eeafc8e294c83c1804ba57ff769909f2
|
|
| BLAKE2b-256 |
b0e56d313c7b990a454c47e8e5fccf5a0c98e4ef588682f746abc61d5dfdce27
|
Provenance
The following attestation bundles were made for flin_google_keyword_planner_mcp-0.2.3.tar.gz:
Publisher:
release.yml on flin-agency/flin-google-keyword-planner-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flin_google_keyword_planner_mcp-0.2.3.tar.gz -
Subject digest:
f3d354bf2b4fdfbe5bc5139c68ba2d553ae8c45444f731633208ffb18be39477 - Sigstore transparency entry: 1154341543
- Sigstore integration time:
-
Permalink:
flin-agency/flin-google-keyword-planner-mcp@34f262da0ebf51fd07fedbc0611852e5b54fb7e8 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/flin-agency
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@34f262da0ebf51fd07fedbc0611852e5b54fb7e8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file flin_google_keyword_planner_mcp-0.2.3-py3-none-any.whl.
File metadata
- Download URL: flin_google_keyword_planner_mcp-0.2.3-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c985e4d57940bd40833e14be059affbacd59c10cf2b26544a57d111b7e6c768b
|
|
| MD5 |
7fe26bc87bb7f2bcd73c8df5eafda822
|
|
| BLAKE2b-256 |
98e4c97ec4386c95d4a20c7cdda6d06569592b3c99f45498a65b01d81a4dd068
|
Provenance
The following attestation bundles were made for flin_google_keyword_planner_mcp-0.2.3-py3-none-any.whl:
Publisher:
release.yml on flin-agency/flin-google-keyword-planner-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flin_google_keyword_planner_mcp-0.2.3-py3-none-any.whl -
Subject digest:
c985e4d57940bd40833e14be059affbacd59c10cf2b26544a57d111b7e6c768b - Sigstore transparency entry: 1154341544
- Sigstore integration time:
-
Permalink:
flin-agency/flin-google-keyword-planner-mcp@34f262da0ebf51fd07fedbc0611852e5b54fb7e8 -
Branch / Tag:
refs/tags/v0.2.3 - Owner: https://github.com/flin-agency
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@34f262da0ebf51fd07fedbc0611852e5b54fb7e8 -
Trigger Event:
push
-
Statement type: