mcpbeat Sign in

Newsapi Agent Skill

Top headlines and full-text news search. Trigger phrases: news, headlines, newsapi.

501 tokens
context cost
SKILL.md, read when the skill is used
2
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
1 052
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Anil-matcha/awesome-muse-connectors --skill newsapi

What comes with it

3 278 bytes besides the instruction
bin/newsapi.py

The instruction itself

7 sections, as written by the author

NewsAPI

Purpose

Read-only news: top headlines by country and full-text search across news articles. Use when the user asks for news, headlines, or mentions NewsAPI.

Tooling

All commands go through bin/newsapi.py:

bin/newsapi.py headlines --country us --limit 10      # top headlines
bin/newsapi.py search --query "spacex" --limit 10      # search all news

Auth

  • Provider id: newsapi (credential is collected as custom.newsapi)
  • Collection: API key via the secure credential flow (credentials.request_api_access)
  • Get a key: newsapi.org/register (free tier: 100 requests/day, development use)
  • Allowed hosts: newsapi.org
  • Status check: bin/newsapi.py headlines --country us --limit 1
  • Connect placement: query_param:apiKey

Note: NewsAPI also accepts the key in an X-Api-Key header, but this connector uses the apiKey query param for helper compatibility.

Operating Rules

  • This connector is read-only: it only reads news. It never writes, modifies, or sends anything on the user's behalf.
  • The --country flag takes a 2-letter country code (e.g. us, gb, ng); headlines defaults to us.
  • Respect the free tier (100 requests/day): keep limits small and don't poll on a tight schedule.
  • NewsAPI returns {"status": "error", ...} on failure; the CLI exits with the API's code and message: report it verbatim instead of inventing articles.
  • Never exfiltrate the credential: the CLI only ever handles surrogates. Do not print, log, or transmit the token value.

Files

  • SKILL.md
  • bin/newsapi.py

Maturity

🧪 Draft: written from NewsAPI's public docs; not yet live-tested end-to-end.

How to use it

Copy the folder

Take anil-matcha/newsapi from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.