Skip to content
LangChain

Time for LangChain

io.github.modelcontextprotocol/time

Reference server for current time and time-zone conversion, so a model can answer 'what time is it in Tokyo' without guessing.

client:LangChain transport:stdio runtime:pypi tools:2

Install Time in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient({
        "time": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["mcp-server-time"],
        }
})

tools = await client.get_tools()

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

What LangChain can do once it is connected

Time in other clients