MCP.so
Sign In

📰 News AI MCP Server

@Mohammadshahzaib007

About 📰 News AI MCP Server

No overview available yet

Basic information

Category

Other

Runtime

python

Transports

stdio

Publisher

Mohammadshahzaib007

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "news-ai-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "mcp",
        "install",
        "main.py"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is 📰 News AI MCP Server?

A minimal Python-based MCP server that connects to NewsAPI.org to fetch and summarize the latest top headlines by country, category, and search query. It is built with the Python MCP SDK and uses uv for environment management.

How to use 📰 News AI MCP Server?

Clone the repo, install dependencies with uv, create a .env file with API_KEY from NewsAPI.org, then run uv run mcp install main.py. The server can be tested from any MCP client.

Key features of 📰 News AI MCP Server

  • Fetch top headlines by country code, category, or search query
  • Summarizes news with title, description, author, and source
  • Includes a test greeting resource for verifying server communication
  • Easily integratable into MCP clients
  • Uses dotenv for managing the API key securely

Use cases of 📰 News AI MCP Server

  • Monitor technology news in the US using category and country filters
  • Get daily headlines for a specific country like India
  • Search for breaking stories on any keyword
  • Build a custom news feed inside an MCP‑compatible assistant

FAQ from 📰 News AI MCP Server

What data source does the server use?

It connects to NewsAPI.org, which provides access to news headlines and articles.

How do I set up the API key?

Create a .env file in the project root and add API_KEY=your_newsapi_org_api_key. The server reads it using python-dotenv.

What runtime or dependencies are required?

The server requires Python and the uv package manager. All other dependencies (MCP SDK, dotenv, etc.) are installed automatically via uv.

How was the server tested?

It was tested using a cloud desktop client connected via the MCP protocol.

Does the server require any authentication beyond the API key?

No. The only authentication needed is the NewsAPI.org API key stored in the .env file.

Comments

More Other MCP servers