[{"data":1,"prerenderedAt":872},["ShallowReactive",2],{"blog-introducing-allnewsapi-mcp-server":3},{"id":4,"title":5,"author":6,"body":7,"date":859,"description":860,"draft":861,"extension":862,"image":863,"meta":864,"navigation":865,"path":866,"seo":867,"sitemap":868,"stem":869,"tags":870,"__hash__":871},"blog\u002Fblog\u002Fintroducing-allnewsapi-mcp-server.md","Introducing AllNewsAPI MCP Server","AllNewsAPI Team",{"type":8,"value":9,"toc":827},"minimark",[10,19,24,27,30,46,50,53,85,88,92,97,100,132,136,139,143,146,150,161,165,168,172,189,193,196,304,307,311,316,330,335,340,345,353,358,363,367,370,375,383,388,394,399,405,410,416,421,427,430,434,438,443,449,454,460,464,467,473,477,480,486,489,493,496,502,506,509,535,539,542,547,558,563,574,578,584,590,596,602,606,632,636,643,681,687,691,715,719,762,766,769,775,779,782,787,803,806,809,823],[11,12,13,14,18],"p",{},"We're excited to announce the launch of the ",[15,16,17],"strong",{},"AllNewsAPI MCP Server"," – a Model Context Protocol integration that brings real-time news data directly to your AI assistants and development tools.",[20,21,23],"h2",{"id":22},"what-is-mcp","What is MCP?",[11,25,26],{},"The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools. Think of it as a universal adapter that lets your AI assistant access real-world information beyond its training data.",[11,28,29],{},"With MCP, your AI can:",[31,32,33,37,40,43],"ul",{},[34,35,36],"li",{},"Access real-time data from APIs",[34,38,39],{},"Execute tools and functions",[34,41,42],{},"Retrieve context-specific information",[34,44,45],{},"Provide more accurate, up-to-date responses",[20,47,49],{"id":48},"why-we-built-this","Why We Built This",[11,51,52],{},"Developers using AI assistants like Claude, Cursor, and VS Code Copilot often need access to current news data for:",[31,54,55,61,67,73,79],{},[34,56,57,60],{},[15,58,59],{},"Research and analysis"," - Understanding current events and trends",[34,62,63,66],{},[15,64,65],{},"Content creation"," - Writing articles with up-to-date information",[34,68,69,72],{},[15,70,71],{},"Market intelligence"," - Tracking industry news and competitor activity",[34,74,75,78],{},[15,76,77],{},"Application development"," - Building news-powered features with AI assistance",[34,80,81,84],{},[15,82,83],{},"Data journalism"," - Analyzing news patterns and sentiment",[11,86,87],{},"Previously, you'd need to manually search for news, copy-paste articles, or write custom integrations. Now, your AI assistant can access AllNewsAPI directly through natural language queries.",[20,89,91],{"id":90},"key-features","Key Features",[93,94,96],"h3",{"id":95},"comprehensive-news-search","Comprehensive News Search",[11,98,99],{},"Access news articles with advanced filtering:",[31,101,102,108,114,120,126],{},[34,103,104,107],{},[15,105,106],{},"Date ranges"," - From the last hour to 10 years of historical data",[34,109,110,113],{},[15,111,112],{},"Languages"," - 22 languages including English, Spanish, Chinese, Arabic, and more",[34,115,116,119],{},[15,117,118],{},"Countries"," - 244 countries worldwide",[34,121,122,125],{},[15,123,124],{},"Categories"," - Technology, business, sports, entertainment, health, science, and more",[34,127,128,131],{},[15,129,130],{},"Keywords"," - Search for specific topics, companies, or events",[93,133,135],{"id":134},"real-time-headlines","Real-Time Headlines",[11,137,138],{},"Get the latest breaking news and top headlines with customizable parameters. Perfect for staying informed about rapidly developing stories.",[93,140,142],{"id":141},"llm-optimized-responses","LLM-Optimized Responses",[11,144,145],{},"Clean, formatted output designed specifically for AI consumption. The server handles all the complexity of API calls, parameter validation, and response formatting.",[93,147,149],{"id":148},"robust-error-handling","Robust Error Handling",[31,151,152,155,158],{},[34,153,154],{},"Parameter validation against official supported values",[34,156,157],{},"Graceful handling of network issues",[34,159,160],{},"Proper rate limit management",[20,162,164],{"id":163},"getting-started","Getting Started",[11,166,167],{},"Setting up the AllNewsAPI MCP server takes just a few minutes.",[93,169,171],{"id":170},"prerequisites","Prerequisites",[31,173,174,177,186],{},[34,175,176],{},"Node.js 18 or newer",[34,178,179,180,185],{},"An AllNewsAPI key (",[181,182,184],"a",{"href":183},"\u002Fsignup","get one free at allnewsapi.com",")",[34,187,188],{},"An MCP-compatible client (Claude Desktop, Cursor, VS Code, Windsurf, etc.)",[93,190,192],{"id":191},"installation","Installation",[11,194,195],{},"Add this configuration to your MCP client settings:",[197,198,203],"pre",{"className":199,"code":200,"language":201,"meta":202,"style":202},"language-json shiki shiki-themes github-light github-dark","{\n  \"mcpServers\": {\n    \"allnewsapi\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"allnewsapi-mcp@latest\",\n        \"--apikey\",\n        \"YOUR_API_KEY_HERE\"\n      ]\n    }\n  }\n}\n","json","",[204,205,206,215,225,233,249,258,266,274,280,286,292,298],"code",{"__ignoreMap":202},[207,208,211],"span",{"class":209,"line":210},"line",1,[207,212,214],{"class":213},"sVt8B","{\n",[207,216,218,222],{"class":209,"line":217},2,[207,219,221],{"class":220},"sj4cs","  \"mcpServers\"",[207,223,224],{"class":213},": {\n",[207,226,228,231],{"class":209,"line":227},3,[207,229,230],{"class":220},"    \"allnewsapi\"",[207,232,224],{"class":213},[207,234,236,239,242,246],{"class":209,"line":235},4,[207,237,238],{"class":220},"      \"command\"",[207,240,241],{"class":213},": ",[207,243,245],{"class":244},"sZZnC","\"npx\"",[207,247,248],{"class":213},",\n",[207,250,252,255],{"class":209,"line":251},5,[207,253,254],{"class":220},"      \"args\"",[207,256,257],{"class":213},": [\n",[207,259,261,264],{"class":209,"line":260},6,[207,262,263],{"class":244},"        \"allnewsapi-mcp@latest\"",[207,265,248],{"class":213},[207,267,269,272],{"class":209,"line":268},7,[207,270,271],{"class":244},"        \"--apikey\"",[207,273,248],{"class":213},[207,275,277],{"class":209,"line":276},8,[207,278,279],{"class":244},"        \"YOUR_API_KEY_HERE\"\n",[207,281,283],{"class":209,"line":282},9,[207,284,285],{"class":213},"      ]\n",[207,287,289],{"class":209,"line":288},10,[207,290,291],{"class":213},"    }\n",[207,293,295],{"class":209,"line":294},11,[207,296,297],{"class":213},"  }\n",[207,299,301],{"class":209,"line":300},12,[207,302,303],{"class":213},"}\n",[11,305,306],{},"That's it! No installation, no build steps – just add the config and start using it.",[93,308,310],{"id":309},"configuration-locations","Configuration Locations",[11,312,313],{},[15,314,315],{},"Claude Desktop:",[31,317,318,324],{},[34,319,320,321],{},"macOS: ",[204,322,323],{},"~\u002FLibrary\u002FApplication Support\u002FClaude\u002Fclaude_desktop_config.json",[34,325,326,327],{},"Windows: ",[204,328,329],{},"%APPDATA%\\Claude\\claude_desktop_config.json",[11,331,332],{},[15,333,334],{},"Cursor:",[31,336,337],{},[34,338,339],{},"Settings → MCP Servers → Add Server",[11,341,342],{},[15,343,344],{},"VS Code:",[31,346,347],{},[34,348,349,352],{},[204,350,351],{},".vscode\u002Fmcp.json"," in your workspace",[11,354,355],{},[15,356,357],{},"Windsurf:",[31,359,360],{},[34,361,362],{},"Settings → Extensions → MCP Configuration",[20,364,366],{"id":365},"example-usage","Example Usage",[11,368,369],{},"Once configured, you can ask your AI assistant natural language questions like:",[11,371,372],{},[15,373,374],{},"Technology News:",[197,376,381],{"className":377,"code":379,"language":380},[378],"language-text","\"Get me the latest technology news from the US\"\n","text",[204,382,379],{"__ignoreMap":202},[11,384,385],{},[15,386,387],{},"Climate Coverage:",[197,389,392],{"className":390,"code":391,"language":380},[378],"\"Find news articles about climate change from European sources\"\n",[204,393,391],{"__ignoreMap":202},[11,395,396],{},[15,397,398],{},"Business Headlines:",[197,400,403],{"className":401,"code":402,"language":380},[378],"\"Show me top business headlines from the past week\"\n",[204,404,402],{"__ignoreMap":202},[11,406,407],{},[15,408,409],{},"Cryptocurrency Updates:",[197,411,414],{"className":412,"code":413,"language":380},[378],"\"Search for cryptocurrency news in English from the last month\"\n",[204,415,413],{"__ignoreMap":202},[11,417,418],{},[15,419,420],{},"Sports from Multiple Countries:",[197,422,425],{"className":423,"code":424,"language":380},[378],"\"Get sports headlines from Canada and Australia\"\n",[204,426,424],{"__ignoreMap":202},[11,428,429],{},"The AI assistant will use the MCP server to fetch relevant articles and provide you with formatted, up-to-date information.",[20,431,433],{"id":432},"real-world-use-cases","Real-World Use Cases",[93,435,437],{"id":436},"_1-content-research","1. Content Research",[11,439,440],{},[15,441,442],{},"Before:",[197,444,447],{"className":445,"code":446,"language":380},[378],"You: \"I need to write an article about AI regulation\"\nAI: \"Based on my training data from 2023...\"\n",[204,448,446],{"__ignoreMap":202},[11,450,451],{},[15,452,453],{},"After:",[197,455,458],{"className":456,"code":457,"language":380},[378],"You: \"Find recent news about AI regulation in the EU\"\nAI: *Uses MCP to fetch latest articles*\n\"Here are the most recent developments in EU AI regulation:\n1. New AI Act provisions announced last week...\n2. Tech companies respond to compliance requirements...\n[with actual current data]\"\n",[204,459,457],{"__ignoreMap":202},[93,461,463],{"id":462},"_2-market-intelligence","2. Market Intelligence",[11,465,466],{},"Track competitor news, industry trends, and market movements in real-time:",[197,468,471],{"className":469,"code":470,"language":380},[378],"\"Monitor news about electric vehicle manufacturers in the past 24 hours\"\n",[204,472,470],{"__ignoreMap":202},[93,474,476],{"id":475},"_3-development-assistance","3. Development Assistance",[11,478,479],{},"Build news-powered features with AI help:",[197,481,484],{"className":482,"code":483,"language":380},[378],"\"Help me write a function that fetches technology news \nfrom Asian countries and filters by sentiment\"\n",[204,485,483],{"__ignoreMap":202},[11,487,488],{},"The AI can now access real data to provide working code examples.",[93,490,492],{"id":491},"_4-research-and-analysis","4. Research and Analysis",[11,494,495],{},"Analyze news patterns and trends:",[197,497,500],{"className":498,"code":499,"language":380},[378],"\"Compare coverage of renewable energy across US, \nEuropean, and Asian news sources this month\"\n",[204,501,499],{"__ignoreMap":202},[20,503,505],{"id":504},"technical-details","Technical Details",[11,507,508],{},"The AllNewsAPI MCP server is built with:",[31,510,511,517,523,529],{},[34,512,513,516],{},[15,514,515],{},"TypeScript"," - Type-safe implementation",[34,518,519,522],{},[15,520,521],{},"Model Context Protocol SDK"," - Official MCP implementation",[34,524,525,528],{},[15,526,527],{},"ES Modules"," - Modern JavaScript with top-level await",[34,530,531,534],{},[15,532,533],{},"Comprehensive validation"," - All parameters validated against official API specs",[93,536,538],{"id":537},"available-tools","Available Tools",[11,540,541],{},"The server exposes two main tools:",[11,543,544],{},[15,545,546],{},"1. search_news",[31,548,549,552,555],{},[34,550,551],{},"Search for news articles with advanced filtering",[34,553,554],{},"Parameters: query, language, country, category, date ranges, and more",[34,556,557],{},"Returns: Formatted list of articles with titles, descriptions, URLs, and metadata",[11,559,560],{},[15,561,562],{},"2. get_headlines",[31,564,565,568,571],{},[34,566,567],{},"Get top headlines from specific countries or categories",[34,569,570],{},"Parameters: country, category, language",[34,572,573],{},"Returns: Latest breaking news and top stories",[93,575,577],{"id":576},"supported-parameters","Supported Parameters",[11,579,580,583],{},[15,581,582],{},"Languages:"," Arabic, Chinese, Dutch, English, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish, Ukrainian, Vietnamese (22 languages total)",[11,585,586,589],{},[15,587,588],{},"Categories:"," General, Technology, Business, Sports, Entertainment, Health, Science",[11,591,592,595],{},[15,593,594],{},"Countries:"," 244 countries including US, UK, Canada, Australia, Germany, France, Japan, India, Brazil, and more",[11,597,598,601],{},[15,599,600],{},"Regions:"," North America, Europe, Asia, Middle East, Africa, Latin America, Oceania",[20,603,605],{"id":604},"security-and-privacy","Security and Privacy",[31,607,608,614,620,626],{},[34,609,610,613],{},[15,611,612],{},"API keys are never exposed"," - Keys are configured locally and never sent to third parties",[34,615,616,619],{},[15,617,618],{},"Direct API communication"," - The MCP server communicates directly with AllNewsAPI",[34,621,622,625],{},[15,623,624],{},"No data storage"," - No caching or storage of your queries or results",[34,627,628,631],{},[15,629,630],{},"Rate limit compliance"," - Respects your API plan limits",[20,633,635],{"id":634},"pricing","Pricing",[11,637,638,639,642],{},"The MCP server itself is ",[15,640,641],{},"completely free and open source",". You only pay for your AllNewsAPI usage:",[31,644,645,651,657,663,669,675],{},[34,646,647,650],{},[15,648,649],{},"Free Plan"," - 20 requests\u002Fday (perfect for testing)",[34,652,653,656],{},[15,654,655],{},"Starter Plan"," - 5,000 requests\u002Fday at $20\u002Fmonth",[34,658,659,662],{},[15,660,661],{},"Pro Plan"," - 25,000 requests\u002Fday at $80\u002Fmonth",[34,664,665,668],{},[15,666,667],{},"Business Plan"," - 50,000 requests\u002Fday at $200\u002Fmonth",[34,670,671,674],{},[15,672,673],{},"Enterprise Plan"," - 200,000 requests\u002Fday at $500\u002Fmonth",[34,676,677,680],{},[15,678,679],{},"Custom Plans"," - For projects with custom requirements",[11,682,683],{},[181,684,686],{"href":685},"\u002Fpricing","View full pricing details",[20,688,690],{"id":689},"get-started-today","Get Started Today",[692,693,694,703,709],"ol",{},[34,695,696,699,700],{},[15,697,698],{},"Get your API key"," - ",[181,701,702],{"href":183},"Sign up for free",[34,704,705,708],{},[15,706,707],{},"Install the MCP server"," - Add the config to your AI assistant",[34,710,711,714],{},[15,712,713],{},"Start querying"," - Ask for news in natural language",[20,716,718],{"id":717},"resources","Resources",[31,720,721,733,742,752],{},[34,722,723,726,727],{},[15,724,725],{},"GitHub Repository:"," ",[181,728,732],{"href":729,"rel":730},"https:\u002F\u002Fgithub.com\u002FAllNewsAPI\u002Fmcp-server",[731],"nofollow","github.com\u002FAllNewsAPI\u002Fmcp-server",[34,734,735,726,738],{},[15,736,737],{},"API Documentation:",[181,739,741],{"href":740},"\u002Fdocs","allnewsapi.com\u002Fdocs",[34,743,744,726,747],{},[15,745,746],{},"MCP Protocol:",[181,748,751],{"href":749,"rel":750},"https:\u002F\u002Fmodelcontextprotocol.io",[731],"modelcontextprotocol.io",[34,753,754,757,758],{},[15,755,756],{},"Support:"," Contact us at ",[181,759,761],{"href":760},"mailto:support@allnewsapi.com","support@allnewsapi.com",[20,763,765],{"id":764},"example-building-a-news-briefing-bot","Example: Building a News Briefing Bot",[11,767,768],{},"Here's a quick example of what you can build with the MCP server:",[197,770,773],{"className":771,"code":772,"language":380},[378],"You: \"Create a morning briefing with top headlines from \ntechnology, business, and world news\"\n\nAI: *Uses MCP to fetch from multiple categories*\n\n\"Good morning! Here's your briefing for December 8, 2024:\n\n📱 TECHNOLOGY\n- Major AI breakthrough announced by research team\n- New smartphone features revealed at tech conference\n- Cybersecurity alert issued for popular software\n\n💼 BUSINESS  \n- Stock markets react to economic data\n- Tech giant announces quarterly earnings\n- Merger talks confirmed between industry leaders\n\n🌍 WORLD NEWS\n- International summit concludes with new agreements\n- Climate initiative gains momentum\n- Breaking: Major development in ongoing situation\n\nWould you like more details on any of these stories?\"\n",[204,774,772],{"__ignoreMap":202},[20,776,778],{"id":777},"conclusion","Conclusion",[11,780,781],{},"The AllNewsAPI MCP Server bridges the gap between AI assistants and real-time news data. Whether you're a developer building news-powered applications, a researcher analyzing current events, or a content creator staying informed, the MCP server makes accessing news data as simple as asking a question.",[11,783,784],{},[15,785,786],{},"Get started today:",[692,788,789,794,800],{},[34,790,791],{},[181,792,793],{"href":183},"Sign up for AllNewsAPI",[34,795,796,797],{},"Install the MCP server with ",[204,798,799],{},"npx allnewsapi-mcp@latest",[34,801,802],{},"Start asking your AI assistant about current events",[11,804,805],{},"We can't wait to see what you build!",[807,808],"hr",{},[11,810,811],{},[812,813,814,815,817,818,822],"em",{},"Have questions or feedback? Reach out to us at ",[181,816,761],{"href":760}," or open an issue on ",[181,819,821],{"href":729,"rel":820},[731],"GitHub",".",[824,825,826],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":202,"searchDepth":217,"depth":217,"links":828},[829,830,831,837,842,843,849,853,854,855,856,857,858],{"id":22,"depth":217,"text":23},{"id":48,"depth":217,"text":49},{"id":90,"depth":217,"text":91,"children":832},[833,834,835,836],{"id":95,"depth":227,"text":96},{"id":134,"depth":227,"text":135},{"id":141,"depth":227,"text":142},{"id":148,"depth":227,"text":149},{"id":163,"depth":217,"text":164,"children":838},[839,840,841],{"id":170,"depth":227,"text":171},{"id":191,"depth":227,"text":192},{"id":309,"depth":227,"text":310},{"id":365,"depth":217,"text":366},{"id":432,"depth":217,"text":433,"children":844},[845,846,847,848],{"id":436,"depth":227,"text":437},{"id":462,"depth":227,"text":463},{"id":475,"depth":227,"text":476},{"id":491,"depth":227,"text":492},{"id":504,"depth":217,"text":505,"children":850},[851,852],{"id":537,"depth":227,"text":538},{"id":576,"depth":227,"text":577},{"id":604,"depth":217,"text":605},{"id":634,"depth":217,"text":635},{"id":689,"depth":217,"text":690},{"id":717,"depth":217,"text":718},{"id":764,"depth":217,"text":765},{"id":777,"depth":217,"text":778},"2025-12-08","Connect your AI assistant to real-time news data with our new Model Context Protocol server",false,"md","\u002Fblog\u002Fintroducing-allnewsapi-mcp-server.webp",{},true,"\u002Fblog\u002Fintroducing-allnewsapi-mcp-server",{"title":5,"description":860},{"loc":866},"blog\u002Fintroducing-allnewsapi-mcp-server","announcement","ACfNs01Ysur9emrMjQ3WbhbFOnYprQ4dHvqjXc4Nx1M",1783882207699]