MCP Goodnews

by VectorInstitute
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides code coverage reporting for the MCP server repository

  • Hosts the repository with CI/CD workflows for linting, testing, and releasing the server

MCPグッドニュース


MCP Goodnewsは、良いニュース、ポジティブなニュース、そして元気が出るニュースを取得するためのサーバーを備えた、シンプルなモデルコンテキストプロトコル(MCP)アプリケーションです。このツールはNewsAPIからニュース記事を取得し、Cohere LLMを用いてポジティブな感情に基づいて上位のニュース記事をランク付けして返します。

モチベーション

ネガティブなニュースがニュースの見出しを独占することが多い現代において、Goodnews MCPは、よりポジティブで明るいニュースに光を当てることを目指しています。このプロジェクトは、メール購読者に毎日ポジティブなニュースを届けるという、以前からある「GoodnewsFirst」という取り組みから着想を得ており、実に素晴らしいプロジェクトでした。GoodnewsFirstは近年の大規模言語モデル(LLM)のブレイクスルーに先駆け、感情ランキングに従来の手法を用いていましたが、Goodnews MCPは最新のLLMを活用し、ゼロショット設定で感情分析を実行します。

使用例: Claude Desktop を使用した MCP Goodnews

要件

クローンmcp-goodnews

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

次のステップでは、このクローンされたリポジトリの場所への絶対パスを指定する必要があります。

Claude Desktop Config を更新して mcp-goodnews を見つけられるようにする

Mac/Linuxの場合

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

Windowsの場合

# Navigate to the configuration directory cd %APPDATA%\Claude\config # Edit the claude_desktop_config.json file notepad claude_desktop_config.json

そして、 GoodnewsmcpServersの下にエントリを追加します。

{ "mcpServers": { "Goodnews": { "command": "<absolute-path-to-bin>/uv", "args": [ "--directory", "<absolute-path-to-cloned-repo>/mcp-goodnews/src/mcp_goodnews", "run", "server.py" ], "env": { "NEWS_API_KEY": "<newsapi-api-key>", "COHERE_API_KEY": "<cohere-api-key>" } } } }

Claude Desktopを起動または再起動する

Claude Desktop は更新された設定を使用して mcp-goodnews サーバーをビルドおよび実行します。成功すると、チャットダイアログウィンドウの右下隅にハンマーツールが表示されます。

ハンマーツールアイコンをクリックすると、利用可能なMCPツールの一覧を示すモーダルが表示されます。そこにfetch_list_of_goodnewsリストされているはずです。

クロードに良い知らせを聞いてください!

プロンプトの例:

  • 「今日の良いニュースを教えてください。」
  • 「今週、世界ではどんな良いことが起こりましたか?」
  • 「科学に関する元気が出るニュースを教えてください。」

仕組み

  1. 良いニュースをリクエストすると、アプリケーションはNewsAPIに最近の記事を問い合わせます。
  2. Cohere LLMは各記事の感情を分析します
  3. 記事はポジティブな感情スコアに基づいてランク付けされます
  4. 上位にランクインした良いニュース記事はクロードを通じてあなたに返されます

ライセンス

アパッチ 2.0


Goodnews MCP で前向きな気持ちを保ちましょう!

-
security - not tested
A
license - permissive license
-
quality - not tested

Cohere LLM 感情分析を使用して NewsAPI から肯定的なニュース記事を取得してランク付けするモデル コンテキスト プロトコル サーバー。これにより、ユーザーは Claude Desktop などのインターフェースを通じて、前向きなニュース記事にアクセスできるようになります。

  1. Motivation
    1. Example Usage: MCP Goodnews with Claude Desktop
      1. Requirements
      2. Clone mcp-goodnews
      3. Update Claude Desktop Config to find mcp-goodnews
      4. Start or Restart Claude Desktop
      5. Ask Claude for Good News!
    2. How It Works
      1. License
        ID: 1accffffsu