Track Google Trends with Roo Code

When you’re writing content, planning a feature, or evaluating a product direction, trend data adds real signal. Is the keyword you’re targeting growing or declining? How does your primary term compare to alternatives? That research usually gets skipped because it requires switching context: open Google Trends, run queries, compare charts, interpret the data, then switch back to your editor to act on it.

Roo Code is an open-source AI coding agent that runs as a VS Code extension. It supports MCP tools, which means it can call external services during a conversation. Connect it to a Google Trends tool and Roo Code can answer trend questions inline, without you leaving VS Code.

The value is in the workflow. Trend data is most useful when you can act on it immediately: adjust your copy, reprioritize a blog post, confirm a hypothesis about market interest. Having it available inside your editor means you’ll actually use it rather than skipping the research step.

Setup

The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.

Install (zero dependencies, Python 3.10+):

pip install agentpatch

Set your API key:

export AGENTPATCH_API_KEY=your_api_key

Example commands your agent will use:

ap search "web search"
ap run google-search --input '{"query": "test"}'

Get your API key from the AgentPatch dashboard.

Example: Choosing the Right Terminology

You’re working on a landing page for a developer tool and want to make sure you’re using the right phrasing. You ask Roo Code:

“Check Google Trends for ‘AI coding assistant’ vs ‘AI coding agent’ vs ‘AI pair programmer’. Which has the most search interest over the past 6 months?”

Roo Code calls the Google Trends tool for each term through AgentPatch, compares the data, and tells you which phrase has the strongest momentum. You use that to inform the copy without leaving the session.

Example: Validating a Blog Post Topic

While planning content, you want to confirm whether a topic is worth writing about:

“What’s the trend for ‘local LLM’ searches over the past year? Is interest still growing?”

Roo Code fetches the data and gives you a clear picture. That tells you whether a post on local models is worth prioritizing or if the topic has already peaked.

You can also compare related terms in a single query:

“Compare ‘MCP server’ vs ‘function calling’ vs ‘tool use’ over the past 3 months. Which is trending up?”

Roo Code runs the comparison and reports the relative interest levels. Quick signal, no context switch.

What Roo Code Does Step by Step

  1. Takes your keywords and time range.
  2. Calls the Google Trends tool through AgentPatch for each term.
  3. Compares the interest data across terms.
  4. Reports the results with a clear recommendation or interpretation.

The data is live from Google Trends, not from training data. You’re getting current search interest, which matters for content planning and keyword decisions.

Wrapping Up

One AgentPatch connection gives Roo Code access to Google Trends alongside web search, news, email, and every other tool on the marketplace. Add the MCP config once and it’s all available. Get started at agentpatch.ai.