mcp-time
Time MCP server via HTTP
Should I use this
Quality & Safety
Findings (3)
- LOWin current_time
- LOWin days_in_month
- LOWin get_week_year
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"mcp-time": {
"command": "npx",
"args": [
"@mcpcentral/mcp-time"
]
}
}
}Runnable packages
0.0.3stdioRemote endpoints
https://mcp.time.mcpcentral.iostreamable-httpWhat it can do
Tool inventory
Tools (6)
⚪current_time(format, timezone)
Returns the current time in UTC and a specified or guessed timezone.
Input Schema
{
"type": "object",
"properties": {
"format": {
"type": "string",
"description": "The format for the returned time string. Either a dayjs token string (e.g. \"YYYY-MM-DD HH:mm:ss\") or a named format: \"iso8601\" / \"rfc3339\" (ISO 8601 UTC), \"unix\" (epoch seconds), \"unix_ms\" (epoch milliseconds).",
"default": "YYYY-MM-DD HH:mm:ss"
},
"timezone": {
"type": "string",
"description": "The IANA timezone name (e.g., \"America/New_York\"). Defaults to the server's guessed timezone."
}
}
}⚪relative_time(time)
Calculates the relative time from now to a given time string.
Input Schema
{
"type": "object",
"properties": {
"time": {
"type": "string",
"description": "The time to compare. Format: YYYY-MM-DD HH:mm:ss"
}
},
"required": [
"time"
]
}⚪days_in_month(date)
Returns the number of days in the month of a given date.
Input Schema
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "The date to check. Format: YYYY-MM-DD"
}
}
}🟢get_timestamp(time)
Converts a date-time string to a Unix timestamp in milliseconds.
Input Schema
{
"type": "object",
"properties": {
"time": {
"type": "string",
"description": "The time to convert. Format: YYYY-MM-DD HH:mm:ss"
}
}
}⚪convert_time(sourceTimezone, targetTimezone, time)
Converts a time from a source timezone to a target timezone.
Input Schema
{
"type": "object",
"properties": {
"sourceTimezone": {
"type": "string",
"description": "The source IANA timezone name (e.g., \"Asia/Shanghai\")."
},
"targetTimezone": {
"type": "string",
"description": "The target IANA timezone name (e.g., \"Europe/London\")."
},
"time": {
"type": "string",
"description": "The time to convert. e.g., \"2025-03-23 12:30:00\"."
}
},
"required": [
"sourceTimezone",
"targetTimezone",
"time"
]
}🟢get_week_year(date)
Returns the week and ISO week number for a given date.
Input Schema
{
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "The date to check. e.g., \"2025-03-23\""
}
}
}Community
Evidence