everything
Pack: newsapi · Endpoint: https://gateway.pipeworx.io/newsapi/mcp
Search the NewsAPI article archive by keyword q, source domains, date range (from/to), or language. Sortable by relevancy, popularity, or publishedAt. Returns article title, description, source, content snippet, URL, and published date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | no | |
qInTitle | string | no | |
sources | string | no | |
domains | string | no | |
excludeDomains | string | no | |
from | string | no | |
to | string | no | |
language | string | no | |
sortBy | string | no | |
pageSize | number | no | |
page | number | no |
Example call
Arguments
{
"q": "artificial intelligence",
"sortBy": "publishedAt",
"pageSize": 20
}
curl
curl -X POST https://gateway.pipeworx.io/newsapi/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"everything","arguments":{"q":"artificial intelligence","sortBy":"publishedAt","pageSize":20}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('everything', {
"q": "artificial intelligence",
"sortBy": "publishedAt",
"pageSize": 20
});
More examples
{
"qInTitle": "election",
"from": "2024-01-01",
"to": "2024-12-31",
"language": "en",
"pageSize": 50
}
Response shape
| Field | Type | Description |
|---|---|---|
status | string | API response status |
totalResults | number | Total number of results available |
articles | array | Array of article objects |
Full JSON Schema
{
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "API response status"
},
"totalResults": {
"type": "number",
"description": "Total number of results available"
},
"articles": {
"type": "array",
"description": "Array of article objects",
"items": {
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
],
"description": "Source ID"
},
"name": {
"type": "string",
"description": "Source name"
}
}
},
"author": {
"type": [
"string",
"null"
],
"description": "Article author"
},
"title": {
"type": "string",
"description": "Article title"
},
"description": {
"type": [
"string",
"null"
],
"description": "Article description"
},
"url": {
"type": "string",
"description": "Article URL"
},
"urlToImage": {
"type": [
"string",
"null"
],
"description": "Image URL for article"
},
"publishedAt": {
"type": "string",
"description": "Publication timestamp"
},
"content": {
"type": [
"string",
"null"
],
"description": "Article content"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"newsapi": {
"url": "https://gateway.pipeworx.io/newsapi/mcp"
}
}
}
See Getting Started for client-specific install steps.