UTC时间服务

CurrentTimeUTC MCP Server 是一个提供精确UTC时间和时区转换服务的协议服务器,具有低延迟和高可靠性,适用于需要精确时间数据的AI应用。

  • by jairampatel
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 jairampatel/currenttimeutc-mcp

使用说明

当前UTC时间 MCP服务器

一个模型上下文协议(MCP)服务器,提供低延迟、高可靠性的准确协调世界时(UTC)时间及时区转换服务。

概述

CurrentTimeUTC MCP服务器通过标准化的MCP接口提供精确的时间服务,使AI应用能够高效地获取当前时间数据并进行时区转换。

服务信息

  • 基本URL: https://a.currenttimeutc.com/mcp
  • 模式(Schema)URL: https://a.currenttimeutc.com/mcp/schema
  • 文档: https://currenttimeutc.com/mcp

特点/功能

  • 协调世界时获取当前具有毫秒精度的UTC时间
  • 时区转换使用IANA时区标识符将UTC时间转换为任意时区
  • 低延迟优化以实现快速响应时间
  • 批量转换在单个请求中转换多个时间戳
  • 标准化接口完全符合MCP标准,实现无缝集成

快速入门

获取当前UTC时间

curl -X GET https://a.currenttimeutc.com/mcp/time/utc \
  -H "Content-Type: application/json" \
  -d '{}'

将时间转换为时区

curl -X GET https://a.currenttimeutc.com/mcp/time/convert?from_tz=America/New_York&to_tz=Europe/London&time=2024-01-15:14:30:00 \
  -H "Content-Type: application/json"

列出时区

curl -X GET https://a.currenttimeutc.com/mcp/time/zones \
  -H "Content-Type: application/json"

## Schema Versioning

- **v1.0.0** (Initial Release, October 2024)
  - Basic UTC time retrieval
  - Single timezone conversion
  - List time zones
  - Error handling and validation

## Repository Structure

This repository contains the MCP schema and documentation for the CurrentTimeUTC server. It does not include backend implementation code.

├── README.md # 本文件 ├── LICENSE # MIT 许可证 ├── schema/(模式/架构目录) │ └── v1.json # MCP 模式定义 ├── examples/(示例目录) │ ├── curl.md # cURL 示例 │ ├── python.md # Python 示例 │ └── js.md # JavaScript 示例 └── .github/ └── workflows/(工作流目录) └── validate-schema.yml # 架构验证工作流程


## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contributing

This repository is for MCP schema and documentation only. For backend implementation or service issues, please contact the service maintainers.