How to Use the World Time (Keyless) MCP in LangChain
Build multi-step reasoning chains with LangChain using real-time world time data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect World Time (Keyless) MCP to LangChain
Create your Vinkius account to connect World Time (Keyless) 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.
LangChain: Real-Time Time Input for Agents
Need to know the current time before deciding on a workflow? The `get_current_time` tool lets your AI client check the exact atomic time and UTC offset for any timezone, like 'America/Sao_Paulo'. This output becomes the immediate input for the next step in your chain. You can use this data to build complex decision trees. For example, an agent first checks if a target zone is currently observing DST using `get_current_time`, and only then proceeds to send out alerts or schedule tasks.
MCP Server: Checking Time Zones for LangChain
Don't hardcode time zones. The `list_available_timezones` tool gives your agent a list of every supported region (like 'Europe/London'). Your multi-step pipeline can iterate through this list, checking the status of dozens of locations automatically. This makes building global coordination logic straightforward. Instead of writing complex timezone libraries, you just point your LangChain chain at the MCP Server and let it handle the complexity.
LangChain: Inferring Time from IP Addresses
Sometimes a user only gives an IP address. The `get_current_time` tool can infer the correct timezone directly from that network data, saving you manual parsing steps. Your agent doesn't need extra context; it just needs the IP. This keeps your chains fast and resilient. You pass the IP to the tool, get the accurate time back, and continue processing without failure or messy fallback logic.
Set up World Time (Keyless) MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes World Time (Keyless) tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"world-time-keyless-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 World Time (Keyless) 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 World Time API. 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 World Time (Keyless) MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the World Time (Keyless) MCP today
We host it, we monitor it, we maintain it. You just paste one token.