newsdata-mcp
v0.4.1MCP server for the NewsData.io REST API (news, crypto and market news, source discovery, article counts).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_news_counts
COUNT how many NEWS ARTICLES match a search, as a total plus one count per month, day or hour. Returns numbers only, no articles: to read articles use `get_news`. COSTS 50 CREDITS PER CALL (and per page) and needs a paid plan. Call it only when the user asks for counts, volumes or trends, never to check whether articles exist. The result has `total_results` (all matching articles in the whole date range) and one `date_time,count` line per bucket; `date_time` is the start of the bucket in UTC. Time window (pass dates, or `timeframe`, or neither): - Neither: the last 30 days. - `from_date` /…
get_crypto_news
Search CRYPTOCURRENCY NEWS articles. Returns a list of articles, newest first: 10 per call unless you pass `size`, with title, description and metadata but not the full text. For stock-market news use `get_market_news`; for general news use `get_news`. Time window (pass dates, or `timeframe`, or neither): - Neither: the last 30 days. - `from_date` / `to_date`: a date range in UTC, as far back as the plan's history. - `timeframe`: the last N hours or minutes (paid plans only). Strict rules (this tool returns Error before any API call if violated): - Use only ONE of `q`, `q_in_title`, or `q_i…
| Parameter | Type | Description |
|---|---|---|
coin | Coin ticker symbols, e.g. `btc`, `eth`. A coin name such as `bitcoin` is rejected, and the error gives the right symbol. Comma-separated string or list. | |
content | `true`: only articles that have full text, and that text is included in the result (it is long; a list leaves it out otherwise). `false` changes nothing. Needs a paid plan. | |
exclude_field | Result fields to leave out, to make the result smaller: a field (`content`, `keyword`), a whole group (`media`, `source`, `ai`) or one field of a group (`ai.summary`). `id` cannot be left out. Comma-s… | |
exclude_language | Language codes (ISO 639-1), e.g. `en`, `hi`, `es`. Comma-separated string or list. `language` keeps only these languages; `exclude_language` leaves them out. | |
exclude_source_url | News sources by website address: host plus optional path, e.g. `bbc.com` or `vice.com/de`. `https://` and `www.` are optional, so a `source.url` from a result can be passed as it is. It must match a k… | |
from_date | Start of the date range, in UTC: `YYYY-MM-DD` or `YYYY-MM-DD HH:MM:SS`, e.g. `2026-06-01`. Not in the future. Cannot be combined with `timeframe`. | |
id | Article ids (the 32-character `id` of a result) to fetch exactly those articles, with their full text (paid plans). Comma-separated string or list. Can only be combined with `from_date` and `to_date`. | |
image | `true`: only articles that have an image. `false`: no filtering, but `media.image_url` is left out of the result. | |
language | Language codes (ISO 639-1), e.g. `en`, `hi`, `es`. Comma-separated string or list. `language` keeps only these languages; `exclude_language` leaves them out. | |
page | Paging token: the `next_page` value of the previous result, copied exactly. Repeat every other argument unchanged. Omit on the first call. | |
q | Search words, matched against title, description, content, keywords and URL. Several words must all appear. Use double quotes for an exact phrase and AND, OR, NOT with parentheses: `(tesla OR rivian)… | |
q_in_meta | Same search syntax as `q`, but matched against title, description, keywords and URL (not the article body). | |
q_in_title | Same search syntax as `q`, but matched against the article title only. | |
remove_duplicate | `true`: leave out articles flagged as duplicates of another article. `false` or omitted: keep them. | |
sentiment | Only articles whose AI sentiment is `positive`, `neutral` or `negative`. | |
size | Articles per call, from 1 to the plan maximum (10 on the Free plan, 50 on paid plans). Default: 10. | |
sort | Order of results: `pubdatedesc` newest first (default), `pubdateasc` oldest first, `relevancy` best match first (needs `q`, `q_in_title` or `q_in_meta`), `source` highest-ranked sources first. | |
source_priority | Keep only sources above a rank: `top` = the highest-ranked sources only, `medium` = top and mid-ranked, `low` = also lower-ranked. Omit for all sources. | |
source_url | News sources by website address: host plus optional path, e.g. `bbc.com` or `vice.com/de`. `https://` and `www.` are optional, so a `source.url` from a result can be passed as it is. It must match a k… | |
tag | Crypto topic tag ids. Allowed: adoption, blockchain, coin_fundamental, competition, developer_community, economy, education, exchange, founders_investors, general, geopolitics, global_markets, governm… | |
timeframe | Only the last N hours (a number from 1 to 720, e.g. `6`) or the last N minutes (with `m`, from `1m` to `43200m`, e.g. `90m`). Paid plans only. Cannot be combined with `from_date` or `to_date`. | |
timezone | IANA time zone name, e.g. `Asia/Kolkata`. It only changes how `published_at` and `fetched_at` are shown (default UTC); dates you pass are always read as UTC. | |
to_date | End of the date range, in UTC: `YYYY-MM-DD` (covers that whole day) or `YYYY-MM-DD HH:MM:SS`. Not in the future. Send `from_date` with it. Cannot be combined with `timeframe`. | |
url | Full URL of one article, starting with `http://` or `https://`, to fetch exactly that article, with its full text (paid plans). Can only be combined with `from_date` and `to_date`. | |
video | `true`: only articles that have a video. `false`: no filtering, but `media.video_url` is left out of the result. |
get_crypto_counts
COUNT how many CRYPTOCURRENCY NEWS articles match a search, as a total plus one count per month, day or hour. Returns numbers only, no articles: to read articles use `get_crypto_news`. COSTS 50 CREDITS PER CALL (and per page) and needs a paid plan. Call it only when the user asks for counts, volumes or trends, never to check whether articles exist. The result has `total_results` (all matching articles in the whole date range) and one `date_time,count` line per bucket; `date_time` is the start of the bucket in UTC. Time window (pass dates, or `timeframe`, or neither): - Neither: the last 30…
| Parameter | Type | Description |
|---|---|---|
coin | Coin ticker symbols, e.g. `btc`, `eth`. A coin name such as `bitcoin` is rejected, and the error gives the right symbol. Comma-separated string or list. | |
content | `true`: count only articles that have this (`image`: an image, `video`: a video, `content`: full text; `content` needs a paid plan). `false` has no effect. | |
exclude_language | Language codes (ISO 639-1), e.g. `en`, `hi`, `es`. Comma-separated string or list. `language` keeps only these languages; `exclude_language` leaves them out. | |
exclude_source_url | News sources by website address: host plus optional path, e.g. `bbc.com` or `vice.com/de`. `https://` and `www.` are optional, so a `source.url` from a result can be passed as it is. It must match a k… | |
from_date | Start of the date range, in UTC: `YYYY-MM-DD` or `YYYY-MM-DD HH:MM:SS`, e.g. `2026-06-01`. Not in the future. Cannot be combined with `timeframe`. | |
image | `true`: count only articles that have this (`image`: an image, `video`: a video, `content`: full text; `content` needs a paid plan). `false` has no effect. | |
interval | Length of each bucket: `month`, `day` (default) or `hour`. Buckets are in UTC. | |
language | Language codes (ISO 639-1), e.g. `en`, `hi`, `es`. Comma-separated string or list. `language` keeps only these languages; `exclude_language` leaves them out. | |
page | Paging token: the `next_page` value of the previous result, copied exactly. Repeat every other argument unchanged. Omit on the first call. | |
q | Search words, matched against title, description, content, keywords and URL. Several words must all appear. Use double quotes for an exact phrase and AND, OR, NOT with parentheses: `(tesla OR rivian)… | |
q_in_meta | Same search syntax as `q`, but matched against title, description, keywords and URL (not the article body). | |
q_in_title | Same search syntax as `q`, but matched against the article title only. | |
remove_duplicate | `true`: leave out articles flagged as duplicates of another article. `false` or omitted: keep them. | |
sentiment | Only articles whose AI sentiment is `positive`, `neutral` or `negative`. | |
size | Buckets per page, from 1 to 50. Default: 50. | |
sort | Order of buckets: `pubdatedesc` newest bucket first (default) or `pubdateasc` oldest first. | |
source_priority | Keep only sources above a rank: `top` = the highest-ranked sources only, `medium` = top and mid-ranked, `low` = also lower-ranked. Omit for all sources. | |
source_url | News sources by website address: host plus optional path, e.g. `bbc.com` or `vice.com/de`. `https://` and `www.` are optional, so a `source.url` from a result can be passed as it is. It must match a k… | |
tag | Crypto topic tag ids. Allowed: adoption, blockchain, coin_fundamental, competition, developer_community, economy, education, exchange, founders_investors, general, geopolitics, global_markets, governm… | |
timeframe | Only the last N hours (a number from 1 to 720, e.g. `6`) or the last N minutes (with `m`, from `1m` to `43200m`, e.g. `90m`). Paid plans only. Cannot be combined with `from_date` or `to_date`. | |
to_date | End of the date range, in UTC: `YYYY-MM-DD` (covers that whole day) or `YYYY-MM-DD HH:MM:SS`. Not in the future. Send `from_date` with it. Cannot be combined with `timeframe`. | |
video | `true`: count only articles that have this (`image`: an image, `video`: a video, `content`: full text; `content` needs a paid plan). `false` has no effect. |
get_market_news
Search STOCK-MARKET and FINANCIAL NEWS articles. Every article is tagged with the stocks it mentions (`ticker` and `market_id`). Returns a list of articles, newest first: 10 per call unless you pass `size`, with title, description, AI summary and metadata but not the full text. For cryptocurrency news use `get_crypto_news`; for general news use `get_news`. Time window (pass dates, or `timeframe`, or neither): - Neither: the last 30 days. - `from_date` / `to_date`: a date range in UTC, as far back as the plan's history. - `timeframe`: the last N hours or minutes (paid plans only). Strict rul…
get_market_counts
COUNT how many STOCK-MARKET NEWS articles match a search, as a total plus one count per month, day or hour. Returns numbers only, no articles: to read articles use `get_market_news`. COSTS 50 CREDITS PER CALL (and per page) and needs a paid plan. Call it only when the user asks for counts, volumes or trends, never to check whether articles exist. The result has `total_results` (all matching articles in the whole date range) and one `date_time,count` line per bucket; `date_time` is the start of the bucket in UTC. Time window (pass dates, or `timeframe`, or neither): - Neither: the last 30 da…
get_news
Search NEWS ARTICLES, recent or historical. Returns a list of articles, newest first: 10 per call unless you pass `size`, with title, description, AI summary and metadata but not the full text. For cryptocurrency news use `get_crypto_news`; for stock-market news use `get_market_news`. Time window (pass dates, or `timeframe`, or neither): - Neither: the last 30 days. - `from_date` / `to_date`: a date range in UTC, as far back as the plan's history. - `timeframe`: the last N hours or minutes (paid plans only). Strict rules (this tool returns Error before any API call if violated): - Use only…
register_realtime_query
Use this tool to SET UP a real-time news feed. It registers a standing query on the account and returns a `registration_id`. It does NOT return articles — pass the id to `stream_news` for those. Register once, then stream many times. Registrations persist across sessions; use `list_realtime_queries` to see what already exists before creating another. Strict rules (this tool returns Error before any API call if violated): - Use only ONE of `q`, `q_in_title`, or `q_in_meta`. - Do NOT combine `country` with `exclude_country`. - Do NOT combine `category` with `exclude_category`. - Do NOT comb…
list_realtime_queries
Use this tool to SEE which real-time queries are already registered on the account, with their `registration_id` values and filters. Call this before `register_realtime_query` to avoid creating a duplicate (which the API rejects with 409), and to recover an id you want to pass to `stream_news` or `delete_realtime_query`. Strict rules: none. Takes no parameters.
delete_realtime_query
Use this tool to PERMANENTLY REMOVE a registered real-time query. The registration is gone afterwards and `stream_news` will no longer accept that `registration_id`. This does not delete any articles — only the standing query. Confirm with the user before calling it on an id you did not just create. Strict rules: - `registration_id` is required. Get it from `list_realtime_queries`.
| Parameter | Type | Description |
|---|---|---|
registration_id * | string | The 32-character `registration_id` of a real-time query, as returned by `register_realtime_query` or listed by `list_realtime_queries`. Do not invent one — look it up. |
stream_news
Use this tool to COLLECT real-time articles for an already-registered query. Register it first with `register_realtime_query`. This listens on a live connection and returns as soon as EITHER `max_articles` have arrived OR `wait_seconds` elapses — whichever comes first. It always returns within `wait_seconds`; it does not run forever. The reply says `stopped_because: max_articles | timeout | connection_closed | error`, so you can tell "the cap was hit, there may be more" from "the feed was quiet". Call it again to keep listening — the registration stays alive. Only articles published WHI…
| Parameter | Type | Description |
|---|---|---|
registration_id * | string | The 32-character `registration_id` of a real-time query, as returned by `register_realtime_query` or listed by `list_realtime_queries`. Do not invent one — look it up. |
content | boolean | `true`: include each article's full text (`content`) in the result. It is long, so it is left out by default. |
max_articles | integer | Stop as soon as this many articles have arrived. From 1 to 50; a value outside that range is moved to the nearest limit. Default: 10. |
wait_seconds | number | Longest time to listen, in seconds. From 1 to 120; a value outside that range is moved to the nearest limit. Default: 30. |
get_news_sources
List the NEWS SOURCES (publishers) NewsData.io collects from. This tool returns sources, not articles. Use it to find which sources cover a country, language or category, or to check that a source exists. Strict rules: none. All parameters are optional and can be combined. Other guidance: - Returns at most 100 sources, best-ranked first, with no paging. When more than 100 match they are picked at random, so add filters to find a specific source. - A source must match every filter you pass; within one filter it may match any of the values. - Use a returned source's `url` as `source_url` (o…
| Parameter | Type | Description |
|---|---|---|
category | News categories. Allowed: breaking, business, crime, domestic, education, entertainment, environment, food, health, lifestyle, other, politics, science, sports, technology, top, tourism, world. Comma-… | |
country | Country codes (ISO 3166-1 alpha-2), e.g. `us`, `gb`, `in`. Comma-separated string or list. `country` keeps only these countries; `exclude_country` leaves them out. | |
language | Language codes (ISO 639-1), e.g. `en`, `hi`, `es`. Comma-separated string or list. `language` keeps only these languages; `exclude_language` leaves them out. | |
source_priority | Keep only sources above a rank: `top` = the highest-ranked sources only, `medium` = top and mid-ranked, `low` = also lower-ranked. Omit for all sources. | |
source_url | News sources by website address: host plus optional path, e.g. `bbc.com` or `vice.com/de`. `https://` and `www.` are optional, so a `source.url` from a result can be passed as it is. It must match a k… |