Google Trends Scraper MCP Server
Google Trends for any number of keywords on one scale: interest over time, regions, rising queries.
Google Trends Scraper scores 62 (Good), licensed MIT. It can be reached as a remote MCP endpoint. It declares 4 tools. Filed under Web scraping. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
62 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 62 comes from
22 + 15 + 1 + 10 + 4 + 10 = 62. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: OAuth sign-in. Your client opens a browser window to sign in with the provider. No key goes in the config file. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ralfij-google-trends-api": { "url": "https://mcp.apify.com/?tools=ralfij/google-trends-scraper" } }}
Environment variables
This server does not declare environment variables.
Tools4Tool docs quality grade C
All capabilitiesbusiestMonthtoolperiods of about a year or longer
interestByRegiontoolcountries, states or regions where the keyword is most popular
interestOverTimetoolthe full time series (0-100), with the unfinished last week or day marked partial
shareOfSearchtoolyou compare keywords on one shared scale
About
Google Trends API for Python (a pytrends alternative)
Get Google Trends data into Python: interest over time, interest by region, top and rising related searches, and simple trend metrics. You can also compare 10, 50 or 100+ keywords on one scale. The Google Trends website stops at 8 (5 in classic Explore).
pytrends was archived in April 2025 and often fails with 429 Too Many Requests. Google announced an official Trends API in July 2025, but it is an alpha with limited, application-based access. These examples use a hosted scraper instead, the Google Trends Scraper on Apify, which deals with Google's session cookies and rate limits for you.
Tutorial: Google Trends in Python without pytrends, and how to compare more keywords than Google allows. It covers the two endpoints behind the website, the trick for linking comparisons, and what the data looks like.

Example output: search interest in the Programming category fell 40-68% for most languages between 2021 and 2026. Made with examples/compare_keywords.py and matplotlib.
Quick start
- Create a free Apify account. The free plan includes $5 of credit every month, which covers about 2,500 keywords. No credit card needed.
- Copy your API token from Settings > API & Integrations in Apify Console.
- Run an example:
pip install -r requirements.txt
export APIFY_TOKEN=your-token # Windows: set APIFY_TOKEN=your-token
python examples/compare_keywords.py
keyword share % average trend
java 29.4 63.7 falling (-48.8%)
c++ 23.8 51.6 stable (-7.1%)
python 15.8 34.3 falling (-43.7%)
...
Examples
| File | What it does |
|---|---|
examples/compare_keywords.py | Compares 10 keywords on one shared scale, prints share of search and trend, and saves a CSV |
examples/keyword_report.py | Trend, peak, busiest month, top regions and rising searches per keyword |
examples/plot_trends.py | Plots interest over time for several keywords with matplotlib |
examples/raw_endpoints.py | The two JSON endpoints behind trends.google.com, with no library at all. Good for a few keywords. |
sample-output/programming-languages-5y.csv shows the CSV from compare_keywords.py.
What you get per keyword
interestOverTime: the full time series (0-100), with the unfinished last week or day markedpartialinterestByRegion: countries, states or regions where the keyword is most popularrelatedQueriesTopandrelatedQueriesRising, including breakoutsaverageInterest,latestInterest,peakInterest,peakDatetrend(rising, falling or stable) andtrendChangePercent: the last quarter of the period against the first quarterbusiestMonthfor periods of about a year or longershareOfSearchwhen you compare keywords on one shared scale
How comparing many keywords works
Google's Trends API compares at most 5 keywords per request (the website shows up to 8) and scales each request so its highest point is 100. To compare more, the scraper:
- requests the keywords in groups of 5;
- compares the most searched keyword of each group (the group "leader") with the other leaders, 5 at a time with one leader of overlap, so any number of groups can be chained;
- rescales every group through its leader, then rescales everything so the highest point overall is 100.
Google rounds to whole numbers, so a tiny keyword next to a huge one can still show as 0. Compare keywords of a similar size for the best precision.
Use it from AI assistants (MCP)
To let Claude, Cursor, VS Code or another MCP client look up Google Trends for you, add this MCP server URL: https://mcp.apify.com/?tools=ralfij/google-trends-scraper. Sign in to Apify when the client asks, or send your Apify API token as Authorization: Bearer <token>. Runs are billed to your own Apify account.
Notes
- I built the Google Trends Scraper used in these examples, so keep that in mind.
raw_endpoints.pyshows how to do it yourself. - Pricing is per keyword with no subscription; see the actor page. More ready-made searches are on its example tasks.
- Not affiliated with, endorsed by or sponsored by Google. Google Trends is a trademark of Google LLC.
License
MIT
Frequently asked questions
What is Google Trends Scraper MCP Server?
Google Trends for any number of keywords on one scale: interest over time, regions, rising queries.
How do I install Google Trends Scraper MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Google Trends Scraper MCP Server connects to the remote endpoint https://mcp.apify.com/?tools=ralfij/google-trends-scraper, so there is nothing to install locally.
Is Google Trends Scraper MCP Server free and open source?
Yes. Google Trends Scraper MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Google Trends Scraper MCP Server support remote (HTTP) connections?
Yes. Google Trends Scraper MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Google Trends Scraper MCP Server provide?
Google Trends Scraper MCP Server provides 4 tools: busiestMonth, interestByRegion, interestOverTime, and shareOfSearch. See the full tool list for descriptions and parameters.
How is Google Trends Scraper MCP Server's trust score calculated?
Google Trends Scraper MCP Server scores 62 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
