NY Times Article Search API MCP Integration

somdn_product_page

This n8n workflow creates a server endpoint to facilitate searches of the New York Times Article Search API via an MCP (Machine Communicative Protocol) interface. Designed for AI agents, the workflow enables dynamic querying of NY Times articles using customizable parameters, making it ideal for news aggregation, research, or content curation applications.

The workflow begins with a ‘MCP Trigger’ node, which acts as a webhook endpoint, listening for incoming requests from an AI agent. Once triggered, the workflow proceeds to an ‘HTTP Request’ node configured to call the NY Times API endpoint (‘https://api.nytimes.com/svc/search/v2/articlesearch.json’).

In the HTTP request, parameters such as search query (‘q’), filter query (‘fq’), date range (‘begin_date’ and ‘end_date’), and other options (‘sort’, ‘fl’, ‘hl’, ‘page’, ‘facet_field’, ‘facet_filter’) are dynamically populated using AI expressions (‘$fromAI()’), enabling flexible, personalized searches.

The responses from the API are sent directly back to the AI agent, making this workflow suitable for automated content fetching, news analysis, or building a custom news dashboard. Customization options include adding data transformation, error handling, and monitoring nodes to refine the process.

This setup is particularly useful for developers or content teams needing up-to-date, filtered news data integrated into automated workflows or AI-driven applications, enhancing research capabilities or enriching content delivery systems.

Node Count

0 – 5 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.mcpTrigger, httpRequestTool, stickyNote

Reviews

There are no reviews yet.

Be the first to review “NY Times Article Search API MCP Integration”

Your email address will not be published. Required fields are marked *