loading…
Search for a command to run...
loading…
Provides access to Google Trends data including status, trending questions, and trending topics via MCP tools.
Provides access to Google Trends data including status, trending questions, and trending topics via MCP tools.
⚠️ IMPORTANT SECURITY NOTICE: Never commit API keys to version control. This package requires an API key to be set via environment variable.
An MCP (Model Context Protocol) server that provides access to Google Trends data through the Google Trends Scraper API.
# Set your API key first
export GOOGLE_TRENDS_API_KEY="your-api-key-here"
# Run directly with npx
npx @andrewlwn77/google-trends-mcp
npm install -g @andrewlwn77/google-trends-mcp
git clone <repository-url>
cd google-trends-mcp
npm install
npm run build
Optional: You can set the GOOGLE_TRENDS_API_KEY environment variable. If not set, a default API key will be used.
# Option 1: Export in your shell
export GOOGLE_TRENDS_API_KEY="your-api-key-here"
# Option 2: Create a .env file (for local development)
echo "GOOGLE_TRENDS_API_KEY=your-api-key-here" > .env
⚠️ Security: Never commit your .env file or API key to version control!
# If installed globally or using npx
google-trends-mcp
# For local development
npm start
# For development with auto-reload
npm run dev
google_trends_statusCheck the status of the Google Trends API.
Parameters:
language (optional): Language code (default: "en")country (optional): Country code (default: "US")google_trends_questionsGet trending questions from Google Trends.
Parameters:
language (optional): Language code (default: "en")country (optional): Country code (default: "US")google_trends_trendingGet currently trending topics from Google Trends.
Parameters:
language (optional): Language code (default: "en")country (optional): Country code (default: "US")// Check API status
const status = await client.callTool('google_trends_status', {
language: 'en',
country: 'US'
});
// Get trending questions
const questions = await client.callTool('google_trends_questions', {
language: 'en',
country: 'US'
});
// Get trending topics
const trending = await client.callTool('google_trends_trending', {
language: 'en',
country: 'US'
});
The server can be configured using environment variables:
GOOGLE_TRENDS_API_KEY: Your RapidAPI key for the Google Trends Scraper API (optional, defaults to example key)google-trends-mcp/
├── src/
│ ├── index.ts # Main MCP server implementation
│ └── types.ts # TypeScript type definitions
├── tests/
│ ├── integration/ # API integration tests
│ ├── unit/ # Unit tests
│ └── helpers/ # Test helper utilities
├── package.json
├── tsconfig.json
├── .env.example
└── README.md
This server is written in TypeScript and provides full type safety for:
MIT
Выполни в терминале:
claude mcp add google-trends-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.