mcp-server-time is a Model Context Protocol (MCP) server designed to provide robust tools for time queries and timezone conversions, primarily for integration with Large Language Models (LLMs). It implements the MCP specification, allowing LLMs to accurately retrieve current time information, perform date and time calculations, and handle timezone conversions. The current version is 2026.1.26, following a frequent, calendar-based release cadence.
pip install mcp-server-time uvicorn[standard]Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to instantiate and run the MCP Time server using uvicorn. It creates a FastAPI application provided by the library and binds it to host 0.0.0.0 on port 8000, making it accessible for MCP clients.
Always install with `pip install mcp-server-time uvicorn[standard]`.
Change the port when running `uvicorn.run(app, host='0.0.0.0', port=8001)` or `uvicorn main:app --host 0.0.0.0 --port 8001`.
Ensure your consuming application understands and implements the Model Context Protocol to interact with this server. For direct time utilities in Python, use standard libraries like `datetime` or `zoneinfo`.