能力标签
多时区桌面时钟
🔌
MCP工具

多时区桌面时钟

基于 Rust · 让 AI 助手直接操作你的系统与工具
英文名:mclocks
⭐ 19 Stars 🍴 6 Forks 💻 Rust 📄 NOASSERTION 🏷 AI 7.5分
7.5AI 综合评分
clockepoch-timemcpmultiple-time-zones-clockrust
⚙️ 配置说明
✦ AI Skill Hub 推荐

AI Skill Hub 推荐使用:多时区桌面时钟 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

多时区桌面时钟 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 多时区桌面时钟,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。多时区桌面时钟 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 多时区桌面时钟 评为 AI 评分 7.5 分,属于同类工具中的优质选择。

📋 工具概览

显示多个时区的桌面时钟应用,支持粘性便签和命令行界面

多时区桌面时钟 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 19
开发语言
Rust
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
7.5 分
工具类型
MCP工具
Forks
6

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

显示多个时区的桌面时钟应用,支持粘性便签和命令行界面

多时区桌面时钟 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/bayashi/mclocks

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "-------": {
      "command": "npx",
      "args": ["-y", "mclocks"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 多时区桌面时钟 执行以下任务...
Claude: [自动调用 多时区桌面时钟 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "_______": {
      "command": "npx",
      "args": ["-y", "mclocks"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 61/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

mclocks🕒🌍🕕

<p align="center"><small> <a href="docs/i18n/README.ja.md">日本語</a> / <a href="docs/i18n/README.zh.md">中文</a> / <a href="docs/i18n/README.hi.md">हिन्दी</a> / <a href="docs/i18n/README.ar.md">العربية</a> / <a href="docs/i18n/README.es.md">Español</a> / <a href="docs/i18n/README.fr.md">Français</a> / <a href="docs/i18n/README.pt.md">Português</a> / <a href="docs/i18n/README.de.md">Deutsch</a> / <a href="docs/i18n/README.tr.md">Türkçe</a> / <a href="docs/i18n/README.id.md">Bahasa Indonesia</a> / <a href="docs/i18n/README.kr.md">한국어</a> </small></p>

----------

<p align="center">The desktop text clock application for multiple time zones<br> with Sticky note, Text convertor, Local debug web server, Markdown viewer and etc.</p>

<p align="center"> <img src="https://raw.githubusercontent.com/bayashi/mclocks/main/screenshot/mclocks-screenshot-0.1.8-custom.png" alt="screenshot" /> </p>

Clock-related features:

  • 🕐 Text clock for multiple time zones
  • ⏱️ Timer
  • ⏳ Countdown timer
  • 🔄 Epoch time and date-time convertor

Time waits for no one:

  • 📝 Sticky note
  • 📋 Clipboard History

A developer is never without a clock:

  • 🔀 Simple text convertor
  • such as easily creating SQL IN clauses
  • Excel/TSV table to Markdown table
  • 🌐 Web server
  • serves static files
  • richly render content
  • drag-and-drop based content viewer
  • dump request and response server
  • slow endpoints for debugging
  • open files in your editor from GitHub URLs
  • preview Markdown / JSON / YAML / etc. from CLI

🔔 NOTE: mclocks doesn't need an internet connection — everything runs 100% locally.

🔀 Convert Text Feature

Click mclocks app window, then use the following keyboard shortcuts to process clipboard text and open it in an editor:

  • Ctrl + i: Quotes each line of clipboard text with double quotes and appends a comma to the end (except the last line)
  • Ctrl + Shift + i: Appends a comma to the end of each line (no quotes) for INT list IN condition (except the last line)
  • Ctrl + t: Converts clipboard Excel/TSV text into a Markdown table and opens it in editor
  • Ctrl + Shift + t: Opens a Markdown table template in editor

Empty lines are preserved as-is in all operations.

(This Convert Text Feature has nothing to do with clocks or time, but software developers might find it handy! 😊)

Example config.json for the clock

The config.json file should be formatted as JSON (JSONC-supported), as shown below.

{ "clocks": [ { "name": "UTC", "timezone": "UTC" } ], "format": "MM-DD ddd HH:mm", "locale": "en", "color": "#fff", "font": "Courier, monospace", "size": 14, "margin": "1.65em", "forefront": false }

The sections below explain the fields you can set in config.json.

clocks

The clocks field is an array of objects, each containing name and timezone properties. Both should be String. By default, both are UTC.

  • name is a label that will be displayed for the clock.
  • For selecting time zones, please refer to this list of time zones.

Here is an example of a clocks array for three time zones.

{ "clocks": [ { "name": "Tokyo", "timezone": "Asia/Tokyo" }, { "name": "UTC", "timezone": "UTC" }, { "name": "SF", "timezone": "America/Los_Angeles" } ], "format": "MM-DD ddd HH:mm", ...snip... }

format

string: MM-DD ddd HH:mm

The format field is a date-time format string used to display the clock. To create a custom date-time format, please refer to this formatting guide.

format2

string: ""

The format2 field is same as format. These are switched each other by Ctrl + f key. The format2 is optional field.

locale

string: en

The locale field determines the language settings for displaying the date-time. You can find a list of supported locales here.

color

string: #fff

The color field defines the color of the date-time text. You can use named colors, RGB hex values, RGB values (e.g., RGB(255, 0, 0)), or any valid CSS color value.

font

string: Courier, monospace

The font is a font name to display date-time. It should be monospaced font. If you would set non-fixed-width font, then your mclocks may have an undesirable wobbling effect.

size

number | string: 14

The size is a size of charactor for date-time, in pixel. It can also be specified as a string that includes a unit (e.g., "125%", "1.5em").

margin

string: 1.65em

The margin field determines the space between clocks

forefront

bool: false

If the forefront field is set to true, the mclocks application will always be displayed on top of other application windows.

⚙️ config.json

The config.json file allows you to configure the clocks according to your preferences.

The config.json file should be located in the following directories:

  • Windows: C:\Users\{USER}\AppData\Roaming\com.bayashi.mclocks\
  • Mac: /Users/{USER}/Library/Application Support/com.bayashi.mclocks/

When you start mclocks, then press Ctrl + o to edit your config.json file.

You can also use the online config.json generator: https://bayashi.github.io/mclocks/mclocks-config-generator/

/dump endpoint

When dump: true is set in the web configuration, the web server provides a /dump endpoint that returns request details as JSON.

The endpoint responds with a JSON object containing: method: HTTP method (e.g., "GET", "POST") path: Request path after /dump/ (e.g., "/test" for /dump/test) query: Query parameters as an array of key-value objects (e.g., [{"key1": "value1"}, {"key2": "value2"}]) headers: Request headers as an array of key-value objects (e.g., [{"Content-Type": "application/json"}]) body: Request body as a string (if present) parsed_body: Parsed JSON object if Content-Type indicates JSON, or error message string if parsing fails

Access the dump endpoint at http://127.0.0.1:3030/dump or any path under /dump/ (e.g., /dump/test?key=value).

/slow endpoint

When slow: true is set in the web configuration, the web server provides a /slow endpoint that delays the response before returning 200 OK.

The endpoint is accessible via any HTTP method (GET, POST, etc.) and supports the following paths:

  • /slow: Waits 30 seconds (default) and returns 200 OK
  • /slow/120: Waits 120 seconds (or any specified number of seconds) and returns 200 OK

The maximum allowed value is 901 seconds (15 minutes + 1 second). Requests exceeding this limit return a 400 Bad Request error.

This endpoint is useful for testing timeout behavior, connection handling, or simulating slow network conditions.

If an invalid seconds parameter is provided (e.g., /slow/abc), the endpoint returns a 400 Bad Request error.

/status endpoint

When status: true is set in the web configuration, the web server provides a /status/{code} endpoint that returns arbitrary HTTP status codes defined in RFC standards (100-599).

The endpoint returns a plain text response with the status code and its corresponding phrase, along with appropriate headers as required by the HTTP specification.

Examples: http://127.0.0.1:3030/status/200 - returns 200 OK http://127.0.0.1:3030/status/404 - returns 404 Not Found http://127.0.0.1:3030/status/500 - returns 500 Internal Server Error http://127.0.0.1:3030/status/418 - returns 418 I'm a teapot (with special message) * http://127.0.0.1:3030/status/301 - returns 301 Moved Permanently (with Location header)

Status-specific headers:

The endpoint automatically adds appropriate headers for specific status codes:

  • 3xx Redirection (301, 302, 303, 305, 307, 308): Adds Location header
  • 401 Unauthorized: Adds WWW-Authenticate header
  • 405 Method Not Allowed: Adds Allow header
  • 407 Proxy Authentication Required: Adds Proxy-Authenticate header
  • 416 Range Not Satisfiable: Adds Content-Range header
  • 426 Upgrade Required: Adds Upgrade header
  • 429 Too Many Requests: Adds Retry-After header (60 seconds)
  • 503 Service Unavailable: Adds Retry-After header (60 seconds)
  • 511 Network Authentication Required: Adds WWW-Authenticate header

Response body handling:

  • 204 No Content and 304 Not Modified: Returns empty response body (as per HTTP specification)
  • 418 I'm a teapot: Returns special message "I'm a teapot" instead of standard status phrase
  • All other status codes: Returns plain text in format {code} {phrase} (e.g., "404 Not Found")

This endpoint is useful for testing how your applications handle different HTTP status codes, error handling, redirects, authentication requirements, and rate limiting scenarios.

/editor endpoint

When web.editor.reposDir is set in the configuration file, the web server provides a /editor endpoint that allows you to open local files in your editor directly from browser's GitHub URLs.

Configuration:

Add the following to your web configuration of editor:

{ "web": { "root": "/path/to/your/webroot", "editor": { "reposDir": "~/repos", "includeHost": false, "command": "code", "args": ["-g", "{file}:{line}"] } } }

  • reposDir: Path to your local repositories directory. Supports ~ for home directory expansion (e.g., "~/repos" on macOS or "C:/Users/username/repos" on Windows). This directory must exist.
  • includeHost: If true, local path resolution includes the original host as a directory (e.g. {reposDir}/{host}/{owner}/{repo}/...). If false, it resolves to {reposDir}/{owner}/{repo}/... (default: false).
  • command: Command name or path to your editor executable (default: code)
  • args: Arguments template array. Use {file} and {line} placeholders. If #L... is not present in URL, {line} uses 1.

How it works:

  1. When you access a GitHub file URL through the /editor endpoint, it converts the GitHub path to a local file path
  2. The local file path is constructed as: {reposDir}/{owner}/{repository_name}/{file_path}
  3. If the file exists, it opens the file in your editor at the specified line number using the configured command and args (default: code -g {local_file_path}:{line_number})
  4. If the file doesn't exist, an error page is displayed with a link to clone the repository

Bookmarklet:

Create a bookmarklet to quickly open GitHub files in your local editor. Replace 3030 with your configured port number:

javascript:(function(){var u=new URL(document.location.href);open('http://127.0.0.1:3030/editor/'+u.host+u.pathname+u.hash,'_blank');})()

Line number support:

You can specify a line number using the hash fragment in the URL: * https://github.com/username/repo/blob/main/file.rs#L123 → Opens at line 123

Error handling:

  • If the file doesn't exist locally, the tab stays open and displays an error message with a link to clone the repository from GitHub
  • If the file is successfully opened, the tab automatically closes
  • If web.editor.reposDir is not configured or doesn't exist, the /editor endpoint is not enabled (and you will get 404)

Example:

  1. You're viewing a file on GitHub: https://github.com/bayashi/mclocks/blob/main/src/app.js#L42
  2. Click the bookmarklet or manually navigate to: http://127.0.0.1:3030/editor/bayashi/mclocks/blob/main/src/app.js#L42
  3. If ~/repos/mclocks/src/app.js exists in your local, VS Code opens it at line 42
  4. If the file doesn't exist, an error page shows with a link to https://github.com/bayashi/mclocks for cloning

mclocks-preview extension (Cursor / VS Code)

There is an extension for VS Code and Cursor that you can use from the file menu (the menu that appears when you right‑click a file). It is called mclocks-preview, and it is especially useful for previewing Markdown files. The installation procedure is described below.

  1. Clone this repository if you do not have it yet, then change to the repository root:
    git clone https://github.com/bayashi/mclocks.git
    cd mclocks
    
  1. Open the repository folder in Cursor or Visual Studio Code:
    cursor .
    

or

    code .
    
  1. Open the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS).
  1. Run Developer: Install Extension from Location....
  1. Select the folder extensions/mclocks-preview inside this repository.
  1. Reload the window when prompted, or run Developer: Reload Window from the Command Palette.

After installation, you can choose Open in mclocks preview from the menu that appears when you right‑click a file.

----------

🎯 aiskill88 AI 点评 A 级 2026-06-05

一个简单但实用的多时区桌面时钟应用

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
mclocks 中文教程mclocks 安装报错怎么办mclocks MCP 配置mclocks 与同类工具对比mclocks 最佳实践mclocks 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

mclocks 是一款Rust开发的AI辅助工具。开源MCP工具:The desktop text clock application for multiple time zones with Sticky note, Cli。⭐19 · Rust 主要应用场景包括:查看多个时区的时间。
💡 AI Skill Hub 点评

总体来看,多时区桌面时钟 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
📚 深入学习 多时区桌面时钟
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 mclocks
原始描述 开源MCP工具:The desktop text clock application for multiple time zones with Sticky note, Cli。⭐19 · Rust
Topics clockepoch-timemcpmultiple-time-zones-clockrust
GitHub https://github.com/bayashi/mclocks
License NOASSERTION
语言 Rust
🔗 原始来源
🐙 GitHub 仓库  https://github.com/bayashi/mclocks

收录时间:2026-06-05 · 更新时间:2026-06-08 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。