MCP Now
Goodnews

Goodnews

by VectorInstitute
GitHub

A simple MCP server that delivers curated positive and uplifting news stories.

news
goodnews
positive
good
article

MCP Goodnews


CodeQL Linting Unit Testing and Upload Coverage codecov Release GitHub License

MCP Goodnews Logo

MCP Goodnews is a simple Model Context Protocol (MCP) application that features a server for getting good, positive, and uplifting news. This tool fetches news articles from the NewsAPI and uses a Cohere LLM to rank and return the top news articles based on positive sentiment.

Read the blog post on Medium!

Motivation

In a world where negative news often dominates headlines, Goodnews MCP aims to shine a light on more positive and uplifting news stories. This project was inspired by an earlier initiative called GoodnewsFirst, which delivered positive news daily to email subscribers — it was a really awesome project! While GoodnewsFirst predated recent breakthroughs in Large Language Models (LLMs) and relied on traditional methods for sentiment ranking, Goodnews MCP leverages modern LLMs to perform sentiment analysis in a zero-shot setting.

Example Usage: MCP Goodnews with Claude Desktop

image

Requirements

Clone mcp-goodnews

1# Clone the repository 2git clone https://github.com/VectorInstitute/mcp-goodnews.git

In the next step, we'll need to provide the absolute path to the location of this cloned repository.

Update Claude Desktop Config to find mcp-goodnews

For Mac/Linux

1# Navigate to the configuration directory 2cd ~/Library/Application\ Support/Claude/config 3 4# Edit the claude_desktop_config.json file 5nano claude_desktop_config.json

For Windows

1# Navigate to the configuration directory 2cd %APPDATA%\Claude\config 3 4# Edit the claude_desktop_config.json file 5notepad claude_desktop_config.json

And you'll want to add an entry under mcpServers for Goodnews:

1{ 2 "mcpServers": { 3 "Goodnews": { 4 "command": "<absolute-path-to-bin>/uv", 5 "args": [ 6 "--directory", 7 "<absolute-path-to-cloned-repo>/mcp-goodnews/src/mcp_goodnews", 8 "run", 9 "server.py" 10 ], 11 "env": { 12 "NEWS_API_KEY": "<newsapi-api-key>", 13 "COHERE_API_KEY": "<cohere-api-key>" 14 } 15 } 16 } 17}

Start or Restart Claude Desktop

Claude Desktop will use the updated config to build and run the mcp-goodnews server. If successful, you will see the hammer tool in the bottom-right corner of the chat dialogue window.

image

Clicking the hammer tool icon will bring up a modal that lists available MCP tools. You should see fetch_list_of_goodnews listed there.

image

Ask Claude for Good News

Example prompts:

  • "Show me some good news from today."
  • "What positive things happened in the world this week?"
  • "Give me uplifting news stories about science."

How It Works

  1. When you request good news, the application queries the NewsAPI for recent articles
  2. The Cohere LLM analyzes the sentiment of each article
  3. Articles are ranked based on positive sentiment score
  4. The top-ranking good news stories are returned to you through Claude

License

Apache 2.0


Stay positive with Goodnews MCP!