Skip to content
LangChain

mcp time for LangChain

io.github.infoinlet-marketplace/mcp-time

Time & date for AI agents — timezones, conversion, date math, diffs, cron, business days.

client:LangChain transport:stdio runtime:npm

Install mcp time in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "mcp-time": {
            "transport": "stdio",
            "command": "npx",
            "args": ["-y", "@infoinlet/mcp-time"],
        }
})

tools = await client.get_tools()

get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs

mcp time in other clients