✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

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:

  1. Clone the repository.
  2. Install dependencies using npm install.
  3. Build the TypeScript code using npm run build.
  4. Run the server using npx ts-node src/server.ts or node dist/server.js.

How do I run the MCP Time Server with Docker?

To run the MCP Time Server with Docker, you need to:

  1. Build the Docker image using docker build -t mcp-time-srv ..
  2. 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:

  1. Ensure the server is running (either locally or in Docker).
  2. 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)

Featured Templates

View More
Customer service
Multi-language AI Translator
136 920
Customer service
Service ERP
126 1188
Verified Icon
AI Assistants
Speech to Text
137 1881
AI Engineering
Python Bug Fixer
119 1433

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.