MCP.so
登录
服务器

News API MCP Server

@kcjonnyc

MCP server for NewsAPI integration - enables AI assistants to search articles, get headlines, and browse news sources

概览

What is News API MCP Server?

A Model Context Protocol (MCP) server that provides access to news content through the NewsAPI.org service. It enables AI assistants to search articles, get top headlines, and browse news sources.

How to use News API MCP Server?

Install dependencies with npm install, obtain a free NewsAPI key (up to 100 requests/day), configure it in a .env file as NEWS_API_KEY=your_key, build with npm run build, and then add the server to your MCP settings (e.g., ~/.cursor/mcp.json) using the command npm run start with proper path.

Key features of News API MCP Server

  • Search through millions of articles from worldwide sources
  • Get breaking news headlines and top stories
  • Discover and filter available news sources
  • Configurable via environment variable and MCP settings
  • Test integration with dedicated test command

Use cases of News API MCP Server

  • AI assistants answering current events questions
  • Automatically fetching latest headlines on specific topics
  • Exploring available news sources by category or language

FAQ from News API MCP Server

What API key is required and what are its limits?

A free API key from NewsAPI.org, limited to 100 requests per day.

How do I configure and start the server?

Set the NEWS_API_KEY environment variable in a .env file, then add the server entry to your MCP settings JSON as described in the README.

What tools does the server expose?

Three tools: searchArticles, getTopHeadlines, and getSources.

What are the system requirements?

Node.js and npm are required to install dependencies and build the project.

How can I test the NewsAPI integration?

Use the npm run test-api command to verify the API connection.

标签

来自「开发工具」的更多内容