Skip to main content
Glama
yorifuji

MCP-WTIT

by yorifuji

MCP-WTIT (What Time Is It?)

A Model Context Protocol (MCP) server that provides current time in ISO8601 format with timezone support.

๐Ÿš€ Features

  • โฐ Get current time with detailed information (ISO8601, timestamp, timezone)

  • ๐ŸŒ Support for all IANA timezones

  • ๐ŸŽฏ Optional milliseconds precision

  • ๐Ÿ—๏ธ Clean Architecture design

  • ๐Ÿ“ฆ ESModules with TypeScript 5.6+

  • โœ… Comprehensive test coverage

  • ๐Ÿ”ง Type-safe with strict TypeScript configuration

Related MCP server: DateTime MCP Server

๐Ÿ“‹ Requirements

  • Node.js 18.0.0 or higher

  • npm or yarn

๐Ÿ› ๏ธ Installation

As a global package

# Install globally
npm install -g mcp-wtit

# Run the server
mcp-wtit

As a dependency

# Install as a dependency
npm install mcp-wtit

From source

# Clone the repository
git clone https://github.com/yorifuji/mcp-wtit.git
cd mcp-wtit

# Install dependencies
npm install

# Build the project
npm run build

# Run the server
npm start

๐Ÿšฆ Quick Start

For MCP Clients (Claude Desktop, etc.)

Add to your MCP client configuration:

If installed globally:

{
  "mcpServers": {
    "mcp-wtit": {
      "command": "mcp-wtit"
    }
  }
}

If installed locally:

{
  "mcpServers": {
    "mcp-wtit": {
      "command": "node",
      "args": ["./node_modules/mcp-wtit/dist/index.js"]
    }
  }
}

From source:

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

Debug with MCP Inspector

MCP Inspector provides a web-based interface to test and debug your MCP server:

# Build the project first
npm run build

# Run with MCP Inspector
npm run inspect

This will:

  1. Start the MCP Inspector on http://localhost:6274

  2. Automatically open your browser

  3. Connect to the MCP server with debug capabilities

In the Inspector, you can:

  • View available tools and their schemas

  • Test tool calls with different parameters

  • Monitor request/response communication

  • Debug server behavior in real-time

For Development

# Run in development mode
npm run dev

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Type check
npm run typecheck

๐Ÿ“š API Documentation

Tools

get_current_time

Get the current time with detailed information.

Parameters:

  • includeMilliseconds (boolean, optional): Include milliseconds in ISO8601 format (default: true)

  • timezone (string, optional): Timezone for the time (default: "UTC")

Response:

{
  "iso8601": "2024-01-15T10:30:45.123Z",
  "timestamp": 1705315845123,
  "timezone": "UTC"
}

๐Ÿ›๏ธ Architecture

This project follows Clean Architecture principles:

src/
โ”œโ”€โ”€ domain/          # Business logic (no dependencies)
โ”œโ”€โ”€ application/     # Use cases
โ”œโ”€โ”€ infrastructure/  # External interfaces (MCP)
โ”œโ”€โ”€ shared/          # Shared types and utilities
โ””โ”€โ”€ di/              # Dependency injection

See Architecture Documentation for details.

๐Ÿงช Testing

Tests are located in the tests/ directory and use Vitest:

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Generate coverage report
npm run test:coverage

๐Ÿ“ฆ Scripts

Script

Description

npm run build

Build the TypeScript project

npm run dev

Run in development mode

npm start

Run the built server

npm run inspect

Debug with MCP Inspector

npm test

Run tests

npm run test:watch

Run tests in watch mode

npm run test:coverage

Run tests with coverage report

npm run lint

Run ESLint

npm run lint:fix

Run ESLint and fix issues

npm run typecheck

Run TypeScript type checking

๐Ÿค Contributing

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'Add some amazing feature')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ฆ NPM Package

npm version License: MIT Node.js Version

Published on npm: mcp-wtit

Available Tools

1 tool
get_current_timeC

Get the current time with detailed information including ISO8601 format, timestamp, and timezone

ParametersJSON Schema
NameRequiredDescriptionDefault
includeMillisecondsNoInclude milliseconds in the ISO8601 format (default: true)
timezoneNoTimezone for the time (default: UTC). Examples: "UTC", "America/New_York", "Asia/Tokyo"UTC

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions the output format details, it doesn't describe whether this is a read-only operation, whether it has side effects, rate limits, authentication requirements, or error conditions. For a tool with zero annotation coverage, this represents a significant gap in behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that communicates the core functionality and output details. It's appropriately sized for this simple tool, though it could be slightly more structured by separating purpose from output format details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple time retrieval tool with 2 optional parameters and 100% schema coverage, the description is minimally adequate. However, without annotations or an output schema, it should ideally provide more context about the return format, error handling, and behavioral characteristics to be truly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the input schema already fully documents both parameters (includeMilliseconds and timezone) with descriptions and defaults. The tool description adds no additional parameter information beyond what's in the schema, so it meets the baseline expectation but doesn't provide extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose ('Get the current time') and specifies what information it provides ('detailed information including ISO8601 format, timestamp, and timezone'). It distinguishes itself from potential generic time tools by listing specific output details. However, without sibling tools, we cannot assess differentiation from alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or typical use cases. It simply states what the tool does without context about when it's appropriate or what problems it solves.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool update
    • First observedget_current_time

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct as it is the only one available.

Naming Consistency5/5

A single tool inherently has perfect naming consistency since there are no other tools to compare against. The name 'get_current_time' follows a clear verb_noun pattern.

Tool Count2/5

One tool is too few for most server purposes, as it severely limits functionality and scope. This feels thin and inadequate for handling time-related operations beyond just getting the current time.

Completeness2/5

The server's domain appears to be time-related, but with only a single tool for getting the current time, there are significant gaps. Missing operations like time conversion, scheduling, or date calculations make the surface severely incomplete.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.
    1
    14
    1
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to get current time information and perform timezone conversions using IANA timezone names.
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A lightweight Model Context Protocol server that provides current UTC time in various formats, including ISO 8601 and Unix timestamps. It is designed for seamless integration with Cursor IDE to provide consistent time-related capabilities across all development projects.
    MIT