MCP Time Server

MCP Time Server

mcp-time-server-szemeng76•byszemeng76

A Model Context Protocol server that provides current time retrieval and time conversion across time zones.

License: MIT License•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Gets the current time in a specified time zone, defaulting to UTC.
  • •Converts a given time between a source and target time zone.
  • •Supports all standard IANA time zone identifiers.
  • •Handles daylight saving time transitions automatically.

BEST FOR

  • •Coordinating meetings and schedules across global offices and teams.
  • •Converting flight and travel times between departure and destination time zones.
  • •Operations work such as converting UTC timestamps for logging or scheduling maintenance windows.

ABOUT MCP-TIME-SERVER-SZEMENG76

MCP Time Server is cataloged as an MCP server attributed to szemeng76. A Model Context Protocol server that provides current time retrieval and time conversion across time zones. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Time Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What time zone does get_current_time use if none is specified?

It defaults to UTC when no time zone is provided.

Does the server handle daylight saving time?

Yes, daylight saving time transitions are handled automatically during its calculations.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 15a9a769d9c1 · 采集于 2026-11-13 12:55:43 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

⏰ MCP Time Server

中文版 | English

A comprehensive MCP server for time zone management and time conversion

🎯 Overview

A Model Context Protocol (MCP) server that provides powerful time zone utilities including current time retrieval across different time zones and seamless time conversion between zones. Built with TypeScript for reliability and designed to work with any MCP-compatible client.

✨ Features

  • 🌍 Global Time Zones: Get current time in any time zone worldwide
  • 🔄 Time Conversion: Convert time between different time zones with precision
  • ⚡ Fast Performance: Efficient time calculations using native JavaScript APIs
  • 🔧 TypeScript: Full type safety with comprehensive error handling
  • 🌐 Multi-Platform: Supports both local MCP clients and Cloudflare Workers
  • 📡 HTTP Support: Additional HTTP and SSE endpoints for web integration
  • 🎨 User-Friendly: Clear, formatted time output with time zone information

📦 Installation

npm install mcp-time-server

Or use directly with npx:

npx mcp-time-server

🔧 Configuration

Claude Desktop

{
  "mcpServers": {
    "time": {
      "command": "npx",
      "args": ["mcp-time-server"]
    }
  }
}

Cursor IDE

{
  "mcpServers": {
    "time": {
      "command": "npx",
      "args": ["mcp-time-server"]
    }
  }
}

VS Code with GitHub Copilot

{
  "mcp.servers": {
    "time": {
      "command": "npx",
      "args": ["mcp-time-server"],
      "transport": "stdio"
    }
  }
}

Local Development

{
  "mcpServers": {
    "time": {
      "command": "node",
      "args": ["path/to/mcp-time-server/dist/cli.js"]
    }
  }
}

🛠️ Available Tools

get_current_time

Get the current time in a specified time zone.

Parameters:

  • timezone (optional): Time zone identifier (e.g., "America/New_York", "Asia/Tokyo", "Europe/London")
    • Default: "UTC" if not specified
    • Supports all standard IANA time zone names

Example Usage:

"What time is it now in Tokyo?"
"Get current time in New York"
"Show me the current UTC time"
"What's the time in London right now?"

Returns:

  • Formatted date and time in the specified time zone
  • Time zone identifier for confirmation
  • 24-hour format (HH:MM:SS)
  • Full date (YYYY/MM/DD)

Example Response:

2025/7/26 14:30:45 (Asia/Tokyo)

convert_time

Convert time between different time zones.

Parameters:

  • source_timezone (required): Source time zone identifier
  • time (required): Time to convert in HH:MM format (24-hour)
  • target_timezone (required): Target time zone identifier

Example Usage:

"Convert 14:30 from Tokyo time to New York time"
"What is 09:00 London time in Los Angeles?"
"Convert 18:45 from UTC to Sydney time"

Returns:

  • Original time with source time zone
  • Converted time with target time zone
  • Clear conversion statement

Example Response:

14:30 在 Asia/Tokyo 相当于 01:30 在 America/New_York

🎮 Usage Examples

Global Business Coordination

"What time is it now in our offices in London, Tokyo, and San Francisco?"
"Convert our 10:00 AM meeting time from EST to all other office time zones"

Travel Planning

"If it's 3:00 PM in Paris, what time is it in my destination city Bangkok?"
"Convert my flight departure time 08:30 from LAX timezone to arrival timezone in Dubai"

Development and Operations

"Get current UTC time for logging"
"Convert server maintenance time 02:00 UTC to all regional offices"

Scheduling and Coordination

"Convert 15:30 CET to Pacific Standard Time for our team call"
"What's 9:00 AM Monday in Sydney equivalent to in London?"

🌍 Supported Time Zones

This server supports all standard IANA time zone identifiers, including:

Major Regions

  • Americas: America/New_York, America/Los_Angeles, America/Chicago, America/Toronto
  • Europe: Europe/London, Europe/Paris, Europe/Berlin, Europe/Rome
  • Asia: Asia/Tokyo, Asia/Shanghai, Asia/Hong_Kong, Asia/Singapore
  • Australia: Australia/Sydney, Australia/Melbourne, Australia/Perth
  • Others: UTC, GMT, and all other IANA zones

