google-trends-mcp
Enables querying Google Trends data for search interest, term comparison, related queries, trending searches, and regional interest.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-trends-mcpCompare 'coffee', 'tea', and 'matcha' in Canada"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
google-trends-mcp
Free Google Trends data inside any MCP-compatible AI client. No API key required.
UNOFFICIAL ENDPOINT DISCLAIMER
This server communicates with the same internal endpoints that the trends.google.com frontend uses. These endpoints are undocumented and unofficial. Google can change, rate-limit, or remove them at any time without notice. This project is not affiliated with, endorsed by, or sponsored by Google LLC. "Google Trends" is a trademark of Google LLC.
If requests start failing, open an issue. The fix is usually a URL or parameter tweak.
What it does
Tool | Description | Example prompt |
| Weekly interest scores (0-100) for up to 5 terms | "Show me interest in 'matcha latte' over the past year in the US" |
| Normalized comparison of 2-5 terms with winner callout | "Compare 'coffee', 'tea', and 'matcha' in Canada" |
| Top and rising related search queries for a term | "What related queries are rising for 'cold plunge'?" |
| Today's daily trending searches for a country | "What's trending on Google in the UK right now?" |
| Regional breakdown of interest (country or sub-region) | "Which US states search for 'pickleball' most?" |
Related MCP server: Google Trends MCP Server
Quick start
No API key is needed. Install and run via npx.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"google-trends": {
"command": "npx",
"args": ["-y", "google-trends-mcp"]
}
}
}Claude Code
claude mcp add google-trends -- npx -y google-trends-mcpOpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.google-trends]
command = "npx"
args = ["-y", "google-trends-mcp"]Example conversations
Spotting seasonality:
"Use Google Trends to show me interest in 'pumpkin spice' over the past 5 years worldwide."
The model calls
interest_over_timewithterms=["pumpkin spice"],timeframe="today 5-y"and narrates the clear September-October spikes each year.
Keyword competition:
"Compare search interest in 'Notion', 'Obsidian', and 'Roam Research' in the US this year."
The model calls
compare_terms, reads the averages, and identifies the winner with supporting time-series data.
Opportunity discovery:
"What are the fastest-rising related queries for 'sourdough bread' right now?"
The model calls
related_queriesand surfaces the rising queries, often revealing adjacent niches and trending subtopics.
Development
# Clone and install
git clone https://github.com/purahmanian/google-trends-mcp.git
cd google-trends-mcp
npm install
# Run tests (no network calls; all HTTP is mocked)
npm test
# Build TypeScript to dist/
npm run build
# Run the server locally (stdio mode)
node dist/index.jsRate limits and blocking
Google does not publish a rate limit for these endpoints. In practice, a few requests per minute works reliably. If you hit HTTP 429 or get blocked, the server returns a descriptive error message. Waiting 2-5 minutes usually resolves it.
Built by
Built by Puya Ventures LLC. I build custom MCP servers and AI integrations for product teams and researchers. Get in touch: purahmanian@gmail.com | Portfolio: puyarahmanian.com
Part of the Product-Research MCP Suite: keepa-mcp · google-trends-mcp · junglescout-mcp
Privacy
This server runs entirely on your machine. It collects no telemetry and stores no data. The only network calls it makes are to Google Trends endpoints (trends.google.com), sending the search terms and region codes you ask about. No account or API key is involved. See Google's privacy policy: https://policies.google.com/privacy
License
MIT. See LICENSE.
Available Tools
5 toolscompare_termsARead-only
Compare 2-5 search terms against each other using Google Trends normalized interest scores. Returns the time series, averages per term, and identifies which term has the highest overall interest.
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Two-letter country code or empty for worldwide. | |
| terms | Yes | Search terms to compare (2-5). | |
| timeframe | No | Trends timeframe string. | today 12-m |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and openWorldHint. The description adds that it returns time series, averages, and identifies the highest interest, expanding on the output behavior without contradicting annotations. This adds moderate value beyond the structured fields.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that is concise yet informative. It front-loads the main action and deliverables, making it easy for an AI agent to quickly understand the tool's functionality.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite lacking an output schema, the description thoroughly explains what the tool returns (time series, averages, highest interest term). Given the low complexity and full schema coverage, the description provides sufficient context for correct use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so the schema already describes all parameters (geo, terms, timeframe) with defaults and constraints. The description does not add additional meanings beyond the schema, which is acceptable. A baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: compare 2-5 search terms using Google Trends normalized interest scores, and specifies the outputs (time series, averages, highest interest). It distinguishes from siblings like interest_over_time (single term) and related_queries.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description specifies that 2-5 terms are required, which is a key constraint. While it doesn't explicitly state when to use this tool over siblings, the sibling names (e.g., interest_over_time, related_queries) imply the context. A clear usage guideline would improve this dimension.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
interest_by_regionARead-only
Get Google Trends interest scores broken down by region (sub-country or country, depending on the geo parameter). Returns top regions with the highest relative interest for the given term.
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Two-letter country code to drill into sub-regions (e.g. "US" gives US states), or empty for worldwide country-level breakdown. | |
| term | Yes | The search term to get regional interest for. | |
| timeframe | No | Trends timeframe string. | today 12-m |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds that it returns top regions with highest relative interest, which is useful but does not cover other behavioral traits like data freshness or pagination. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with purpose, no extraneous information. Every part is necessary.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the read-only nature, rich schema descriptions, and annotations, the description adequately covers input (geo, term, timeframe) and output (top regions with relative interest). No gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with parameter descriptions already present. The description adds slight nuance for geo (sub-country vs country) but largely restates schema info, so baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and resource 'Google Trends interest scores broken down by region'. It distinguishes from sibling tools like interest_over_time (time) and compare_terms (comparison) by focusing on regional breakdown.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains the effect of the geo parameter (sub-country vs country), providing clear context. However, it does not explicitly state when to use this tool over alternatives or provide any exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
interest_over_timeARead-only
Fetch Google Trends interest scores (0-100) for up to 5 search terms over a time range. Returns a time series with one value per term per data point. Useful for spotting seasonality, growth, or decline in search interest.
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Two-letter country code (e.g. "US") or empty for worldwide. | |
| terms | Yes | Search terms (1-5). | |
| timeframe | No | Trends timeframe string, e.g. "today 12-m", "today 5-y", "now 7-d". | today 12-m |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate readOnlyHint and openWorldHint, and the description adds that it returns a time series, which provides extra behavioral context beyond the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences: the first states the purpose, the second gives a use case. No wasted words, front-loaded structure.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite no output schema, the description explains the return format (time series with one value per term per data point). It covers core functionality and use case, though it omits edge cases or error conditions.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with descriptions for each parameter. The description mentions 'up to 5 terms' and 'time range' but adds no new detail about parameter formats or constraints beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it fetches Google Trends interest scores (0-100) for up to 5 terms over a time range. The verb and resource are specific, but it does not explicitly differentiate from sibling tools like 'trending_now' or 'compare_terms'.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides context (spotting seasonality, growth, decline) but does not specify when not to use this tool or compare it to alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
trending_nowARead-only
Get today's daily trending searches for a country from Google Trends. Returns the top trending queries with estimated traffic and linked news articles.
| Name | Required | Description | Default |
|---|---|---|---|
| geo | No | Two-letter country code (e.g. "US", "GB", "IN", "AU"). | US |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint and openWorldHint. The description adds context about the return format (top queries, traffic, news articles), which goes beyond annotations. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that immediately states the tool's purpose and output. No unnecessary words or clauses, making it efficient and front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple tool (1 optional param, no output schema), the description covers the core functionality, output, and parameter sufficiently. However, it could mention that only one day's data is returned or clarify the 'estimated traffic' metric.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter (geo) with full schema description coverage (100%). The description does not add further meaning beyond the schema's description of a two-letter country code. Baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool gets daily trending searches from Google Trends for a country, and specifies it returns top trending queries with traffic estimates and news articles. This uniquely distinguishes it from siblings like interest_over_time and related_queries.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for fetching current trending searches but does not explicitly state when to use this tool versus alternatives (e.g., interest_over_time for historical trends). No when-not or direct comparisons are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v0.1.1- First observed
compare_terms - First observed
interest_by_region - First observed
interest_over_time - First observed
related_queries - First observed
trending_now
TDQS
Each tool has a clearly distinct purpose: daily trending searches, time series for up to 5 terms, comparison of terms, related queries, and regional breakdown. No overlap or ambiguity.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., trending_now, interest_over_time, compare_terms). No deviation in style.
With 5 tools, the set covers the essential Google Trends functionalities without being excessive. Each tool serves a core purpose, and the count is well-scoped for the domain.
The set covers key features: daily trending, interest over time, comparison, related queries, and regional interest. Minor gaps like real-time trends or category filtering are present but do not break core workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Google Trends: Search, Images, News, Shopping over time, growth metrics. Free key at trendsmcp.ai
Google Trends search interest over time with growth metrics. Free key at trendsapi.ai
Trend data from Google, TikTok, Amazon, Reddit, YouTube, Steam, npm and more as JSON
Trend data from Google Trends, YouTube, TikTok, Reddit, Amazon, Wikipedia, npm, Steam and more
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides Google Search trend data as an MCP tool, with historical series, growth percentages, and live trending searches, no scraping or rate limits.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Google Trends data for comparing keywords, discovering trending searches, and analyzing regional interest through natural language.2MIT
- FlicenseNot gradedqualityBmaintenanceMCP server that exposes Google Trends data via BigQuery, enabling LLMs to query top search terms, rising terms, and compare term interest over time for different countries.-

Trends MCPofficial
AlicenseNot gradedqualityCmaintenanceProvides hosted trend data MCP server for querying Google, TikTok, Amazon, Reddit, YouTube, Steam, npm and 30+ trend sources in natural language from any MCP-compatible AI.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/purahmanian/google-trends-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server