search_articles

Pack: nyt · Endpoint: https://gateway.pipeworx.io/nyt/mcp

Full-text search of New York Times news articles. Returns headlines, abstracts, sections, bylines, and URLs. Example: search_articles({ query: “artificial intelligence”, sort: “newest” })

Parameters

NameTypeRequiredDescription
querystringyesSearch query — keywords or phrase to search New York Times articles for.
pagenumbernoResult page (0-indexed, 10 results per page). Default 0.
begin_datestringnoEarliest article date in YYYYMMDD format, e.g. “20240101” (optional).
sortstringnoSort order for results. Default “newest”.
_apiKeystringnoOptional — your own NYT API key for higher limits; omit to use the shared Pipeworx key.

Example call

Arguments

{
  "query": "climate change",
  "sort": "newest"
}

curl

curl -X POST https://gateway.pipeworx.io/nyt/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_articles","arguments":{"query":"climate change","sort":"newest"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_articles', {
  "query": "climate change",
  "sort": "newest"
});

More examples

{
  "query": "inflation",
  "begin_date": "20240101",
  "page": 0,
  "sort": "relevance"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "nyt": {
      "url": "https://gateway.pipeworx.io/nyt/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 2, 2026