google-data-mcp
An MCP server for four Google data surfaces that answer to plain HTTP — no API key, no browser, no scraping service:
| Tool | What it returns |
|---|---|
google_trends_interest |
Interest over time for one keyword (0–100, weekly or hourly points) |
google_trends_compare |
Up to 5 keywords in ONE request, so the values are comparable |
google_trends_trending |
What is trending right now in a country |
youtube_listing |
A channel's Shorts, a channel's videos, or search results |
google_ads_advertisers |
Advertisers in the Ads Transparency Center, by name |
google_ads_creatives |
Every ad an advertiser runs — format, preview URL, first/last shown |
google_play_reviews |
App reviews — rating, text, date, version, developer reply |
Read this before you install
Everything leaves from your machine's IP, and Google's per-IP budget accumulates over hours. This is not a caveat buried at the bottom; it is the main thing that decides whether this server is right for your job.
Measured: an unpaced burst was rate-limited at request 93, and after roughly 130 paced requests spread over hours the same address was refused on the first request of a fresh session. While writing this server, both the author's IPs — a home connection and a datacenter VPS — ended the day refused by Google Trends.
So this server caches every result on disk (~/.cache/google-data-mcp) and paces its requests. That
is enough for interactive use: asking an agent a handful of questions, exploring a topic,
checking a competitor. It is not enough for bulk work, and no amount of local code can make one
IP behave like many.
If you need volume, the same clients run behind rotating proxies as Apify Actors: Google Trends · YouTube · Ads Transparency.
What is deliberately missing
YouTube transcripts. They look available — the watch page still lists caption tracks — but
api/timedtext returns zero bytes and /youtubei/v1/get_transcript answers Precondition check failed even when sent the page's own INNERTUBE_CONTEXT and visitorData, and the ANDROID and IOS
player clients are refused the same way. A transcript tool here would be a promise this server
cannot keep, so there isn't one.
Install
pipx install git+https://github.com/ducnhd/google-data-mcp
# or: pip install git+https://github.com/ducnhd/google-data-mcp
Then register it with your MCP client. For Claude Code:
claude mcp add google-data -- google-data-mcp
Or by hand, in an MCP client config:
{
"mcpServers": {
"google-data": {
"command": "google-data-mcp"
}
}
}
Notes on the data
- Trends values are relative within a single request. Two separate
google_trends_interestcalls are not comparable to each other; that is whatgoogle_trends_compareis for. Google caps a comparison at 5 terms and silently drops a 6th, so a 6th is refused rather than quietly ignored. - Play reviews differ per locale. Each
hl/glpair returns a different set of reviews — six locales gave 120 unique reviews of the same app. Vary them to widen coverage rather than paging deeper in one language. - Reviewer identity is omitted by default. The records carry an author name, avatar and Google
account id; rating, text, date and version answer product questions without them. Set
include_authorif you genuinely need the name. - Zero ads is a real answer. Google keeps advertisers whose ads have stopped running and still
reports a count for them, so an empty
adslist with a non-zero declared count is information, not a failure. searchVolumeon trending terms is Google's own rounded bucket, not a precise count.
Legal
These are public pages, but none of them has an official public API and each platform's Terms of Service restrict automated access. You are responsible for how you use the output. No personal data is collected by default.
Development
python -m venv .venv && .venv/bin/pip install -e .
.venv/bin/python -m google_data_mcp # speaks MCP over stdio
Each client is plain standard library and can be exercised on its own, which is the fastest way to check whether Google changed something:
.venv/bin/python -c "from google_data_mcp.play import PlayClient; print(len(PlayClient().reviews('com.spotify.music', limit=40)))"
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 google_data_mcp-0.1.0.tar.gz.
File metadata
- Download URL: google_data_mcp-0.1.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3532f803043f1d605875ca58a07e6e9401ba32800a97663103256d6bd9e594
|
|
| MD5 |
2ce526f4661ae0aa6eadb426e5337044
|
|
| BLAKE2b-256 |
97f28ab509545a9658a5523831d9ff7b1332fa944ec4db8419063b3554c0b209
|
File details
Details for the file google_data_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: google_data_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9101e3f11b77f4f0254923548b566a8c81ed90a6c297d088564dc448c21829c
|
|
| MD5 |
06f14316e7f978520f31a2986fe35a00
|
|
| BLAKE2b-256 |
e8a2afe424fbc5cfc4fda8f634728eae682f27bf72a9735d99e9478114a7e6b6
|