Google Trends MCP Server
Provides access to Google Trends data, allowing retrieval of relative search interest over the last 12 months for specific terms with optional geographic and category filtering.
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 MCP Serverfetch trends for 'AI startups' in the US over the last year"
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.
Search Trends Explorer
This project combines a Google Trends visualizer built with Next.js and a Model Context Protocol (MCP) server that exposes the same data as a tool you can connect to OpenAI or any MCP-compatible client. Both experiences call SearchAPI.io to retrieve the last 12 months of relative interest for a search term.
Prerequisites
Node.js 18.18+ (recommended to avoid engine warnings)
A
SEARCH_API_KEYfrom SearchAPI.io
Create a .env file with:
SEARCH_API_KEY=your_key_hereRunning the Next.js UI
npm install
npm run devVisit http://localhost:3000 to use the web interface.
Running the MCP Server
The MCP server exposes a single tool named fetch_google_trends over streamable HTTP.
npm install
npm run mcp:devThe server listens on http://localhost:3000/mcp (honors the PORT env variable) and also serves GET /healthz for Render health checks.
Connecting from an MCP client
MCP Inspector:
npx @modelcontextprotocol/inspector --server http://localhost:3000/mcpOpenAI / other agents: add an HTTP MCP tool pointing to the same
/mcpendpoint.
When invoked, fetch_google_trends expects a JSON payload:
{
"term": "electric cars",
"geo": "US", // optional Google Trends geo code
"category": "0" // optional Google Trends category id
}The tool responds with structured JSON containing the normalized timeline points.
Deploying the MCP server to Render.com
Create a new Web Service from this repository.
Set the start command to:
npm run mcp:startAdd the environment variable
SEARCH_API_KEY.(Optional) Configure Render health checks to hit
/healthz.
Render will inject PORT, which the server automatically respects.
Testing & Linting
npm run lintProject Structure Highlights
app/– Next.js app router with UI and/api/trendsendpoint.lib/trends.ts– Shared SearchAPI client used by both the API route and MCP tool.mcp/server.ts– Express + MCP server exposing thefetch_google_trendstool.
This server cannot be installed
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 Servers
- Flicense-quality-maintenanceProvides access to Google Trends search interest data with backtesting support, allowing retrieval of historical 30-day trend windows ending at specified cutoff dates for forecasting applications without future information leakage.
- Alicense-qualityBmaintenanceEnables AI assistants to query YouTube search trends, including rising topics, growth metrics, and historical search demand, using natural language.1MIT
- Alicense-qualityCmaintenanceProvides Google Search trend data as an MCP tool, with historical series, growth percentages, and live trending searches, no scraping or rate limits.1MIT
- Alicense-qualityDmaintenanceEnables AI assistants to access Google Trends data for comparing keywords, discovering trending searches, and analyzing regional interest through natural language.2MIT
Related MCP Connectors
Wikipedia page view trends for any topic over time. Free key at trendsapi.ai
Trend data from Google, TikTok, Amazon, Reddit, YouTube, Steam, npm and more as JSON
Spot keyword demand rising or fading across search and social. Free key at trendsapi.ai
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/ainightshift/google_trends_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server