🌊 Gwelle: Native Google Trends Intelligence
gwelle is a lightweight Rust client for the Google Trends API.
Unlike tools that rely on browser automation, gwelle runs natively with reqwest, bootstraps session cookies, handles XSSI response wrappers, and deserializes payloads into typed Rust structs.
With sub-region mapping, real-time query support, and a built-in Model Context Protocol (MCP) sidecar, gwelle is suitable for ingestion pipelines and agent workflows.
⚡ Features
- Native Execution: No webdriver, Chrome, Puppeteer, or virtual-display requirement.
- Session + XSSI Handling: Uses native session bootstrapping and robust XSSI parsing for Trends API responses.
- MCP Support: Includes a
stdioMCP server that summarizes Trends outputs for LLM tool use. - Five-Dimensional Reporting: Cross-compare up to 5 keywords. Filter down by exact Geographic State (e.g.
US-CA), Search Property (youtube,images), and Category ID targeting.
🦀 Installation (As a Rust Library)
Add this to your Cargo.toml:
[]
= "0.1.0"
🚀 Quick Start Example
Fetch the timeline curves for multiple keywords concurrently. gwelle maps exactly to the frontend Google Trends capabilities.
use ;
use ;
async
🤖 Model Context Protocol (MCP) Mode
If you are orchestrating an Agentic AI platform (like Tectic, Claude Desktop, or OpenClaw), passing massive 54-week JSON structs into the LLM context window eats thousands of tokens and drastically slows down inference.
We ship gwelle-mcp, a native Rust sidecar that runs an analytical engine. It fetches data in the background, calculates the Peaks/Lows computationally, and exposes it over the Model Context Protocol seamlessly.
How to use
Add the binary path to your MCP Gateway registry:
Your automated agents can call analyze_keyword_trend("Nvidia", "US") and receive compact, structured Markdown output:
**Keyword:** `Nvidia`
- --
**Rising / Breakout Topics:**
- -
🤝 Contributing
Found a payload schema change? Submit a PR! Make sure to keep strip_xssi implementations bracket-agnostic to handle arbitrary Google boundary shifts.
License
MIT License.
Made with ❤️ and 🤖 in Hamburg by NMA.vc