Supports downloading the MCP-time binary releases directly from GitHub using curl commands for easy installation.
Allows running the MCP-time server in a containerized environment using the theo01/mcp-time Docker image, providing isolation and easy deployment.
Enables access to the MCP-time server releases, workflow status, and source code repository for installation and contribution.
Time MCP Server
A Model Context Protocol server that enables AI assistants to interact with time
Overview
The Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling backend, allowing for complex time manipulations through natural language interactions.
Features
- Time Manipulation: Get current time, convert between timezones, and add or subtract durations.
- Natural Language Parsing: Understands relative time expressions like "yesterday" or "next month".
- Time Comparison: Compare two different times.
- Flexible Formatting: Supports a wide variety of predefined and custom time formats.
- MCP Compliance: Fully compatible with the Model Context Protocol standard.
- Multiple Transports: Can be run using
stdio
for simple integrations or as anHTTP stream
server for network access.
Installation
This MCP server can be integrated with various AI assistants that support the Model Context Protocol.
On Cursor
Use the link below to install directly in Cursor.
Using Docker
Copy the following JSON configuration into your MCP client to run the server using Docker:
Using binary
Copy the following JSON configuration into your MCP client to run the server using the binary:
You need to install the mcp-time
binary on your system. You can do this in several ways:
Install from releases
You can download the latest binary from the releases page.
Install with Go
This will install the mcp-time
binary in your $GOPATH/bin
directory.
Building from Source
This will build and install the mcp-time
binary in the ~/.local/bin
directory.
Usage
Basic Usage
Start the MCP server with the default stdio
transport:
Start the MCP server with the stream
transport:
Advanced Usage
The server supports several command-line options for more advanced configurations:
Available Tools
relative_time
Get a time based on a relative natural language expression.
Parameters:
text
(required): The natural language expression (e.g.,yesterday
,5 minutes ago
,next month
).time
(optional): A reference time for the relative expression. Defaults to current time.timezone
(optional): The target timezone for the output.format
(optional): The output format for the time.
convert_timezone
Convert a given time between timezones.
Parameters:
time
(required): The input time string. It can be in various formats.input_timezone
(optional): The timezone of the input time.output_timezone
(optional): The target timezone for the output.format
(optional): The output format for the time.
current_time
Get the current time.
Parameters:
format
(optional): The output format for the time. Can be a predefined format (e.g.,RFC3339
,Kitchen
) or a custom Go layout.timezone
(optional): The target timezone in IANA format (e.g.,America/New_York
). Defaults to UTC.
add_time
Add or subtract a duration to a given time.
Parameters:
time
(required): The input time string.duration
(required): The duration to add or subtract (e.g.,2h30m
,-1h
).timezone
(optional): The target timezone for the output.format
(optional): The output format for the time.
compare_time
Compare two times.
Parameters:
time_a
(required): The first time to compare.time_b
(required): The second time to compare.
Returns:
-1
iftime_a
is beforetime_b
.0
iftime_a
is equal totime_b
.1
iftime_a
is aftertime_b
.
Credits
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
The Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling back
Related MCP Servers
- -securityFlicense-qualityAn MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.Last updated -Python
- AsecurityAlicenseAqualityA TypeScript server implementing the Model Context Protocol (MCP) that provides datetime and timezone information to AI agents and chat interfaces, allowing them to access current time in various timezones.Last updated -452TypeScriptMozilla Public License 2.0
- -securityAlicense-qualityA lightweight mcp server that tells you exactly what time is it based on your IP.Last updated -8PythonMIT License
- -securityAlicense-qualityAn MCP server that provides interval timing functionality using token-based time tracking, allowing users to start timers with unique identifiers and check elapsed time in milliseconds or human-readable format.Last updated -TypeScriptApache 2.0