MCP.so
登录

@dandeliongold/mcp-time

@dandeliongold

关于 @dandeliongold/mcp-time

暂无概览

基本信息

分类

生产力

传输方式

stdio

发布者

dandeliongold

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "time": {
      "command": "npx",
      "args": [
        "@dandeliongold/mcp-time"
      ]
    }
  }
}

工具

1

`timestamp`: ISO format timestamp (YYYY-MM-DD HH:mm:ss)

概览

What is @dandeliongold/mcp-time?

It is an MCP server that provides the current time in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date, designed to work with the Claude desktop app on Windows and macOS.

How to use @dandeliongold/mcp-time?

Install the package via npm (npm install @dandeliongold/mcp-time), then add it to your claude_desktop_config.json with the command npx @dandeliongold/mcp-time. The server exposes two tools: getCurrentTime (no parameters) and getTimeDifference (requires a timestamp and optional interval of minutes or seconds).

Key features of @dandeliongold/mcp-time

  • Get current time in YYYY-MM-DD HH:mm:ss format.
  • Calculate time differences between timestamps and current time.
  • Intuitive positive/negative values for future/past times.
  • Support for both minutes and seconds intervals.
  • Cross-platform support for Windows and macOS.
  • Simple JSON-RPC interface with error handling.

Use cases of @dandeliongold/mcp-time

  • Get the current system time in a standardized ISO format for logging or display.
  • Compute how far in the past or future a given timestamp is, relative to now.
  • Integrate time-aware prompts or logic

评论

生产力 分类下的更多 MCP 服务器