npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

google-trends-mcp

v0.1.1

Published

MCP server for Google Trends: interest over time, comparisons, related queries, trending searches, and regional interest

Readme

google-trends-mcp

Free Google Trends data inside any MCP-compatible AI client. No API key required.

CI npm


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 | |------|-------------|----------------| | interest_over_time | Weekly interest scores (0-100) for up to 5 terms | "Show me interest in 'matcha latte' over the past year in the US" | | compare_terms | Normalized comparison of 2-5 terms with winner callout | "Compare 'coffee', 'tea', and 'matcha' in Canada" | | related_queries | Top and rising related search queries for a term | "What related queries are rising for 'cold plunge'?" | | trending_now | Today's daily trending searches for a country | "What's trending on Google in the UK right now?" | | interest_by_region | Regional breakdown of interest (country or sub-region) | "Which US states search for 'pickleball' most?" |


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-mcp

OpenAI 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_time with terms=["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_queries and 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.js

Rate 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: [email protected] | 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.