Nytimes 文章搜索 Mcp 服务器

创建者angheljfangheljf

现在

概览

什么是 NYT?

NYT(纽约时报)库是一个由用户 angheljf 在 GitHub 上托管的公共项目。它为开发者和爱好者提供了一个平台,以便在与纽约时报相关的项目上进行合作,可能包括数据分析、网页抓取或与报纸文章和特征相关的内容管理。

NYT 的特点

  • 公共访问:该库是公开可访问的,允许任何人查看、贡献和分叉该项目。
  • 协作:用户可以在项目的各个方面进行协作,包括编码、文档和测试。
  • 开源:该项目根据 MIT 许可证进行许可,促进开源开发和共享。
  • 社区参与:用户可以为该库加星以表示赞赏并关注更新,也可以分叉它以创建自己的版本。

如何参与 NYT

  1. 访问库:前往 NYT GitHub 页面 探索该项目。
  2. 为库加星:如果你觉得这个项目有趣,可以为它加星以接收更新并表示支持。
  3. 分叉项目:创建你自己的库副本,以实验更改或开发新功能。
  4. 贡献:如果你有建议或改进,可以考虑提交一个包含你更改的拉取请求。
  5. 与社区互动:加入讨论、报告问题或提问,以便与其他贡献者联系。

常见问题解答

我可以用 NYT 库做什么?

你可以将 NYT 库用于各种目的,包括数据分析、网页抓取或构建利用纽约时报数据的应用程序。

我需要是开发者才能贡献吗?

虽然编程技能是有益的,但任何人都可以通过提供反馈、报告问题或建议功能来贡献。

我应该遵循特定的编码风格吗?

是的,建议遵循库文档中提供的编码风格指南,以保持一致性。

我如何报告问题?

你可以通过导航到库页面上的“问题”标签,提交一个详细描述的新问题来报告问题。

我可以将 NYT 数据用于商业目的吗?

你应该检查所使用数据的许可条款和条件,因为某些数据可能对商业使用有限制。

详情

NYTimes Article Search MCP Server

smithery badge

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

NYTimes Article Search

<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

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.

Server配置

{
  "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"
      }
    }
  }
}

项目信息

作者
angheljf
创建时间
Jul 18, 2025
收藏数
12
语言
JavaScript
标签
-

Nytimes 文章搜索 Mcp 服务器 替代方案

如果你需要 Nytimes 文章搜索 Mcp 服务器 的一些替代方案,我们为你提供了按类别划分的网站。

MCP服务器使Claude能够使用OpenAI的GPT助手

MCP 服务器用于来自 DeepNLP 的 AI 代理市场索引

分析您的代码库,根据依赖关系识别重要文件。生成每个文件的图表和重要性评分,帮助 AI 助手理解代码库。自动解析流行的编程语言,如 Python、C、C++、Rust、Zig、Lua。

Kagi API的模型上下文协议服务器实现

MCP 服务器用于 Todoist 集成,支持与 Claude 的自然语言任务管理。

查看更多 >>