Google Trends API — Claude Code MCP server: setup and features
MCP server providing Google search interest data and growth metrics through Trends API. Useful for tracking term momentum and live popular queries directly from coding agents.
claude mcp add --transport http google-trends-api https://google-trends.api.trendsapi.ai/mcpWhat Google Trends API does
This tool connects your assistant to Trends API endpoints via HTTP without web scraping. It delivers normalized relative interest scores scaled 0 to 100 over custom dates, calculates growth rates across windows, and retrieves ranked live trending topics.
Keyword queries target Google web search by default. You can direct parameters toward images, news, or shopping feeds while navigating through paginated top trend listings.
A valid TRENDSAPI_KEY is required. Missing credentials trigger a 401 error immediately. Each successful call consumes API quota units.
What it helps with
- retrieve historical search interest timelines for specific keywords
- calculate growth percentages across quarterly or yearly time windows
- inspect current live search trends with pagination
- evaluate keyword demand across web, news, and shopping feeds
Example prompts for the agent
- Fetch the search interest time series for 'heat pump' over the past year.
- Show the top 10 live trending search queries right now.
- Compare the growth rate for electric cars over the last 3 months and 12 months.
How to install Google Trends API
Platform CLI: remote server
claude mcp add --transport http google-trends-api https://google-trends.api.trendsapi.ai/mcpPlatform CLI: remote server
codex mcp add google-trends-api --url https://google-trends.api.trendsapi.ai/mcpConfig file
{
"mcpServers": {
"google-trends-api": {
"url": "https://google-trends.api.trendsapi.ai/mcp"
}
}
}Config file
{
"servers": {
"google-trends-api": {
"type": "http",
"url": "https://google-trends.api.trendsapi.ai/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http google-trends-api https://google-trends.api.trendsapi.ai/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Google Trends API
How do I install Google Trends API in Claude Code?
Run claude mcp add --transport http google-trends-api https://google-trends.api.trendsapi.ai/mcp. You will also need an active TRENDSAPI_KEY from trendsapi.ai.
What does the Google Trends API server provide?
It gives AI assistants direct access to search interest time series, growth metrics across custom date ranges, and live Google trending topic rankings.
Does this server scrape Google directly?
No, it queries the structured Trends API endpoint over HTTP. The data returns 0 to 100 index values without web scraping.