Nytimes 記事検索 Mcp サーバー
概要
NYTとは?
NYT(ニューヨーク・タイムズ)リポジトリは、ユーザーangheljfによってGitHub上でホストされている公共プロジェクトです。これは、開発者や愛好者がニューヨーク・タイムズに関連するプロジェクト(データ分析、ウェブスクレイピング、新聞の記事や特集に関連するコンテンツ管理など)で協力するためのプラットフォームとして機能します。
NYTの特徴
- 公開アクセス:リポジトリは公開されており、誰でもプロジェクトを閲覧、貢献、フォークすることができます。
- コラボレーション:ユーザーは、コーディング、ドキュメント作成、テストなど、プロジェクトのさまざまな側面で協力できます。
- オープンソース:プロジェクトはMITライセンスの下でライセンスされており、オープンソースの開発と共有を促進しています。
- コミュニティの参加:ユーザーはリポジトリにスターを付けて感謝の意を示し、更新をフォローしたり、自分のバージョンを作成するためにフォークすることができます。
NYTに参加する方法
- リポジトリを訪れる:プロジェクトを探るためにNYT GitHubページにアクセスします。
- リポジトリにスターを付ける:プロジェクトが興味深い場合は、スターを付けて更新を受け取り、サポートを示します。
- プロジェクトをフォークする:変更を試したり、新しい機能を開発するために、自分のコピーを作成します。
- 貢献する:提案や改善があれば、変更を含むプルリクエストを提出することを検討してください。
- コミュニティと交流する:ディスカッションに参加したり、問題を報告したり、質問をして他の貢献者とつながります。
よくある質問
NYTリポジトリで何ができますか?
NYTリポジトリは、データ分析、ウェブスクレイピング、またはニューヨーク・タイムズのデータを利用したアプリケーションの構築など、さまざまな目的で使用できます。
貢献するために開発者である必要がありますか?
プログラミングスキルは有益ですが、誰でもフィードバックを提供したり、問題を報告したり、機能を提案することで貢献できます。
特定のコーディングスタイルに従うべきですか?
はい、リポジトリのドキュメントに提供されているコーディングスタイルガイドラインに従うことが推奨されており、一貫性を保つために重要です。
問題を報告するにはどうすればよいですか?
リポジトリページの「Issues」タブに移動し、詳細な説明を含む新しい問題を提出することで報告できます。
商業目的でNYTデータを使用できますか?
使用しているデータのライセンス条項と条件を確認する必要があります。一部のデータには商業利用に制限がある場合があります。
詳細
NYTimes Article Search MCP Server
This is a TypeScript-based MCP server that allows searching for New York Times articles from the last 30 days based on a keyword. It demonstrates core MCP concepts by providing:
- Tools for searching articles
- Integration with the New York Times API
<a href="https://glama.ai/mcp/servers/ylg4ai4vin"><img width="380" height="200" src="https://glama.ai/mcp/servers/ylg4ai4vin/badge" alt="NYTimes Article Search Server MCP server" /></a>
Features
Tools
search_articles
- Search NYTimes articles from the last 30 days based on a keyword- Takes
keyword
as a required parameter - Returns a list of articles with title, abstract, URL, published date, and author
- Takes
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Installation
Installing via Smithery
To install NYTimes Article Search for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install nyt --client claude
Manual Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On 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"
}
}
}
}
Environment Variables
Create a .env
file in the root of your project and add your New York Times API key:
NYTIMES_API_KEY=your_api_key_here
Running the Server
After building the project, you can run the server with:
node build/index.js
The server will start and listen for MCP requests over stdio.
License
This project is licensed under the MIT License.
サーバー設定
{
"mcpServers": {
"nyt": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--angheljf--nyt--nyt",
"node ./build/index.js"
],
"env": {
"NYTIMES_API_KEY": "nytimes-api-key"
}
}
}
}
プロジェクト情報
Nytimes 記事検索 Mcp サーバ... 代替案
以下の代替サービスとしてNytimes 記事検索 Mcp サーバ...が必要な場合、カテゴリ別にご案内しています。
コードベースを分析し、依存関係に基づいて重要なファイルを特定します。ファイルごとの図や重要度スコアを生成し、AIアシスタントがコードベースを理解するのを助けます。Python、C、C++、Rust、Zig、Luaなどの人気プログラミング言語を自動的に解析します。