NewsAPI MCP server for AI agents

Live

API KEY

NEWS SEARCH

Media

NewsAPI gives your agent news search in your NewsAPI account: search articles from over 150,000 sources by keyword, source, domain, date, and language, read live top headlines, and list available sources.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
NewsAPI
agent · Acme Q3
Run
What are today's top business headlines in the US?
S
newsapi_top_headlines_list
530ms
News research agent
Pulled the current top business headlines for the US and listed the 10 newest with their sources.
Sources: NewsAPI top headlines, US business
newsapi
10 headlines
18:29
Message Claude...

Tools your news search agent reaches for on NewsAPI, scoped per user.

CALL ANY TOOL
3 tools for news search in NewsAPI: search articles, read top headlines by country, category, or source, and list the available sources.
newsapi_articles_search
Search articles
Search news and blog articles from over 150,000 sources by keyword, source, domain, date and language. Returns status, totalResults and articles with source, author, title, description, url, urlToImage, publishedAt and content (truncated to 200 characters). Use this to research a topic across all articles. Use newsapi_top_headlines_list for current breaking headlines. Set at least one of q, sources or domains.
Parameters
Name
Type
Required
Description
domains
string
Optional
Comma-separated domains to restrict the search to. Example: bbc.co.uk,techcrunch.com.
exclude_domains
string
Optional
Comma-separated domains to remove from the results. Example: engadget.com.
from
string
Optional
Oldest article date and optional time, in ISO 8601. Defaults to the oldest your plan allows. Example: 2026-11-01.
language
string
Optional
Two-letter ISO-639-1 language code. Defaults to all languages. Example: en. One of: `ar`, `de`, `en`, `es`, `fr`, `he`, `it`, `nl`, `no`, `pt`, `ru`, `sv`, `ud`, `zh`.
page
integer
Optional
Page number to return, starting at 1. Defaults to 1. Example: 1.
page_size
integer
Optional
Number of articles per page. Defaults to 100, maximum 100. Example: 100.
q
string
Optional
Keywords or phrase to search for in the title and body, up to 500 characters. Use quotes for an exact phrase, + for words that must appear, - for words that must not, and AND / OR / NOT with parentheses. Example: crypto AND (ethereum OR litecoin) NOT bitcoin.
search_in
string
Optional
Fields to restrict the q search to, comma-separated: title, description, content. Defaults to all fields. Example: title,description.
sort_by
string
Optional
Sort order: relevancy (closest to q first), popularity (popular sources first) or publishedAt (newest first, the default). Example: publishedAt. One of: `relevancy`, `popularity`, `publishedAt`.
sources
string
Optional
Comma-separated source IDs (maximum 20) to search. Get IDs from newsapi_sources_list. Example: bbc-news,the-verge.
to
string
Optional
Newest article date and optional time, in ISO 8601. Defaults to the newest your plan allows. Example: 2026-11-15T23:59:59.
newsapi_sources_list
List sources
newsapi_top_headlines_list
List top headlines
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// NewsAPI tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newsapi"], toolNames: [
    "newsapi_articles_search",
    "newsapi_top_headlines_list",
    "newsapi_sources_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find articles about solid-state batteries from the last week and show today's top technology headlines" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newsapi"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find articles about solid-state batteries from the last week and show today's top technology headlines" }],
  tools,
});

// Execute the tool call with the user's vaulted NewsAPI API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newsapi"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find articles about solid-state batteries from the last week and show today's top technology headlines" }],
  tools,
});

// Tool call runs with the user's vaulted NewsAPI API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["newsapi"] }, pageSize: 100,
});

const agent = new Agent({
  name: "news_research_agent",
  model: "gemini-2.5-pro",
  instruction: "NewsAPI tools scoped to this user",
  tools,
});

await agent.run("Find articles about solid-state batteries from the last week and show today's top technology headlines");
Try these prompts
Copy any prompt into your agent. Each maps directly to a NewsAPI tool. Click to copy, paste into your agent, done.
Search articles
Copy the prompt
Copied
Find articles about solid-state batteries from the last 7 days.
Copy the prompt
Copied
Search techcrunch.com for articles about funding rounds.
Copy the prompt
Copied
Find German-language articles about the euro.
Top headlines
Copy the prompt
Copied
Show the top technology headlines in the US.
Copy the prompt
Copied
What are the breaking headlines from the BBC?
Copy the prompt
Copied
Show top headlines mentioning inflation.
Sources
Copy the prompt
Copied
List the English-language business news sources.
Copy the prompt
Copied
Which news sources are available for Canada?
Copy the prompt
Copied
List the sports sources for top headlines.
SEE HOW AUTH WORKS
Each user connects their own NewsAPI API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
NewsAPI
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
NewsAPI
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
NewsAPI
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
NewsAPI
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other media connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other media connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared NewsAPI API key looks fine in a demo. In production every search looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
NewsAPI today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access NewsAPI as the user or through a shared key?
As the user. Each user connects their own NewsAPI API key once, and Scalekit sends it with every call. Audit logs attribute every search to that user, not a shared service account.
Where is the NewsAPI API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in NewsAPI?
Yes. All 3 tools are read-only, so the agent can search and read news but cannot change anything. Filter by tool name in listScopedTools to expose only what you want, for example newsapi_top_headlines_list without newsapi_articles_search. Scalekit also enforces scope checks before every API call.
What happens when a user revokes NewsAPI access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which sources does the agent search?
newsapi_articles_search covers news and blog articles from over 150,000 sources and filters by keyword, source, domain, date, and language. newsapi_top_headlines_list reads live top and breaking headlines by country, category, source, or keyword. newsapi_sources_list lists the sources available for top headlines.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""newsapi"": {
""url"": ""https://mcp.scalekit.com/newsapi"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.newsapi]
url = ""https://mcp.scalekit.com/newsapi""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""newsapi"": {
""url"": ""https://mcp.scalekit.com/newsapi"",
""type"": ""http""
}
}
}