Common Examples

UTC                    # Coordinated Universal Time
America/New_York       # Eastern Time (US)
America/Los_Angeles    # Pacific Time (US)
Europe/London          # Greenwich Mean Time
Europe/Paris           # Central European Time
Asia/Tokyo             # Japan Standard Time
Asia/Shanghai          # China Standard Time
Australia/Sydney       # Australian Eastern Time

🏗️ Development

Local Setup

# Clone the repository
git clone https://github.com/SzeMeng76/mcp-time-server.git
cd mcp-time-server

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

Project Structure

mcp-time-server/
├── src/
│   ├── index.ts          # Main MCP server implementation
│   └── cli.ts            # CLI and HTTP server setup
├── dist/                 # Compiled JavaScript files
├── package.json          # Dependencies and scripts
├── tsconfig.json         # TypeScript configuration
└── README.md            # Documentation

Core Dependencies

  • @modelcontextprotocol/sdk: Official MCP server framework
  • zod: Runtime type validation and schema definition
  • http: Node.js HTTP server for web endpoints

🔧 Technical Details

Time Zone Handling

  • Uses JavaScript's native Intl.DateTimeFormat API for accurate time zone conversions
  • Supports all IANA time zone identifiers
  • Handles daylight saving time transitions automatically
  • Provides 24-hour format for consistency

Time Conversion Algorithm

The time conversion process involves several steps to ensure accuracy:

  1. Parse Input Time: Convert HH:MM string to numeric values
  2. Create Local Date: Build a date object for the current day
  3. UTC Conversion: Convert to UTC as an intermediate step
  4. Source Validation: Verify the input time in the source time zone
  5. Adjustment: Apply any necessary corrections for time zone differences
  6. Target Formatting: Format the result in the target time zone

Error Handling

  • Comprehensive input validation for time formats
  • Clear error messages for invalid time zone identifiers
  • Graceful handling of edge cases and DST transitions
  • Type-safe parameter processing with Zod schemas

Multi-Platform Support

  • MCP Client: Standard stdio transport for MCP compatibility
  • HTTP Server: REST endpoints for web integration
  • SSE Support: Server-Sent Events for real-time updates
  • Cloudflare Workers: Cloud deployment support

🌐 HTTP Endpoints

When running as an HTTP server, additional endpoints are available:

/mcp

  • Method: GET
  • Description: Server status and available tools
  • Response: JSON with server information

/sse

  • Method: GET
  • Description: Server-Sent Events endpoint
  • Response: Event stream for real-time updates

⚠️ Important Notes

Time Zone Accuracy

  • All calculations use official IANA time zone data
  • Daylight saving time transitions are handled automatically
  • Results are accurate for current date calculations
  • Historical time zone changes may not be reflected for past dates

Input Format

  • Time must be provided in 24-hour format (HH:MM)
  • Leading zeros are not required (e.g., "9:30" or "09:30")
  • Seconds are not supported in input but are shown in output

Performance Considerations

  • Time zone calculations are performed in real-time
  • No caching is implemented for maximum accuracy
  • Minimal memory footprint with efficient algorithms

🚀 Common Use Cases

Business Operations

  • Global Teams: Coordinate meetings across multiple time zones
  • Customer Support: Convert support hours to customer local time
  • Release Management: Schedule deployments across global infrastructure

Travel and Logistics

  • Flight Planning: Convert flight times between departure and arrival zones
  • Event Planning: Schedule international events and webinars
  • Travel Itineraries: Plan activities in destination time zones

Development and DevOps

  • Log Analysis: Convert UTC timestamps to local time zones
  • Monitoring: Display alerts in appropriate regional time zones
  • Deployment: Schedule maintenance windows across regions

Personal Productivity

  • Calendar Management: Convert appointment times for travel
  • Communication: Find optimal meeting times across time zones
  • Planning: Coordinate with international colleagues and friends

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes with proper TypeScript types
  4. Test with various time zones and edge cases
  5. Ensure error handling works correctly
  6. Submit a pull request with clear description

Development Guidelines

  • Maintain TypeScript strict mode compliance
  • Add comprehensive error handling for new features
  • Test with both common and obscure time zones
  • Document any new parameters or return formats
  • Consider daylight saving time edge cases

📄 License

MIT License - see LICENSE file for details.

⚖️ Data and Accuracy

  • Time Zone Data: Uses browser/Node.js built-in IANA time zone database
  • Accuracy: Calculations are accurate for current date and standard transitions
  • Updates: Time zone data is updated with JavaScript runtime updates
  • Limitations: Historical time zone changes may not be fully supported
  • Reliability: Suitable for business and personal scheduling applications

🙏 Acknowledgments

  • IANA: For maintaining the comprehensive time zone database
  • MCP Community: For the standardized protocol
  • JavaScript Intl API: For robust internationalization support
  • Contributors: Everyone who helps improve this project

Built for global coordination, scheduling, and time zone management ⏰🌍

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Time Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-time-server-szemeng76)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops