MCPTimeServer
Overview
MCPTimeServer is a Model Context Protocol (MCP) server that provides accurate current time from internet time servers with support for custom timezones.
To use MCPTimeServer, install the required dependencies, configure your preferred timezone, and run the server in Claude Desktop. You can then use the get_current_time tool to fetch the current time in your configured timezone.
- Fetches accurate time from NTP servers (pool.ntp.org) - Supports custom timezone configuration via environment variable - Graceful error handling for network issues and invalid timezones - Compatible with Claude Desktop
- Fetching the current time for applications that require accurate timekeeping.
- Supporting multiple timezones for global applications.
- Integrating with other services that rely on accurate time data.
Add to your AI client
Use these steps to connect MCPTimeServer in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcptimeserver-mekanixms": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcptimeserver-mekanixms"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcptimeserver-mekanixms": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcptimeserver-mekanixms"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcptimeserver-mekanixms": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcptimeserver-mekanixms"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcptimeserver-mekanixms": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcptimeserver-mekanixms"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcptimeserver-mekanixms": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcptimeserver-mekanixms"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcptimeserver-mekanixms": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcptimeserver-mekanixms"
]
}
}
}FAQ
Can MCPTimeServer handle multiple timezones?
Yes! You can configure any valid timezone from the IANA Time Zone Database.
What happens if the NTP server is unreachable?
The server gracefully handles network issues and falls back to UTC if the timezone is invalid.
Is MCPTimeServer easy to install?
Yes! Installation is straightforward with pip and requires minimal configuration.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":953,"uuid":"26307dee-7742-4677-babb-e3e87d2e1c2d","name":"MCPTimeServer","title":"MCPTimeServer","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/12233330?v=4","created_at":"2025-01-28T02:20:52.041Z","updated_at":"2025-02-23T07:19:19.177Z","status":"created","author_name":"mekanixms","author_avatar_url":"https://avatars.githubusercontent.com/u/12233330?v=4","tags":"mcp,time-server,timezone-support","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/mekanixms/MCPTimeServer","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]