# mcp-time-server **Repository Path**: BrightXu/mcp-time-server ## Basic Information - **Project Name**: mcp-time-server - **Description**: 提供时间和时区转换功能的模型上下文协议服务器。该服务器使llm能够获得当前时间信息,并使用IANA时区名称执行时区转换,并具有自动系统时区检测。 - **Primary Language**: Rust - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-08 - **Last Updated**: 2026-10-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: MCP, Rust ## README # Time MCP Server 基于 Rust 的提供时间和时区转换功能的模型上下文协议(MCP)服务器。该服务器使大语言模型(LLM)能够使用 IANA 时区名称获取当前时间信息并执行时区转换,并支持自动检测系统时区。 ### 可用工具 - `get_current_time` - 获取特定时区或系统时区的当前时间。 - **必需参数**: - `timezone` (字符串): IANA 时区名称(例如,'America/New_York'、'Europe/London') - `convert_time` - 在不同时区之间转换时间。 - **必需参数**: - `source_timezone` (字符串): 源 IANA 时区名称 - `time` (字符串): 24小时制格式的时间 (HH:MM) - `target_timezone` (字符串): 目标 IANA 时区名称 ## License [MIT](LICENSE-MIT) OR [Apache-2.0](LICENSE-APACHE)