Returns the current local time in the system timezone
Time Server is a lightweight MCP server that provides access to current date and time information. It allows AI agents and chat systems to retrieve accurate time data in various timezones, enabling time-aware applications and responses. The server implements a simple datetime URI scheme and exposes tools that make it easy for AI systems to access current time information without requiring complex configurations or dependencies.
Time Server provides AI systems with the ability to access current date and time information. This is particularly useful for applications that need to be time-aware, such as scheduling assistants, reminder systems, or any AI that needs to reference the current time in its responses.
To install the Time Server MCP, you can use the uvx
package manager. Add the following configuration to your MCP client:
{
"mcpServers": {
"MCP-timeserver": {
"command": "uvx",
"args": ["MCP-timeserver"]
}
}
}
This configuration will automatically download and run the Time Server when requested by your AI system.
The server implements a datetime URI scheme that allows you to access the current time in different timezones. You can use the following format:
datetime://TIMEZONE/now
Where TIMEZONE
is a valid timezone identifier. For example:
datetime://Africa/Freetown/now
datetime://Europe/London/now
datetime://America/New_York/now
These URIs can be used within your AI system to request the current time in specific regions.
The server also provides a simple tool that can be called directly to get the current system time:
get_current_time()
This will return a string with the current time in the system's timezone, formatted as "The current time is YYYY-MM-DD HH:MM:SS".