NYTimes Article Search MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Enables configuration through environment variables stored in a .env file, specifically for storing and accessing the New York Times API key.

  • Provides tools for searching New York Times articles from the last 30 days based on keywords, returning article details including title, abstract, URL, published date, and author.

NYTimes記事検索MCPサーバー

これはTypeScriptベースのMCPサーバーで、キーワードに基づいて過去30日間のニューヨーク・タイムズの記事を検索できます。以下の機能を提供することで、MCPのコアコンセプトを実証しています。

  • 記事検索ツール
  • ニューヨークタイムズAPIとの統合

特徴

ツール

  • search_articles - キーワードに基づいて過去30日間のNYTimesの記事を検索します
    • keyword必須パラメータとして受け取ります
    • タイトル、概要、URL、公開日、著者を含む記事のリストを返します。

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop に NYTimes Article Search を自動的にインストールするには:

npx -y @smithery/cli install nyt --client claude

手動インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "nyt": { "command": "node", "args": ["path/to/your/build/index.js"], "env": { "NYTIMES_API_KEY": "your_api_key_here" } } } }

環境変数

プロジェクトのルートに.envファイルを作成し、New York Times API キーを追加します。

NYTIMES_API_KEY=your_api_key_here

サーバーの実行

プロジェクトをビルドした後、次のコマンドでサーバーを実行できます。

node build/index.js

サーバーが起動し、stdio 経由で MCP 要求をリッスンします。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

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

これは、キーワードに基づいて過去 30 日間の New York Times の記事を検索できる TypeScript ベースの MCP サーバーです。

  1. Features
    1. Tools
  2. Development
    1. Debugging
  3. Installation
    1. Installing via Smithery
    2. Manual Installation
  4. Environment Variables
    1. Running the Server
      1. License
        ID: ylg4ai4vin