Track Google Trends with Cursor Using MCP Tools
A lot of coding decisions have a research component: what to name a feature, how to position a product, whether a technology is gaining or losing traction. Checking Google Trends manually adds friction, so it usually gets skipped. With AgentPatch connected, Cursor can pull trend data directly when these questions come up.
Why This Matters
Trend data is useful input for technical decisions. Which framework is gaining adoption? Is a term you’re considering for a library name actually searchable? How has interest in a category shifted over the past year?
These are real questions that come up during development. The problem is that answering them requires opening a browser, navigating to Google Trends, running the query, and interpreting the chart. By the time you’re done, you’ve lost your flow.
When Cursor has the Google Trends tool available through AgentPatch, you ask the question in context and get data back without switching tools. The research happens inside the editor.
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.
- Open Cursor Settings (Cmd+Shift+J on Mac, Ctrl+Shift+J on Windows/Linux).
- Navigate to the MCP section in the sidebar.
- Click Add new global MCP server.
- Cursor opens
~/.cursor/mcp.json. Add the AgentPatch server config:
{
"mcpServers": {
"agentpatch": {
"url": "https://agentpatch.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
- Replace
YOUR_API_KEYwith your actual key from the AgentPatch dashboard. - Save and restart Cursor. It discovers all AgentPatch tools automatically.
Example
You’re naming a new CLI tool and debating between a few options. In Cursor’s chat:
“Check Google Trends for ‘developer agent’, ‘coding agent’, and ‘AI CLI’. Which has the highest search interest over the past 6 months?”
Cursor queries Google Trends for each term through AgentPatch and tells you which has the strongest traction. That’s a data-informed input to a naming decision that would otherwise be a guess.
In another session, you’re evaluating a newer runtime:
“What’s the search trend for ‘Bun runtime’ over the past year compared to ‘Deno runtime’? Is either gaining momentum?”
Cursor fetches the comparative trend data and gives you a clear picture of community interest. Actual signal, not intuition.
For SEO and content planning:
“I’m writing docs for our product. Compare search interest for ‘API testing tool’, ‘API test framework’, and ‘API test automation’. Which term should I optimize for?”
Cursor checks the trends and recommends the term with the strongest and most consistent search volume. Your documentation targets the right keywords from the start.
You can also use trends data to validate product decisions:
“We’re considering adding GraphQL support. How does search interest for ‘GraphQL’ compare to ‘REST API’ and ‘gRPC’ over the past two years?”
Cursor pulls the comparison and gives you context for the roadmap discussion.
Wrapping Up
AgentPatch gives Cursor access to Google Trends and the full tool marketplace through a single MCP connection. One setup, everything available. Head to agentpatch.ai to get started.