mcp-trendpulse
TrendPulse is a Python Model Context Protocol (MCP) server for researching current news and search-interest trends. It combines Google News discovery and article extraction with Google Trends analysis so MCP clients can inspect what is trending, compare keyword momentum, explore related demand, and add current-news context to research workflows.
The project currently ships as a community/self-hosted MCP server and also contains the implementation for a separate hosted TrendPulse by DigestSEO surface for remote MCP clients such as ChatGPT and Codex. The hosted layer uses a smaller, goal-oriented tool surface while the community server keeps the full low-level research toolkit available to developers.
Project status: the local/community server is usable today. The DigestSEO-hosted MCP and public OpenAI plugin are not released yet and should not be treated as available endpoints.
Engineering context: TrendPulse is part of the DigestSEO MCP ecosystem. It complements mcp-gsc for Google Search Console data, mcp-geo for AI visibility, and mcp-web-validator for technical web validation. The broader architecture is documented in the DigestSEO MCP Suite engineering case study.
What TrendPulse can do
News research
- Search Google News by keyword, location, topic, or publisher domain.
- Retrieve top news stories.
- Resolve Google News links and extract article content.
- Fall back from normal HTTP retrieval to Playwright/Chromium for difficult pages.
- Optionally summarize article text with MCP client sampling, with local NLP as a fallback.
Trend research
- Retrieve current trending terms for a geographic market.
- Pull Google Trends interest-over-time data for one or more keywords.
- Calculate keyword growth over custom windows such as 3M or 1Y.
- Rank live trends by volume or growth.
- Inspect interest by country, region, city, or DMA where supported.
- Explore related queries, related topics, suggestions, and category IDs.
- Compare Google Search, YouTube Search, News Search, Image Search, and Google Shopping trend properties where supported by the underlying provider.
Community and hosted architecture
TrendPulse is being developed with two deliberate surfaces:
| Surface | Purpose | Status |
|---|---|---|
| Community MCP | Full Python MCP server for local use, development, self-hosting, and integrations with MCP-compatible clients. | Available in this repository |
| TrendPulse by DigestSEO | Managed remote MCP for ChatGPT/Codex and a future public OpenAI plugin with a smaller, task-oriented tool surface. | In development |
The community server remains useful independently. The hosted edition will reuse the same core trend-research concepts while adding the deployment, reliability, authentication, observability, and product integration needed for a managed service.
The implemented hosted tool surface is intentionally higher level than the community API and centers on goals such as:
discover_trendsanalyze_keyword_trendcompare_keyword_trendsdiscover_related_demandget_trend_contextfind_seo_opportunities
These names describe the hosted ChatGPT Apps/MCP interface; they remain separate from the current Community MCP tool names.
Installation
Run directly from GitHub with uvx (recommended)
The package is not yet published to PyPI, so the most direct installation path is:
uvx --from git+https://github.com/AKzar1el/mcp-trendpulse.git mcp-trendpulse
After a PyPI release exists, the shorter form will be:
uvx mcp-trendpulse
Install with pip from a checkout
git clone https://github.com/AKzar1el/mcp-trendpulse.git
cd mcp-trendpulse
python -m pip install .
python -m mcp_trendpulse
Browser fallback
News/article tools can fall back to Playwright when ordinary retrieval cannot extract a usable article. Installing the Python playwright package does not install Chromium automatically.
For local use:
playwright install chromium
For Linux environments that also require browser system dependencies:
playwright install --with-deps chromium
Trend-only operations do not inherently require Chromium.
Client configuration
Claude Desktop
Using uvx directly from GitHub:
{
"mcpServers": {
"mcp-trendpulse": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/AKzar1el/mcp-trendpulse.git",
"mcp-trendpulse"
]
}
}
}
VS Code
{
"mcp": {
"servers": {
"mcp-trendpulse": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/AKzar1el/mcp-trendpulse.git",
"mcp-trendpulse"
]
}
}
}
}
Cursor
Cursor supports global and project MCP configuration. Add the server to the relevant mcp.json configuration:
{
"mcpServers": {
"mcp-trendpulse": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/AKzar1el/mcp-trendpulse.git",
"mcp-trendpulse"
]
}
}
}
Kiro
Requires uv/uvx. The install runs the current community MCP directly from this GitHub repository; it does not use the unreleased hosted surface.
ChatGPT and other cloud MCP clients
The repository now includes a dedicated stateless Streamable HTTP ASGI entry point at mcp_trendpulse.asgi:app. This is separate from the Community stdio entry point, which remains unchanged.
For controlled local/private testing you can run the ASGI app with Uvicorn or use the provided container. See deploy/README.md for the hardened container, Host/Origin allowlists, Chromium sandbox requirements, health/readiness endpoints, and reverse-proxy notes.
The DigestSEO-hosted endpoint and public ChatGPT app are still not released. Hosted deployments now support fail-closed Clerk OAuth authentication; do not expose the remote transport publicly unless Clerk issuer/JWKS/audience settings, the public base URL, and the Host/Origin allowlists are configured for that deployment.
Configuration
TrendPulse loads environment variables from the process environment and from a local .env file when present.
Useful variables include:
HTTP_PROXY=http://your-proxy-address:port
HTTPS_PROXY=http://your-proxy-address:port
GOOGLE_TRENDS_DELAY=2.0
GOOGLE_TRENDS_DELAY controls the request delay used by the current Trends provider. Proxy variables can be useful when the upstream service rate-limits or blocks a particular network.
Remote deployments also support TRENDPULSE_HTTP_PATH, TRENDPULSE_HTTP_ALLOWED_HOSTS, TRENDPULSE_HTTP_ALLOWED_ORIGINS, and TRENDPULSE_BROWSER_SANDBOX. The container enables Chromium sandboxing explicitly; local Community runs retain the Playwright-compatible default unless you opt in.
Do not commit secrets, private proxy credentials, or machine-specific .env files.
MCP tools
The community MCP server currently exposes 16 tools.
News tools
| Tool | Purpose |
|---|---|
get_news_by_keyword |
Find recent news articles matching a keyword. |
get_news_by_location |
Find recent news associated with a location. |
get_news_by_topic |
Find recent news for a supported Google News topic. |
get_top_news |
Retrieve top Google News stories. |
get_news_by_site |
Find recent news from a specific publisher domain. |
get_article_content |
Download, validate, extract, and optionally summarize one article URL. |
Trend tools
| Tool | Purpose |
|---|---|
get_trending_terms |
Retrieve current trending terms for a geographic target. |
get_trends |
Retrieve interest-over-time points for one or more keywords. |
get_growth |
Calculate search-interest growth over requested windows. |
get_ranked_trends |
Rank current trends by growth or volume. |
get_top_trends |
Retrieve a top-trends feed without supplying a keyword. |
get_interest_by_region |
Compare keyword interest across geographic regions. |
get_related_queries |
Retrieve top and rising related search queries. |
get_related_topics |
Retrieve top and rising related Google Trends topics. |
get_suggestions |
Resolve autocomplete/topic suggestions for a query. |
get_categories |
Retrieve Google Trends category IDs and names. |
Example: explicit trend window
get_trends accepts an explicit timeframe. Supplying one is preferable when you need reproducible comparisons.
{
"keyword": ["technical SEO audit", "AI SEO audit"],
"geo": "US",
"source": "google search",
"timeframe": "today 12-m",
"cat": 0
}
Supported provider ranges include standard windows such as today 12-m and today 5-y, relative windows such as today 90-d, all, and exact date ranges such as 2021-01-01 2026-01-01.
Google Trends values are normalized interest scores. Do not interpret a 0-100 interest series as absolute search volume.
CLI
The separate Click CLI exposes a smaller news-oriented command set than the MCP server:
uv run mcp-trendpulse-cli --help
Current CLI commands:
keyword
location
top
topic
trending
The CLI and MCP surfaces are intentionally documented separately because they do not expose the same command set.
Development
Install the project with its development dependencies using your preferred Python environment, then run the unit suite:
python -m pytest
The default pytest configuration excludes live integration tests.
Run live provider tests explicitly with:
python -m pytest tests/integration -m integration
Browser-marked integration tests require Playwright Chromium to be installed.
Run Ruff checks with:
ruff check .
MCP Inspector
Run the published-from-GitHub server through the MCP Inspector:
npx @modelcontextprotocol/inspector uvx --from git+https://github.com/AKzar1el/mcp-trendpulse.git mcp-trendpulse
For a local checkout:
npx @modelcontextprotocol/inspector uv run mcp-trendpulse
Packaging
A GitHub Actions workflow is already present for building and publishing Python distributions through PyPI Trusted Publishing when a GitHub release is published. Until the first package release exists, use the GitHub uvx --from ... command shown above.
Security notes
Article retrieval is an outbound network feature and is treated as untrusted input. The implementation validates HTTP(S) targets, rejects private and non-routable destinations, checks redirect targets, enforces response-size limits, and applies browser-route validation when Playwright is used.
If you deploy TrendPulse remotely, retain these controls and add deployment-level rate limiting, request timeouts, observability, and resource limits rather than relying only on application defaults.
Roadmap
Current production-readiness work is focused on:
- Keeping documentation, packaging metadata, and generated MCP manifests coherent with the live tool surface.
- Adding continuous integration for unit tests and static checks.
- Separating provider access from TrendPulse's domain logic so providers can be changed without rewriting the MCP layer.
- Adding a production remote HTTP transport while preserving local stdio operation.
- Designing a smaller high-level hosted tool surface for ChatGPT/Codex.
- Integrating the hosted service with the DigestSEO application and operational stack.
- Packaging and testing the hosted MCP as an OpenAI plugin only after the service is production-ready.
License
MIT. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_trendpulse-0.2.10.tar.gz.
File metadata
- Download URL: mcp_trendpulse-0.2.10.tar.gz
- Upload date:
- Size: 67.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc28a5080b8b8a571597140876940c3fd4fa837ba14036db68f1c2c7aefde32
|
|
| MD5 |
1ce0dea98070866c76e3e8e795c60509
|
|
| BLAKE2b-256 |
28184184250fd63c41cc38bc8b1399aa2330cece411fc3463ae41543302096a2
|
Provenance
The following attestation bundles were made for mcp_trendpulse-0.2.10.tar.gz:
Publisher:
publish.yml on AKzar1el/mcp-trendpulse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_trendpulse-0.2.10.tar.gz -
Subject digest:
6cc28a5080b8b8a571597140876940c3fd4fa837ba14036db68f1c2c7aefde32 - Sigstore transparency entry: 2653050936
- Sigstore integration time:
-
Permalink:
AKzar1el/mcp-trendpulse@6ed9a846d903eaf6f46375db200b71586106f885 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AKzar1el
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ed9a846d903eaf6f46375db200b71586106f885 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_trendpulse-0.2.10-py3-none-any.whl.
File metadata
- Download URL: mcp_trendpulse-0.2.10-py3-none-any.whl
- Upload date:
- Size: 42.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ec0043f74f7870a2e9a6dcff932606de37656d9eb367d3ccb5ca1fb609cfefc
|
|
| MD5 |
29d6eff29fdd1c2af5e932d91fcd6b96
|
|
| BLAKE2b-256 |
cdb39fa0720940f99f210aa122ab6c8bdb780fdf2f2802532b9fa7a7980e4854
|
Provenance
The following attestation bundles were made for mcp_trendpulse-0.2.10-py3-none-any.whl:
Publisher:
publish.yml on AKzar1el/mcp-trendpulse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_trendpulse-0.2.10-py3-none-any.whl -
Subject digest:
1ec0043f74f7870a2e9a6dcff932606de37656d9eb367d3ccb5ca1fb609cfefc - Sigstore transparency entry: 2653051009
- Sigstore integration time:
-
Permalink:
AKzar1el/mcp-trendpulse@6ed9a846d903eaf6f46375db200b71586106f885 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AKzar1el
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ed9a846d903eaf6f46375db200b71586106f885 -
Trigger Event:
push
-
Statement type: