Skip to content
LangChain

time mcp for LangChain

io.github.katomato65/time-mcp

Simple MCP server that tells the time

client:LangChain transport:stdio runtime:npm

Install time mcp in LangChain

pip install langchain-mcp-adapters

from langchain_mcp_adapters.client import MultiServerMCPClient

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

tools = await client.get_tools()

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

time mcp in other clients