trenddata
Provides access to Google Trends data, including interest over time, interest by region, related topics, and related queries, with filters for geography, date range, category, time zone, and Google property.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
trenddata
trenddata is a small local bridge to the hosted HasData Google Trends MCP server, which returns Google Trends data as JSON. Give it one or more search terms, and it fetches interest over time, interest by region, and the related topics and related queries for those terms. Lookups can be narrowed by geography, region granularity (country, subregion, metro, or city), date range, category, time zone offset, and Google property (web search by default, or images, news, shopping, or YouTube).
The bridge stores no trends data of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. The captured surface is a single read-only fetch: there is no write, messaging, or payment tool in it.
Tools
hasdata_google_trends_search_getTrendsData— fetch Google Trends data for a query. Required:q(the search term). Optional:geo(location code; worldwide when unset or empty),region(country/region/dma/city, used with the interest-by-region data type),dataType(timeseries/geoMap/relatedTopics/relatedQueries),tz(time zone offset in minutes, default 420),cat(category code, default0for all categories),gprop(images/news/froogle/youtube; web search when unset), anddate(a named range such astoday 12-morall, or a customyyyy-mm-dd yyyy-mm-ddrange). Returns interest-over-time series, geo-level breakdowns, and rising and top related topics and queries with relative scores.
Related MCP server: Google Trends MCP Server
Configuration
HASDATA_GOOGLE_TRENDS_MCP_URL(optional) — override the upstream endpoint. Defaults tohttps://mcp.hasdata.com/mcp?apis=google_trends. (The override hook is this rebuild's own labelled reconstruction.)HASDATA_API_KEY(optional) — when set, every upstream request carries anx-api-key: <key>header, for the caller's own HasData API key. When it is not set, no key header is sent. (The header name and the env name are pinned by the original's registry record; forwarding the key from this env var is a labelled reconstruction — the original surface was captured keyless.)
Forwarding mechanics
On the first tool call the client opens a streamable
HTTP session with the upstream: a JSON-RPC
initialize request (protocolVersion 2025-03-26,
clientInfo name trenddata), then a
notifications/initialized notification, then the
tools/call request carrying the caller's arguments
unchanged. When the upstream answers initialize
with an Mcp-Session-Id header, that value rides on
every later request of the session, which is reused
for the life of the process. Replies may arrive as
plain JSON or as server-sent events; both are read.
Successful upstream results pass through verbatim,
including any isError flag the upstream sets.
Failures — a JSON-RPC error, a non-2xx status, an
unreadable response, or a request that cannot be
completed — come back as an isError result whose
text starts with trenddata error: (this rendering
is this rebuild's own labelled reconstruction).
CLI
The tool is also a subcommand taking one JSON argument string:
npx @reneturcios/trenddata hasdata_google_trends_search_getTrendsData '{"q":"electric vehicles","geo":"US","dataType":"timeseries","date":"today 12-m"}'
npx @reneturcios/trenddata --versionExit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/trenddata mcpMCP client config:
{
"mcpServers": {
"trenddata": {
"command": "npx",
"args": ["-y", "@reneturcios/trenddata", "mcp"]
}
}
}Docker
docker run -i ghcr.io/cloudcorprecords/trenddata
docker run --rm ghcr.io/cloudcorprecords/trenddata --versionThe container's default command is mcp, so the first
form is a stdio MCP server; any other arguments reach
the CLI normally.
Development
npm install
npm run build
npm test
npm run devThe test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.
License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Google Trends data as JSON: interest over time, rising and top queries, regions, Trending Now.
Google Trends interest over time, by region, related queries and Trending now, as JSON.
Google Trends interest over time, by region, and related queries and topics, as JSON.
Bulk Google Trends: interest over time, regions, rising queries and plain-English trend summaries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query Google Trends data, including search interest over time, regional breakdowns, trending searches, and keyword ideas.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to fetch Google Trends data for any term, including interest over time, interest by region, and related queries and topics, all as structured JSON.179 npm5MIT
- AlicenseAqualityBmaintenanceEnables free, local Google Trends analysis through MCP, including ranked breakout/rising/evergreen topic discovery, interest over time, keyword comparison, related queries, regional interest, and real-time trending searches without an API key or browser.191,170 PyPI2MIT
- AlicenseNot gradedqualityCmaintenanceQueries Google Trends for interest over time, related and rising queries, regional interest, and trending topics without requiring an API key or account.2MIT