Back to MCP Catalog

NYTimes Article Search MCP Server

SearchTypeScript
Search New York Times articles from the last 30 days based on keywords
Available Tools

search_articles

Search NYTimes articles from the last 30 days based on a keyword

keyword

NYTimes Article Search is a TypeScript-based server that provides access to recent New York Times articles through a simple keyword search interface. It integrates with the New York Times API to retrieve articles published within the last 30 days, delivering comprehensive article information including titles, abstracts, URLs, publication dates, and authors. This tool is perfect for researchers, journalists, or anyone who needs to quickly find and reference recent news articles from a trusted source. The server demonstrates core MCP concepts while providing practical functionality for content discovery and research.

Overview

NYTimes Article Search allows you to search for New York Times articles from the last 30 days using keywords. This server integrates with the New York Times API to provide access to recent news content.

Prerequisites

Before using this server, you'll need:

  1. A New York Times API key (obtain one from NYTimes Developer Portal)
  2. Node.js installed on your system

Installation

Option 1: Install via Smithery (Recommended for Claude Desktop)

If you're using Claude Desktop, you can install NYTimes Article Search automatically using Smithery:

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

Option 2: Manual Installation

  1. Clone the repository:
git clone https://github.com/angheljf/nyt.git
cd nyt
  1. Install dependencies:
npm install
  1. Build the server:
npm run build
  1. Configure your environment variables by creating a .env file in the project root:
NYTIMES_API_KEY=your_api_key_here
  1. Add the server configuration to your Claude Desktop config file:

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

Usage

Once installed, you can use the NYTimes Article Search server in your conversations with Claude. Simply ask Claude to search for articles on a specific topic, and it will use the search_articles tool to retrieve relevant articles from the New York Times.

Example prompts:

  • "Find recent New York Times articles about climate change"
  • "Search for NYT articles on artificial intelligence"
  • "What has the New York Times published about the economy in the last month?"

Development and Debugging

For development with auto-rebuild:

npm run watch

Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for easier debugging:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Related MCPs

SearXNG
SearchTypeScript

Web search capabilities through SearXNG API integration

Hacker News
SearchPython

Access and search Hacker News content programmatically

Web Search
SearchJavaScript

Free Google search integration with no API keys required

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.