Search NYTimes articles from the last 30 days based on a 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.
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.
Before using this server, you'll need:
If you're using Claude Desktop, you can install NYTimes Article Search automatically using Smithery:
npx -y @smithery/cli install nyt --client claude
git clone https://github.com/angheljf/nyt.git
cd nyt
npm install
npm run build
.env
file in the project root:NYTIMES_API_KEY=your_api_key_here
Add the server configuration to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json
%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"
}
}
}
}
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:
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.