Skip to main content

A collection of reusable AI agents for trend research, news analysis, and content intelligence. Each agent runs standalone (MCP server) or together through an orchestrator.

Project description

agentshub

A collection of AI agents for trend research, news analysis, and content intelligence. Each agent can run standalone (as an MCP server) or together through an orchestrator that routes queries to the right agents automatically.

Agents

Agent Data Source What it does Standalone MCP
rising_search BigQuery Google Trends Nationally rising + popular search terms across 210 US DMAs standalone/rising_search_mcp.py
news_trending Google News RSS Trending articles by topic with full article body fetching standalone/news_trending_mcp.py
social_trends 10 marketing blogs Trend extraction from Sprout Social, Hootsuite, Later, etc. Spawns sub-agent for structured extraction standalone/social_trends_mcp.py
wikipedia_spike Wikipedia Pageview API Detects pageview spikes — leading indicator for cultural trends standalone/wikipedia_spike_mcp.py
youtube_shorts YouTube Data API Trending videos by topic, filterable to shorts (<60s) standalone/youtube_shorts_mcp.py
instagram_trends Apify Instagram Scraper Discovers viral Instagram content by topic — hashtags, hooks, engagement patterns standalone/instagram_trends_mcp.py
search_console Google Search Console API Top queries, impressions, CTR, position. Identifies quick-win SEO opportunities standalone/search_console_mcp.py
bbc_news BigQuery BBC News Searches BBC News articles by topic — titles, descriptions, body previews standalone/bbc_news_mcp.py
patent_search BigQuery Google Patents Searches 90M+ patents by keyword — filings, assignees, velocity, countries standalone/patent_search_mcp.py
bigquery_analyst Any BigQuery public dataset Runs SQL queries or inspects table schemas. SELECT only. standalone/bigquery_analyst_mcp.py
site_security Public HTTP requests Scans websites for security issues — SSL, headers, WordPress vulns, exposed files. Grades A-F. standalone/site_security_mcp.py

Example: site_security agent

> scan the security of example-shop.com

agents firing:
  → site_security(url='https://www.example-shop.com')
  [21:22:10] Scanning https://www.example-shop.com
  [21:22:11]   ✓ SSL valid, expires 2026-06-20 (68 days)
  [21:22:14] Checking security headers...
  [21:22:14]   0/7 headers present, 7 missing
  [21:22:14] Checking for WordPress...
  [21:22:16]   ⚠ EXPOSED: /wp-content/debug.log
  [21:22:20] Scan complete: 0 critical, 8 warnings, 1 info
  [21:22:20] Grade: C

Key findings:
  ✓ SSL valid (Let's Encrypt, 68 days remaining)
  ✓ HTTPS redirect working
  ✗ 7/7 security headers missing (HSTS, CSP, X-Frame-Options, etc.)
  ✗ Server header exposes software version
  ✗ /wp-content/debug.log publicly accessible

Quick start

# Clone and setup
git clone https://github.com/yourusername/agentshub.git
cd agentshub
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

# Add your keys
cp .env.example .env
# Edit .env with your GOOGLE_CLOUD_PROJECT, OPENAI_API_KEY, etc.

# Run the interactive chat (supervisor routes to agents automatically)
python chat.py

Three ways to use

1. Interactive chat — supervisor decides which agents to call

python chat.py

> what's trending in AI advertising this week?
# → fires rising_search + news_trending + social_trends automatically

2. Parallel demo — sequential vs parallel with timing

python demo.py
# → runs 3 agents sequential, then parallel, shows speedup

3. Standalone MCP — use one agent from Claude Code

# Register a single agent
claude mcp add rising-search python standalone/rising_search_mcp.py

# Or register all agents at once
claude mcp add agentshub python -m agentshub.mcp_server

Architecture

User query
    │
    ▼
Orchestrator / Supervisor (GPT-4o-mini)
    │ reads query → decides which agents to call
    │
    ├─→ rising_search     [BigQuery — no LLM]
    ├─→ news_trending     [RSS + web fetch — no LLM]
    ├─→ social_trends     [10 blogs + sub-agent GPT-4o-mini]
    ├─→ wikipedia_spike   [Pageview API — no LLM]
    ├─→ youtube_shorts    [YouTube API — no LLM]
    ├─→ instagram_trends  [Apify — no LLM]
    ├─→ search_console    [GSC API — no LLM]
    ├─→ bbc_news          [BigQuery — no LLM]
    ├─→ patent_search     [BigQuery — no LLM]
    ├─→ bigquery_analyst  [BigQuery — any dataset, any SQL]
    └─→ site_security    [HTTP checks — no auth needed]
    │
    ▼
Synthesizer (GPT-4o-mini) → final response

Adding a new agent

  1. Create agentshub/agents/your_agent.py with a run(**kwargs) -> dict function
  2. Add entry to REGISTRY in agentshub/agents/__init__.py
  3. (Optional) Create standalone/your_agent_mcp.py for standalone use
  4. The orchestrator, chat, and MCP server pick it up automatically

Stack

  • Orchestration: Custom fan-out/fan-in with ThreadPoolExecutor
  • Supervisor: GPT-4o-mini via OpenAI function calling
  • Data agents: BigQuery, Google News RSS, Wikipedia API, YouTube API
  • Sub-agent extraction: GPT-4o-mini for structured trend extraction
  • MCP: Model Context Protocol for standalone agent access
  • Web fetch: Parallel article fetching with blocking/paywall handling

Requirements

  • Python 3.11+
  • Google Cloud project with BigQuery access (for rising_search)
  • OpenAI API key (for supervisor + social_trends sub-agent)
  • YouTube API key (for youtube_shorts, optional)
  • Apify API token (for instagram_trends, optional)
  • Google Search Console access (for search_console, optional)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentshub_ai-0.1.0.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentshub_ai-0.1.0-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file agentshub_ai-0.1.0.tar.gz.

File metadata

  • Download URL: agentshub_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agentshub_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7123d5cf8f5cac7288ebc990cdd9eccad53b9c95e0d47fa380ecfd7a781f4726
MD5 6437d22552ab0bcc5ce3f06a1a9f22d5
BLAKE2b-256 c92b32c5c140b6649db3f3538651856eece3c00be40fb5a0b8baabbf1ceb6730

See more details on using hashes here.

File details

Details for the file agentshub_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentshub_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agentshub_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c79b745399ea11f54b41b2451868e125153989cb43ddb598c44a438f55a012d9
MD5 fca726e4021086aaee7a51554013d3ab
BLAKE2b-256 97dc4f019d3f2b409413f19af0ca62b814afc9ba2d40838641273a13a39e43f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page