Search for specific news articles by query
Find relevant news articles matching a specific keyword or phrase from global sources.
How it works
Read-onlyResearch and knowledge
The agent utilizes the search functionality of the AllNewsAPI MCP server. It takes a user-provided search query and an optional country filter to execute a search request. The agent parses the returned data to display matching articles with titles, descriptions, and source information. Verify the search query is clear and concise to ensure relevant results.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Search for specific news articles by query
Search for news articles about 'artificial intelligence' in the UK.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
export const searchNews = async (query, country = 'us') => { try { const response = await newsApi.get('/headlines', { params: { q: query, country } }); return response.data; }Building a News Aggregator App with AllNewsAPI - AllNewsAPI Blog | AllNewsAPI