NYTimes Article Search MCP Server
- Search
This is a TypeScript-based MCP server that allows searching for New York Times articles from the last 30 days based on a keyword.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
search_articles | Search NYTimes articles from the last 30 days based on a keyword |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
NYTIMES_API_KEY | Yes | Your New York Times API key |
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:
Build the server:
For development with auto-rebuild:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
The Inspector will provide a URL to access debugging tools in your browser.
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
Environment Variables
Create a .env
file in the root of your project and add your New York Times API key:
Running the Server
After building the project, you can run the server with:
The server will start and listen for MCP requests over stdio.
License
This project is licensed under the MIT License.
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: