Time MCP Server, giving LLMs time awareness capabilities.
A Model Context Protocol (MCP) server implementation that allows LLMs to have time awareness capabilities.
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 claude
npm install -g time-mcp
npx -y time-mcp
To add time-mcp to Claude Code, use the following command:
claude mcp add time-mcp -- npx -y time-mcp
To verify the installation:
claude mcp list
You 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.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y time-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-yokingma-time-mcp": {
"command": "npx",
"args": [
"-y",
"time-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceio.github.yokingma/time-mcp works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.