NYT MCP Server
by aovabo
The NYT MCP Server provides a unified interface to the New York Times APIs. It simplifies interaction with multiple NYT APIs through a single endpoint.
Last updated: N/A
What is NYT MCP Server?
The NYT MCP Server is a Message Concentrator Protocol server that acts as a unified gateway to various New York Times APIs, including Article Search, Top Stories, Times Wire, Most Popular, Archive, and Books API. It provides a single endpoint for accessing these APIs.
How to use NYT MCP Server?
To use the server, clone the repository, set up a virtual environment, install dependencies, configure the .env file with your NYT API key, and run the server. Send POST requests to the /mcp/message endpoint with the desired message type and content. Refer to the API Documentation for available endpoints and message types.
Key features of NYT MCP Server
Single Endpoint
Clean Responses
Real-time Updates
Flexible Search
Error Handling
Health Monitoring
Easy Integration
Use cases of NYT MCP Server
Aggregating news data from multiple NYT APIs
Building a custom news application
Integrating NYT news into existing applications
Creating a simplified interface for accessing NYT data
FAQ from NYT MCP Server
What is the base URL for the API?
What is the base URL for the API?
The base URL is http://localhost:8000.
What is the main endpoint for all NYT API interactions?
What is the main endpoint for all NYT API interactions?
The main endpoint is POST /mcp/message.
How do I get an NYT API key?
How do I get an NYT API key?
You can get an NYT API key at the NYT Developer Portal: https://developer.nytimes.com/
What message types are supported?
What message types are supported?
The server supports Article Search, Top Stories, Times Wire, Most Popular, Archive, and Books API message types.
How do I run the server?
How do I run the server?
After setting up the environment and installing dependencies, run the server using the command: python src/server.py