Connector guide2-minute read3 MCP toolsEnglish · Deutsch · Italiano

Come collegare NewsAPI a Gemini — via MCP

Search worldwide news headlines, sources and articles from newsapi.org via any AI agent. 3 tools, API-key auth.

HCBy HelpCode teamUpdated 2 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

MCP connector

NewsAPI

Search worldwide news headlines, sources and articles from newsapi.org via any AI agent. 3 tools, API-key auth.

Tools

3

Region

INTL

Category

data

Authentication

API Key

Required env vars

NEWSAPI_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

No install? Use cloud.anythingmcp.com directly.

Sign in, install the NewsAPI in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.

Open Cloud

TL;DR

Search worldwide news headlines, sources and articles from newsapi.org via any AI agent. 3 tools, API-key auth.

💡 Niente installazione? Vai direttamente su cloud.anythingmcp.com. Accedi, clicca Connectors → NewsAPI, inserisci le credenziali, genera una MCP API key — fatto. Niente Docker, niente git clone, niente server locale.

NewsAPI + Gemini

Search worldwide news headlines, sources and articles from newsapi.org via any AI agent. 3 tools, API-key auth.

Prerequisiti

Le istruzioni di setup complete sono incluse nel connettore stesso (visibili nello store quando lo selezioni). Le variabili d'ambiente richieste sono:

NEWSAPI_API_KEY

Step 1 — Ottieni le credenziali

This connector wraps the NewsAPI v2 REST API (newsapi.org).

Setup:

  1. Register at https://newsapi.org/register for a free Developer key.
  2. Set NEWSAPI_API_KEY.

Authentication: NewsAPI accepts the key as either the X-Api-Key header (used by this adapter) OR an apiKey query string. We use the header so it doesn't appear in URL logs.

Plan limits — IMPORTANT:

  • Developer (free): 100 requests / day, articles delayed by 24h, no commercial use, results capped at 100 per query.
  • Paid plans: live articles, no daily cap, full historical archive.

…(continued in the in-app connector instructions)

Step 2 — Installa l'adapter

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

Step 3 — Aggiungi il connettore in Gemini

Gemini CLI legge i server MCP da ~/.gemini/settings.json (o %APPDATA%\gemini\settings.json su Windows). Aggiungi:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. Ottieni la tua MCP API key da AnythingMCP → Profilo → MCP API Keys → Nuova Key.
  2. Salva il file e riavvia gemini.
  3. Esegui /mcp nella Gemini CLI — NewsAPI dovrebbe essere elencato come disponibile.
  4. Vertex AI Studio: passa https://cloud.anythingmcp.com/mcp nell'array tools della richiesta con lo stesso header Bearer.

Tool disponibili

ToolWhat it does
newsapi_everythingFull-archive search across millions of articles from 80k+ sources
newsapi_top_headlinesBreaking news headlines
newsapi_sourcesList all news sources NewsAPI tracks

FAQ

Gemini 1.5 Pro o 2.x supportano MCP? Sì — Gemini CLI ≥ 0.4 e la Vertex AI tools API accettano connettori MCP httpUrl con header Bearer.

Prossimi passi

Questa guida ti è stata utile?

Ready to ship

Your NewsAPI agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Guide correlate