Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-mamrrez-gtrends-mcp-full": {
"command": "uvx",
"args": [
"gtrends-mcp-full"
],
"env": {
"GTRENDS_HL": "en-US",
"GTRENDS_GEO": "worldwide",
"GTRENDS_PROXY": "<VALUE>",
"GTRENDS_COOKIE": "<VALUE>",
"GTRENDS_DB_PATH": "<config dir>/trends.sqlite",
"GTRENDS_OFFLINE": "false",
"GTRENDS_TIMEZONE": "<VALUE>",
"GTRENDS_CACHE_TTL": "3600",
"GTRENDS_CONFIG_DIR": "~/.config/gtrends-mcp-full",
"GTRENDS_TIME_BUDGET": "50",
"GTRENDS_COOKIES_FILE": "<VALUE>",
"GTRENDS_MIN_INTERVAL": "1.5",
"GTRENDS_TRENDING_TTL": "300",
"GTRENDS_ALLOWED_HOSTS": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-mamrrez-gtrends-mcp-full": {
"command": "uvx",
"args": [
"gtrends-mcp-full"
],
"env": {
"GTRENDS_HL": "en-US",
"GTRENDS_GEO": "worldwide",
"GTRENDS_PROXY": "<VALUE>",
"GTRENDS_COOKIE": "<VALUE>",
"GTRENDS_DB_PATH": "<config dir>/trends.sqlite",
"GTRENDS_OFFLINE": "false",
"GTRENDS_TIMEZONE": "<VALUE>",
"GTRENDS_CACHE_TTL": "3600",
"GTRENDS_CONFIG_DIR": "~/.config/gtrends-mcp-full",
"GTRENDS_TIME_BUDGET": "50",
"GTRENDS_COOKIES_FILE": "<VALUE>",
"GTRENDS_MIN_INTERVAL": "1.5",
"GTRENDS_TRENDING_TTL": "300",
"GTRENDS_ALLOWED_HOSTS": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-mamrrez-gtrends-mcp-full": {
"command": "uvx",
"args": [
"gtrends-mcp-full"
],
"env": {
"GTRENDS_HL": "en-US",
"GTRENDS_GEO": "worldwide",
"GTRENDS_PROXY": "<VALUE>",
"GTRENDS_COOKIE": "<VALUE>",
"GTRENDS_DB_PATH": "<config dir>/trends.sqlite",
"GTRENDS_OFFLINE": "false",
"GTRENDS_TIMEZONE": "<VALUE>",
"GTRENDS_CACHE_TTL": "3600",
"GTRENDS_CONFIG_DIR": "~/.config/gtrends-mcp-full",
"GTRENDS_TIME_BUDGET": "50",
"GTRENDS_COOKIES_FILE": "<VALUE>",
"GTRENDS_MIN_INTERVAL": "1.5",
"GTRENDS_TRENDING_TTL": "300",
"GTRENDS_ALLOWED_HOSTS": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-mamrrez-gtrends-mcp-full": {
"command": "uvx",
"args": [
"gtrends-mcp-full"
],
"env": {
"GTRENDS_HL": "en-US",
"GTRENDS_GEO": "worldwide",
"GTRENDS_PROXY": "<VALUE>",
"GTRENDS_COOKIE": "<VALUE>",
"GTRENDS_DB_PATH": "<config dir>/trends.sqlite",
"GTRENDS_OFFLINE": "false",
"GTRENDS_TIMEZONE": "<VALUE>",
"GTRENDS_CACHE_TTL": "3600",
"GTRENDS_CONFIG_DIR": "~/.config/gtrends-mcp-full",
"GTRENDS_TIME_BUDGET": "50",
"GTRENDS_COOKIES_FILE": "<VALUE>",
"GTRENDS_MIN_INTERVAL": "1.5",
"GTRENDS_TRENDING_TTL": "300",
"GTRENDS_ALLOWED_HOSTS": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-mamrrez-gtrends-mcp-full": {
"command": "uvx",
"args": [
"gtrends-mcp-full"
],
"env": {
"GTRENDS_HL": "en-US",
"GTRENDS_GEO": "worldwide",
"GTRENDS_PROXY": "<VALUE>",
"GTRENDS_COOKIE": "<VALUE>",
"GTRENDS_DB_PATH": "<config dir>/trends.sqlite",
"GTRENDS_OFFLINE": "false",
"GTRENDS_TIMEZONE": "<VALUE>",
"GTRENDS_CACHE_TTL": "3600",
"GTRENDS_CONFIG_DIR": "~/.config/gtrends-mcp-full",
"GTRENDS_TIME_BUDGET": "50",
"GTRENDS_COOKIES_FILE": "<VALUE>",
"GTRENDS_MIN_INTERVAL": "1.5",
"GTRENDS_TRENDING_TTL": "300",
"GTRENDS_ALLOWED_HOSTS": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-mamrrez-gtrends-mcp-full": {
"command": "uvx",
"args": [
"gtrends-mcp-full"
],
"env": {
"GTRENDS_HL": "en-US",
"GTRENDS_GEO": "worldwide",
"GTRENDS_PROXY": "<VALUE>",
"GTRENDS_COOKIE": "<VALUE>",
"GTRENDS_DB_PATH": "<config dir>/trends.sqlite",
"GTRENDS_OFFLINE": "false",
"GTRENDS_TIMEZONE": "<VALUE>",
"GTRENDS_CACHE_TTL": "3600",
"GTRENDS_CONFIG_DIR": "~/.config/gtrends-mcp-full",
"GTRENDS_TIME_BUDGET": "50",
"GTRENDS_COOKIES_FILE": "<VALUE>",
"GTRENDS_MIN_INTERVAL": "1.5",
"GTRENDS_TRENDING_TTL": "300",
"GTRENDS_ALLOWED_HOSTS": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GTRENDS_HL | No | Language of the names Google returns (locations, categories, topics) Default: en-US |
| GTRENDS_GEO | No | Default location code (`US`, `IR`, `US-CA`) when a tool is called without one Default: worldwide |
| GTRENDS_PROXY | No | HTTP(S) proxy URL for requests to Google |
| GTRENDS_COOKIE | No | A signed-in Google session (raw `Cookie` header). Only needed for `related_topics` |
| GTRENDS_DB_PATH | No | The data file: cache, trending history, watchlist Default: <config dir>/trends.sqlite |
| GTRENDS_OFFLINE | No | Answer from the cache only, never contact Google Default: false |
| GTRENDS_TIMEZONE | No | IANA timezone for times in results and for hourly data, e.g. `Asia/Tehran` |
| GTRENDS_CACHE_TTL | No | Seconds a chart answer is reused Default: 3600 |
| GTRENDS_CONFIG_DIR | No | Where the data file and session cookie live Default: ~/.config/gtrends-mcp-full |
| GTRENDS_TIME_BUDGET | No | Seconds one tool call may spend waiting on Google before it reports back Default: 50 |
| GTRENDS_COOKIES_FILE | No | A Netscape `cookies.txt` file with a signed-in Google session. Only needed for `related_topics` |
| GTRENDS_MIN_INTERVAL | No | Seconds between requests to Google Default: 1.5 |
| GTRENDS_TRENDING_TTL | No | Seconds a Trending Now answer is reused Default: 300 |
| GTRENDS_ALLOWED_HOSTS | No | Host names allowed in HTTP mode behind a reverse proxy. HTTP mode has no authentication and will not start on a public address without this |