donghai88/google-trends-mcp-server
If you are the rightful owner of google-trends-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server for Google Trends analysis, enabling AI assistants to analyze search trends and provide data-driven insights.
Google Trends MCP Server
English
A Model Context Protocol (MCP) server for Google Trends analysis. This server enables AI assistants to analyze search trends, discover market opportunities, and provide data-driven insights in real-time.
๐ Features
- ๐ Fetch and analyze Google Trends search data
- ๐ Compare keyword popularity and trends
- ๐ Identify rising search queries and market opportunities
- ๐ก Provide data-driven marketing strategy recommendations
- ๐ Support for multiple languages and regions
- โก One-click installation and setup via uvx
๐ฆ Installation
Using uvx (Recommended)
uvx google-trends-mcp-qihoo
# or
uvx --from google-trends-mcp-qihoo google-trends-mcp-qihoo
Using pip
pip install google-trends-mcp-qihoo
๐ง Usage
Agent Client Configuration
Add this to your agent client configuration file:
{
"mcpServers": {
"google-trends": {
"command": "uvx",
"args": ["google-trends-mcp-qihoo"]
}
}
}
Direct Usage
# Using uvx
uvx google-trends-mcp-qihoo
# Or after pip installation
pip install google-trends-mcp-qihoo
google-trends-mcp-qihoo
๐ ๏ธ Available Tools
google_trends_analysis
Analyze Google Trends data and generate comprehensive reports.
Parameters:
keywords
(required): List of keywords, e.g.,["iPhone", "Android"]
timeframe
(optional): Time range, default"today 3-m"
Time Range Options:
"today 3-m"
- Last 3 months"today 12-m"
- Last 12 months"today 5-y"
- Last 5 years"all"
- All time
Example Usage:
{
"name": "google_trends_analysis",
"arguments": {
"keywords": ["coffee", "tea", "energy drinks"],
"timeframe": "today 12-m"
}
}
๐ Report Content
Generated reports include:
- ๐ Average Interest Comparison - Keyword popularity rankings
- ๐ Trend Analysis - Recent trend changes with percentages
- ๐ Rising Search Queries - Discover new market opportunities
- ๐ก Strategic Recommendations - Data-driven marketing insights
๐ Configuration File Locations
Claude Desktop
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
Other Agent Clients
Please refer to your client's documentation for MCP server configuration.
โ ๏ธ Important Notes
- Google Trends API has rate limits, please use moderately
- If you encounter 429 errors, please retry later
- Use popular keywords for better results
- Supports up to 5 keywords per analysis (Google Trends API limit)
๐ฌ Demo
Sample Analysis Report
# ๐ Google Trends Analysis Report
**Keywords**: iPhone, Android
**Time Range**: today 12-m
**Generated**: 2024-09-11
## ๐ Average Interest Comparison
๐ฅ **iPhone**: 65.2 points
๐ฅ **Android**: 43.8 points
## ๐ Trend Analysis
- **iPhone**: ๐ Steady Rise (+12.5%)
- **Android**: โก๏ธ Relatively Stable (-2.1%)
## ๐ Rising Search Queries (Market Opportunities)
### ๐ Rising queries for 'iPhone':
- **iPhone 15 Pro** ๐ Breakout growth
- **iPhone camera** ๐ +150%
- **iPhone battery life** ๐ +89%
## ๐ก Data-Driven Strategy Recommendations
### ๐ฏ Core Keyword Strategy
- **Primary keyword**: 'iPhone' (highest average interest: 65.2 points)
- Recommend focusing marketing and SEO efforts on this keyword
### ๐ Emerging Opportunities
- Pay attention to rising queries like 'iPhone 15 Pro' - they represent new market demand
- Can be used for content creation, long-tail keyword optimization, and product development
๐ง Technical Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ AI Assistant โโโโโโ MCP Protocol โโโโโโ Google Trends โ
โ (Claude/etc) โ โ โ โ MCP Server โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ pytrends โ
โ (Google API) โ
โโโโโโโโโโโโโโโโโโโ
๐ค FAQ
Q: Why do I get 429 errors?
A: Google Trends API has rate limits. Solutions:
- Reduce request frequency
- Use more popular keywords
- Retry later
Q: What time ranges are supported?
A: Supported formats:
"today 3-m"
- Last 3 months"today 12-m"
- Last 12 months"today 5-y"
- Last 5 years"all"
- All time
Q: How many keywords can I analyze at once?
A: Maximum 5 keywords per analysis (Google Trends API limitation).
๐บ๏ธ Roadmap
- Geographic filtering support
- Related topics analysis
- Real-time trend monitoring
- Data visualization features
- Multi-language and region support
๐จ Development
Local Development Setup
# Clone repository
git clone https://github.com/qihoo/google-trends-mcp-server.git
cd google-trends-mcp-server
# Install dependencies
pip install -e .
# Run server
google-trends-mcp-qihoo
Build and Publish
# Build package
python -m build
# Publish to PyPI
python -m twine upload dist/*
๐ Dependencies
๐ License
MIT License
๐ค Contributing
Pull requests and issues are welcome!
๐ Support
For questions, please create an issue on GitHub Issues.
๐ Acknowledgments
ไธญๆ
ไธไธชๅบไบ Model Context Protocol (MCP) ็ Google Trends ๅๆๆๅกๅจ๏ผๅฏไปฅ่ทๅๅๅๆ Google ๆ็ดข่ถๅฟๆฐๆฎใ่ฎฉAIๅฉๆ่ฝๅคๅฎๆถๅๆๆ็ดข่ถๅฟ๏ผๅ็ฐๅธๅบๆบไผ๏ผๆไพๆฐๆฎ้ฉฑๅจ็ๆดๅฏใ
๐ ๅ่ฝ็นๆง
- ๐ ่ทๅๅๅๆ Google Trends ๆ็ดขๆฐๆฎ
- ๐ ๅฏนๆฏๅ ณ้ฎ่ฏ็ญๅบฆๅ่ถๅฟๅๅ
- ๐ ่ฏๅซไธๅๆ็ดข่ฏๅๅธๅบๆบไผ
- ๐ก ๆไพๅบไบๆฐๆฎ็่ฅ้็ญ็ฅๅปบ่ฎฎ
- ๐ ๆฏๆๅค่ฏญ่จๅๅฐๅบ่ฎพ็ฝฎ
- โก ้่ฟ uvx ไธ้ฎๅฎ่ฃ ๅ่ฟ่ก
๐ฆ ๅฎ่ฃ
ไฝฟ็จ uvx (ๆจ่)
uvx google-trends-mcp-qihoo
# ๆ่
uvx --from google-trends-mcp-qihoo google-trends-mcp-qihoo
ไฝฟ็จ pip
pip install google-trends-mcp-server
๐ง ไฝฟ็จๆนๆณ
ๅจ Agent ๅฎขๆท็ซฏไธญ้ ็ฝฎ
ๅจไฝ ็ agent ๅฎขๆท็ซฏ้ ็ฝฎๆไปถไธญๆทปๅ ๏ผ
{
"mcpServers": {
"google-trends": {
"command": "uvx",
"args": ["google-trends-mcp-qihoo"]
}
}
}
ๆฌๅฐ็ดๆฅ่ฟ่ก
# ไฝฟ็จ uvx
uvx google-trends-mcp-qihoo
# ๆ่
ไฝฟ็จ pip ๅฎ่ฃ
ๅ่ฟ่ก
pip install google-trends-mcp-qihoo
google-trends-mcp-qihoo
๐ ๏ธ ๅฏ็จๅทฅๅ ท
google_trends_analysis
ๅๆ Google ๆ็ดข่ถๅฟๆฐๆฎๅนถ็ๆๆฅๅใ
ๅๆฐ:
keywords
(ๅฟ ้): ๅ ณ้ฎ่ฏๅ่กจ๏ผไพๅฆ["iPhone", "Android"]
timeframe
(ๅฏ้): ๆถ้ด่ๅด๏ผ้ป่ฎค"today 3-m"
ๆถ้ด่ๅด้้กน:
"today 3-m"
- ๆ่ฟ 3 ไธชๆ"today 12-m"
- ๆ่ฟ 12 ไธชๆ"today 5-y"
- ๆ่ฟ 5 ๅนด"all"
- ๆๆๆถ้ด
็คบไพ่ฐ็จ:
{
"name": "google_trends_analysis",
"arguments": {
"keywords": ["ๅๅก", "่ถ", "ๅฅถ่ถ"],
"timeframe": "today 12-m"
}
}
๐ ๅๆๆฅๅๅ ๅฎน
็ๆ็ๆฅๅๅ ๅซไปฅไธ้จๅ๏ผ
- ๐ ๅนณๅๅ ณๆณจๅบฆๅฏนๆฏ - ๅๅ ณ้ฎ่ฏ็ๆ็ดข็ญๅบฆๆๅ
- ๐ ่ถๅฟๅๅๅๆ - ๆ่ฟ่ถๅฟๅๅ็พๅๆฏ
- ๐ ็ญ้จไธๅๆ็ดข่ฏ - ๅ็ฐๆฐ็ๅธๅบๆบไผ
- ๐ก ็ญ็ฅๅปบ่ฎฎ - ๅบไบๆฐๆฎ็่ฅ้ๅปบ่ฎฎ
๐ ้ ็ฝฎๆไปถไฝ็ฝฎ
Claude Desktop
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
ๅ ถไป Agent ๅฎขๆท็ซฏ
่ฏทๅ่ๅฏนๅบๅฎขๆท็ซฏ็ๆๆกฃ้ ็ฝฎ MCP ๆๅกๅจใ
โ ๏ธ ๆณจๆไบ้กน
- Google Trends API ๆ้ข็้ๅถ๏ผ่ฏท้ๅบฆไฝฟ็จ
- ๅฆ้ๅฐ 429 ้่ฏฏ๏ผ่ฏท็จๅ้่ฏ
- ๅปบ่ฎฎไฝฟ็จ้็จๅ ณ้ฎ่ฏไปฅ่ทๅพๆดๅฅฝ็็ปๆ
- ๆฏๆๆๅค 5 ไธชๅ ณ้ฎ่ฏๅๆถๅๆ
๐จ ๅผๅ
ๆฌๅฐๅผๅ่ฎพ็ฝฎ
# ๅ
้ไปๅบ
git clone https://github.com/yourusername/google-trends-mcp-server.git
cd google-trends-mcp-server
# ๅฎ่ฃ
ไพ่ต
pip install -e .
# ่ฟ่กๆๅกๅจ
google-trends-mcp
ๆๅปบๅๅๅธ
# ๆๅปบๅ
python -m build
# ๅๅธๅฐ PyPI
python -m twine upload dist/*
๐ ไพ่ต
๐ ่ฎธๅฏ่ฏ
MIT License
๐ค ่ดก็ฎ
ๆฌข่ฟๆไบค Pull Request ๅ Issue๏ผ
๐ ๆฏๆ
ๅฆๆ้ฎ้ข๏ผ่ฏทๅจ GitHub Issues ไธญๆๅบใ
๐ฌ ๆผ็คบ
ๅๆ็ปๆ็คบไพ
# ๐ Google Trends ๅๆๆฅๅ
**ๅ
ณ้ฎ่ฏ**: iPhone, Android
**ๆถ้ด่ๅด**: today 12-m
**็ๆๆถ้ด**: 2024-09-11
## ๐ ๅนณๅๅ
ณๆณจๅบฆๅฏนๆฏ
๐ฅ **iPhone**: 65.2ๅ
๐ฅ **Android**: 43.8ๅ
## ๐ ่ถๅฟๅๅๅๆ
- **iPhone**: ๐ ็จณๆญฅไธๅ (+12.5%)
- **Android**: โก๏ธ ็ธๅฏน็จณๅฎ (-2.1%)
## ๐ ็ญ้จไธๅๆ็ดข่ฏ (ๅธๅบๆบไผ)
### ๐ ๅ
ณไบ 'iPhone' ็ไธๅๆ็ดข่ฏ:
- **iPhone 15 Pro** ๐ ็ๅๅผๅข้ฟ
- **iPhone camera** ๐ +150%
- **iPhone battery life** ๐ +89%
## ๐ก ๅบไบๆฐๆฎ็็ญ็ฅๅปบ่ฎฎ
### ๐ฏ ๆ ธๅฟๅ
ณ้ฎ่ฏ็ญ็ฅ
- **ไธปๆจๅ
ณ้ฎ่ฏ**: 'iPhone' (ๅนณๅๅ
ณๆณจๅบฆๆ้ซ: 65.2ๅ)
- ๅปบ่ฎฎๅฐๆญคๅ
ณ้ฎ่ฏไฝไธบๆ ธๅฟๆๆพๅSEOไผๅ้็น
### ๐ ๆฐๅ
ดๆบไผ็น
- ๅ
ณๆณจ'iPhone 15 Pro'็ญไธๅๆ็ดข่ฏ๏ผไปฃ่กจๆฐ็ๅธๅบ้ๆฑ
- ๅฏ็จไบๅ
ๅฎนๅไฝใ้ฟๅฐพๅ
ณ้ฎ่ฏไผๅๅๆฐไบงๅๅผๅๆนๅ
๐ง ๆๆฏๆถๆ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ AI Assistant โโโโโโ MCP Protocol โโโโโโ Google Trends โ
โ (Claude/etc) โ โ โ โ MCP Server โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโ
โ pytrends โ
โ (Google API) โ
โโโโโโโโโโโโโโโโโโโ
๐ค ๅธธ่ง้ฎ้ข
Q: ไธบไปไนไผ้ๅฐ429้่ฏฏ๏ผ
A: Google Trends APIๆ้ข็้ๅถใ่งฃๅณๆนๆก๏ผ
- ๅๅฐ่ฏทๆฑ้ข็
- ไฝฟ็จๆด้็จ็ๅ ณ้ฎ่ฏ
- ็จๅ้่ฏ
Q: ๆฏๆๅชไบๆถ้ด่ๅด๏ผ
A: ๆฏๆไปฅไธๆ ผๅผ๏ผ
"today 3-m"
- ๆ่ฟ3ไธชๆ"today 12-m"
- ๆ่ฟ12ไธชๆ"today 5-y"
- ๆ่ฟ5ๅนด"all"
- ๆๆๆถ้ด
Q: ๆๅคๆฏๆๅคๅฐไธชๅ ณ้ฎ่ฏ๏ผ
A: ๆๅคๆฏๆ5ไธชๅ ณ้ฎ่ฏๅๆถๅๆ๏ผGoogle Trends API้ๅถ๏ผใ
๐บ๏ธ ่ทฏ็บฟๅพ
- ๆฏๆๅฐ็ไฝ็ฝฎ็ญ้
- ๆทปๅ ็ธๅ ณ่ฏ้ขๅๆ
- ๆฏๆๅฎๆถ่ถๅฟ็ๆง
- ๆทปๅ ๆฐๆฎๅฏ่งๅ
- ๆฏๆๆดๅค่ฏญ่จๅๅฐๅบ
๐จ ๅผๅ
ๆฌๅฐๅผๅ่ฎพ็ฝฎ
# ๅ
้ไปๅบ
git clone https://github.com/qihoo/google-trends-mcp-server.git
cd google-trends-mcp-server
# ๅฎ่ฃ
ไพ่ต
pip install -e .
# ่ฟ่กๆๅกๅจ
google-trends-mcp-qihoo
๐ ่ฎธๅฏ่ฏ
MIT License
๐ค ่ดก็ฎ
ๆฌข่ฟๆไบค Pull Request ๅ Issue๏ผ
๐ ๆฏๆ
ๅฆๆ้ฎ้ข๏ผ่ฏทๅจ GitHub Issues ไธญๆๅบใ