Time MCP Server, giving LLMs time awareness capabilities.
<a href="https://github.com/yokingma/time-mcp/stargazers"><img src="https://img.shields.io/github/stars/yokingma/time-mcp" alt="Github Stars"></a> <a href="https://github.com/yokingma/time-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-purple" alt="License"></a> <a href="https://github.com/yokingma/time-mcp/issues/new"><img src="https://img.shields.io/badge/Report a bug-Github-%231F80C0" alt="Report a bug"></a>
A Model Context Protocol (MCP) server implementation that allows LLMs to have time awareness capabilities.
<div align="center"> <img src="./assets/cursor.png"></img> </div>current_time: Get current time (UTC and local time)relative_time: Get relative timeget_timestamp: Get timestamp for the timedays_in_month: Get days in monthconvert_time: Convert time between timezonesget_week_year: Get week and isoWeek of the yearTo install time-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @yokingma/time-mcp --client claudenpm install -g time-mcpnpx -y time-mcpTo add time-mcp to Claude Code, use the following command:
claude mcp add time-mcp -- npx -y time-mcpTo verify the installation:
claude mcp listYou should see time-mcp listed with a ✓ Connected status.
Once installed, you can use time-mcp tools in your conversations with Claude Code. For example:
The time-mcp server will automatically provide accurate time information to Claude.
Your mcp.json file will look like this:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}Add this to your ./codeium/windsurf/model_config.json file:
{
"mcpServers": {
"time-mcp": {
"command": "npx",
"args": ["-y", "time-mcp"]
}
}
}MIT License - see LICENSE file for details.