npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dandeliongold/mcp-time

v1.2.4

Published

MCP server for getting current time in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date

Readme

@dandeliongold/mcp-time

An MCP server for getting current time in ISO format (YYYY-MM-DD HH:mm:ss) using JavaScript Date. This server works with the Claude desktop app on both Windows and macOS.

Components

Tools

  1. getCurrentTime

    • Returns the current time in ISO format
    • No input parameters required
    • Returns:
      {
        "time": "2024-02-08 11:04:33",
        "success": true
      }

    Example JSON-RPC request:

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getCurrentTime"
    }

    Example JSON-RPC response:

    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "time": "2024-02-08 11:04:33",
        "success": true
      }
    }
  2. getTimeDifference

    • Calculates the time difference between a given timestamp and the current time
    • Parameters:
      • timestamp: ISO format timestamp (YYYY-MM-DD HH:mm:ss)
      • interval: 'minutes' (default) or 'seconds'
    • Returns a signed difference value following this convention:
      • Positive values (+) indicate future timestamps ("in X minutes/seconds")
      • Negative values (-) indicate past timestamps ("X minutes/seconds ago")
      • Zero (0) indicates same timestamp

    Example JSON-RPC request:

    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getTimeDifference",
      "params": {
        "timestamp": "2024-02-08 12:30:00",
        "interval": "minutes"
      }
    }

    Example JSON-RPC responses:

    // For a past timestamp (30 minutes ago)
    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "difference": -30,
        "interval": "minutes",
        "inputTimestamp": "2024-02-08 12:30:00",
        "currentTime": "2024-02-08 13:00:00"
      }
    }
    
    // For a future timestamp (in 45 minutes)
    {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "difference": 45,
        "interval": "minutes",
        "inputTimestamp": "2024-02-08 13:45:00",
        "currentTime": "2024-02-08 13:00:00"
      }
    }

Features

  • 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
  • Consistent ISO-style date formatting
  • Error handling with detailed error messages

Installation

npm install @dandeliongold/mcp-time

Usage with Claude Desktop

Add to your claude_desktop_config.json:

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

Development

  1. Clone the repository
  2. Install dependencies
    npm install
  3. Run tests
    npm test
  4. Start development server
    npm run dev

License

MIT License - see LICENSE for details