JUHE API Marketplace
yorifuji avatar
MCP Server

MCP-WTIT

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

0
GitHub Stars
11/22/2025
Last Updated
MCP Server Configuration
1{
2 "name": "mcp-wtit",
3 "command": "mcp-wtit"
4}
JSON4 lines
  1. Home
  2. MCP Servers
  3. mcp-wtit

README Documentation

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

๐Ÿ“‹ 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

ScriptDescription
npm run buildBuild the TypeScript project
npm run devRun in development mode
npm startRun the built server
npm run inspectDebug with MCP Inspector
npm testRun tests
npm run test:watchRun tests in watch mode
npm run test:coverageRun tests with coverage report
npm run lintRun ESLint
npm run lint:fixRun ESLint and fix issues
npm run typecheckRun 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

  • Built for the Model Context Protocol
  • Inspired by Clean Architecture principles

๐Ÿ“ฆ NPM Package

npm version

Published on npm: mcp-wtit

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright ยฉ 2025 - All rights reserved