What is the MCP Time Server?
The MCP Time Server is a specialized tool that provides accurate and consistent time information to AI Agents. It allows AI models to access and interact with time-related data, regardless of the underlying system’s time zone settings or data format.
What are the key features of the MCP Time Server?
The key features of the MCP Time Server include:
get_current_time: Returns the current time in a specified IANA timezone.convert_time: Converts a given time from a source IANA timezone to a target IANA timezone.- Support for both Streamable HTTP and HTTP+SSE MCP transport protocols.
- Easy setup and deployment with Docker support.
- Comprehensive testing with a simple test client script.
How do I run the MCP Time Server locally?
To run the MCP Time Server locally, you need to:
- Clone the repository.
- Install dependencies using
npm install. - Build the TypeScript code using
npm run build. - Run the server using
npx ts-node src/server.tsornode dist/server.js.
How do I run the MCP Time Server with Docker?
To run the MCP Time Server with Docker, you need to:
- Build the Docker image using
docker build -t mcp-time-srv .. - Run the container using
docker run -d -p 3000:3000 --name my-mcp-server mcp-time-srv.
How do I test the MCP Time Server with the client script?
To test the MCP Time Server with the client script, you need to:
- Ensure the server is running (either locally or in Docker).
- Run the client using
npx ts-node src/client.ts.
What is the get_current_time tool?
The get_current_time tool returns the current time in the specified timezone. It takes an optional timezone argument (IANA timezone name). If omitted, it defaults to the server’s local timezone. The output is a JSON object containing the timezone and datetime.
What is the convert_time tool?
The convert_time tool converts a time from a source timezone to a target timezone. It takes the following arguments:
source_timezone(optional): Source IANA timezone name (defaults to server’s local timezone if omitted).time(required): The time to convert in 24-hour HH:MM format.target_timezone(optional): Target IANA timezone name (defaults to server’s local timezone if omitted).
The output is a JSON object containing details of the time in the source and target timezones, as well as the time difference.
Where can I find the license for the MCP Time Server?
The license for the MCP Time Server can be found in the LICENSE file in the repository.
How does the MCP Server benefit AI Agents?
The MCP Server provides AI agents with accurate and consistent time information, which is crucial for tasks such as scheduling, coordination, and data analysis across different time zones. It enables AI agents to make better decisions and optimize processes.
How does the MCP Server integrate with UBOS?
The MCP Server is available in the UBOS Asset Marketplace and can be easily integrated into UBOS AI Agent workflows. UBOS provides the infrastructure for AI Agents to communicate with the MCP Server using the standardized MCP protocol.
What are the prerequisites for running the MCP Time Server?
The prerequisites for running the MCP Time Server are:
- Node.js (v18 or later recommended)
- npm (usually comes with Node.js)
- Docker (Optional, for running in a container)
Time Server
Project Details
- jharkins/mcp-time-srv
- MIT License
- Last Updated: 4/26/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server enabling AI assistants to interact with Azure DevOps services via Python SDK.
Connecting your Obsidian Vaults that are stored in local to AI via the Model Context Protocol (MCP)
MCP server to perform a scan and produce an SBOM
A collection of tools for your LLMs that run on Modal
MCP server for SecretiveShell/Awesome-llms-txt. Add documentation directly into your conversation via MCP resources.
Anki MCP Server to allow LLMs to create and manage Anki decks via Anki Connect
A Unity MCP server that allows MCP clients like Claude Desktop or Cursor to perform Unity Editor actions.
Node.js Model Context Protocol (MCP) server providing secure, relative filesystem access for AI agents like Cline/Claude.
This is a Model Context Protocol (MCP) server that provides ID generation capabilities to AI assistants.
Model Context Protocol server to run commands





