The Time MCP Server is a Model Context Protocol (MCP) implementation designed to provide Large Language Models (LLMs) with time awareness capabilities. This server enables LLMs to understand and process time-related data, enhancing their functionality in applications where temporal context is crucial.
The Time MCP Server offers the following tools:
current_time
: Retrieves the current time in both UTC and local time.relative_time
: Calculates relative time differences.get_timestamp
: Generates a timestamp.days_in_month
: Determines the number of days in a given month.convert_time
: Converts time between different timezones.You can install the Time MCP Server manually or use npx
for quick setup.
# Manual installation (Optional)
npm install -g time-mcp
# Using npx
npx -y time-mcp
To run the Time MCP Server on Cursor, configure your mcp.json
file as follows:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}
For Windsurf, add the following configuration to your ./codeium/windsurf/model_config.json
file:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}
This project is licensed under the MIT License. For more details, see the LICENSE file.
The Time MCP Server is a powerful tool for integrating time awareness into LLMs, enabling them to handle temporal data effectively. It is particularly useful in applications where understanding time is essential.