4,500+ servers built on MCP Fusion
Vinkius
New York Times logo
Vinkius
LangChain logo

How to Use the New York Times MCP in LangChain

Build LangChain agents that pull real-time New York Times data directly into your reasoning chains using this MCP Server.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

New York Times MCP on Cursor AI Code Editor MCP Client New York Times MCP on Claude Desktop App MCP Integration New York Times MCP on OpenAI Agents SDK MCP Compatible New York Times MCP on Visual Studio Code MCP Extension Client New York Times MCP on GitHub Copilot AI Agent MCP Integration New York Times MCP on Google Gemini AI MCP Integration New York Times MCP on Lovable AI Development MCP Client New York Times MCP on Mistral AI Agents MCP Compatible New York Times MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
LangChain

Connect New York Times MCP to LangChain

Create your Vinkius account to connect New York Times to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Chain live New York Times feeds into LangChain

The `get_top_stories` tool connects your LangChain agent to the current editorial feed of the New York Times. We feed these structured news headlines straight into your LangChain steps via our MCP Server, letting your agent decide which news section to pull next. This setup avoids stale context because the LangChain adapter pipes the live New York Times JSON output directly into your prompt templates. You can monitor the token cost of fetching these New York Times feeds inside LangSmith, keeping your LangChain LLM runs lean.

Run deep New York Times archive searches in LangChain

The `search_articles` tool allows your LangChain agent to run deep historical queries over decades of New York Times coverage. By feeding the output of this New York Times search endpoint into a multi-step LangChain agent, you let the model refine its queries based on initial results. This recursive search loop lets the LangChain agent build a timeline of past New York Times events without human intervention. Your LangSmith traces will show the exact queries the LangChain agent used to comb through these historical New York Times news records.

Track New York Times cultural trends with LangChain

The `get_book_lists` tool exposes the official New York Times best-seller rankings directly to your LangChain sequential chains. Your LangChain agent can pull the latest hardcover fiction list from the New York Times and immediately pass those titles to subsequent prompt steps. Combining this New York Times list tool with your custom database integrations lets you track publishing trends inside LangChain. The LangChain framework handles the data flow from the New York Times API response to your local storage without manual parsing.

Setup guide

Set up New York Times MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes New York Times tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

agent.py
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

async with MultiServerMCPClient({
    "new-york-times-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent New York Times transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by New York Times. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about New York Times MCP in LangChain

You install the LangChain MCP adapter and instantiate the client to fetch New York Times tools. Then, pass `get_top_stories` directly to your LangChain agent constructor to begin querying.
Yes, you can configure a ReAct agent in LangChain to analyze the results of `search_articles` and run subsequent New York Times queries. The LangChain agent dynamically adjusts parameters like dates and keywords based on the previous step.
LangSmith traces every LangChain call to `get_most_viewed` and shows you the exact payload returned by the New York Times server. You can inspect latency and token usage to optimize your LangChain prompts.
You can use the multi-server client to bundle `get_sections` and `get_most_shared` into a single toolset for your LangChain agent. This MCP Server lets your LangChain agent call these New York Times endpoints in parallel or sequence.
Your New York Times search keywords and book list requests flow through an ephemeral V8 sandbox that retains no logs. Only the direct API queries hit the publisher's servers, keeping your LangChain pipeline's data footprints completely isolated.

Start using the New York Times MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 9 tools

We've already built the connector for New York Times. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 9 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.