MCP Time Server
by SzeMeng76
A model context protocol (MCP) based time server that provides timezone-related tools. It can retrieve the current time for a specified timezone and convert times between different timezones.
Last updated: N/A
What is MCP Time Server?
The MCP Time Server is a server based on the Model Context Protocol (MCP) designed to provide timezone-related functionalities, including retrieving the current time in a specific timezone and converting times between different timezones.
How to use MCP Time Server?
The server can be installed globally via npm (npm install -g mcp-time-server
) or used directly with npx (npx -y mcp-time-server
). It can be integrated into an MCP environment by specifying the command to run the server. It can also be used as a command-line tool or as a library within a JavaScript project.
Key features of MCP Time Server
Get current time in a specified timezone
Convert time from one timezone to another
Integration with MCP environments
Command-line interface
Library usage
Use cases of MCP Time Server
Displaying the current time in different timezones for users
Scheduling tasks based on different timezones
Converting event times for users in different locations
Integrating timezone functionality into MCP-based applications
FAQ from MCP Time Server
How do I install the MCP Time Server?
How do I install the MCP Time Server?
You can install it globally using npm: npm install -g mcp-time-server
.
How do I use the server in an MCP environment?
How do I use the server in an MCP environment?
Configure your MCP environment to launch the server using {"type": "stdio", "command": "npx", "args": ["-y", "mcp-time-server"]}
.
What timezones are supported?
What timezones are supported?
The server supports any timezone recognized by the underlying timezone library (likely based on the IANA timezone database).
How do I convert timezones?
How do I convert timezones?
Use the convert_time
function with the source timezone, time (HH:MM), and target timezone as parameters.
What is the default timezone if none is specified?
What is the default timezone if none is specified?
The default timezone is UTC.