GetUTC MCP Server

GetUTC MCP Server

Provides accurate UTC time by aggregating and verifying data from multiple reliable sources like WorldClockAPI, Google, and GitHub. It enables users to retrieve time in various formats including ISO, Unix timestamps, and human-readable strings with automatic source fallback for reliability.

Category
访问服务器

README

GetUTC MCP Server

English | 中文


English

A simple and reliable MCP (Model Context Protocol) server that provides accurate UTC time from multiple verified sources. Ready to use out of the box - just clone and configure!

✨ Features

  • Multiple Time Sources: Verified against 4 reliable sources for accuracy
    • WorldClockAPI (JSON API)
    • HTTP Date headers from WorldClock, Google, and GitHub
  • Multiple Formats: ISO, timestamp, readable, date-only, time-only
  • Pre-built: Ready to use without compilation
  • Reliable: Automatic fallback between sources

🚀 Quick Start

  1. Clone the repository

    git clone https://github.com/very99/getutc-mcp.git
    cd getutc-mcp
    
  2. Configure your MCP client

    Add to your MCP configuration file:

    For Amazon Q CLI (~/.aws/amazonq/mcp.json):

    {
      "mcpServers": {
        "getutc": {
          "command": "node",
          "args": ["/path/to/getutc-mcp/dist/index.js"],
          "timeout": 30000
        }
      }
    }
    

    For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

    {
      "mcpServers": {
        "getutc": {
          "command": "node",
          "args": ["/path/to/getutc-mcp/dist/index.js"]
        }
      }
    }
    
  3. Start using

    Ask your MCP client:

    • "What's the current UTC time?"
    • "Get UTC timestamp"
    • "Show today's date"

📖 Tool Reference

Tool Name: get_utc_time

Parameters:

  • format (optional): Output format
    • "iso" (default): ISO 8601 format (2025-06-21T16:18:14.000Z)
    • "timestamp": Unix timestamp (1734789494)
    • "readable": Human readable (Saturday, June 21, 2025 at 4:18:14 PM UTC)
    • "date-only": Date only (2025-06-21)
    • "time-only": Time only (16:18:14)

🔧 Requirements

  • Node.js (version 14 or higher)
  • MCP-compatible client (Amazon Q CLI, Claude Desktop, etc.)

📁 Project Structure

getutc-mcp/
├── dist/           # Pre-built files (ready to use)
│   └── index.js    # Main server file
├── src/            # Source code
├── package.json    # Dependencies
└── README.md       # This file

🤝 Contributing

Feel free to submit issues and pull requests!

📄 License

MIT License


中文

一个简单可靠的 MCP (Model Context Protocol) 服务器,通过多个验证源提供准确的 UTC 时间。开箱即用 - 只需克隆和配置!

✨ 特性

  • 多时间源: 通过4个可靠源验证确保准确性
    • WorldClockAPI (JSON API)
    • WorldClock、Google、GitHub 的 HTTP Date 头
  • 多种格式: ISO、时间戳、可读格式、仅日期、仅时间
  • 预编译: 无需编译即可使用
  • 可靠性: 源之间自动故障转移

🚀 快速开始

  1. 克隆仓库

    git clone https://github.com/very99/getutc-mcp.git
    cd getutc-mcp
    
  2. 配置你的 MCP 客户端

    添加到你的 MCP 配置文件:

    Amazon Q CLI (~/.aws/amazonq/mcp.json):

    {
      "mcpServers": {
        "getutc": {
          "command": "node",
          "args": ["/path/to/getutc-mcp/dist/index.js"],
          "timeout": 30000
        }
      }
    }
    

    Claude Desktop (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

    {
      "mcpServers": {
        "getutc": {
          "command": "node",
          "args": ["/path/to/getutc-mcp/dist/index.js"]
        }
      }
    }
    
  3. 开始使用

    询问你的 MCP 客户端:

    • "现在的UTC时间是多少?"
    • "获取UTC时间戳"
    • "显示今天的日期"

📖 工具参考

工具名称: get_utc_time

参数:

  • format (可选): 输出格式
    • "iso" (默认): ISO 8601 格式 (2025-06-21T16:18:14.000Z)
    • "timestamp": Unix 时间戳 (1734789494)
    • "readable": 人类可读格式 (Saturday, June 21, 2025 at 4:18:14 PM UTC)
    • "date-only": 仅日期 (2025-06-21)
    • "time-only": 仅时间 (16:18:14)

🔧 系统要求

  • Node.js (版本 14 或更高)
  • 兼容 MCP 的客户端 (Amazon Q CLI, Claude Desktop 等)

📁 项目结构

getutc-mcp/
├── dist/           # 预编译文件 (可直接使用)
│   └── index.js    # 主服务器文件
├── src/            # 源代码
├── package.json    # 依赖项
└── README.md       # 本文件

🤝 贡献

欢迎提交问题和拉取请求!

📄 许可证

MIT 许可证


Troubleshooting | 故障排除

English: If you encounter issues, make sure:

  • Node.js is installed and accessible
  • The path in your MCP configuration is correct and absolute
  • Your MCP client supports the MCP protocol

中文: 如果遇到问题,请确保:

  • Node.js 已安装且可访问
  • MCP 配置中的路径正确且为绝对路径
  • 你的 MCP 客户端支持 MCP 协议

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选