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: Time Tools MCP Server
π Requirements
Node.js 18.0.0 or higher
npm or yarn
π οΈ Installation
As a global package
As a dependency
From source
π¦ Quick Start
For MCP Clients (Claude Desktop, etc.)
Add to your MCP client configuration:
If installed globally:
If installed locally:
From source:
Debug with MCP Inspector
MCP Inspector provides a web-based interface to test and debug your MCP server:
This will:
Start the MCP Inspector on http://localhost:6274
Automatically open your browser
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
π 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:
ποΈ Architecture
This project follows Clean Architecture principles:
See Architecture Documentation for details.
π§ͺ Testing
Tests are located in the tests/ directory and use Vitest:
π¦ Scripts
Script | Description |
| Build the TypeScript project |
| Run in development mode |
| Run the built server |
| Debug with MCP Inspector |
| Run tests |
| Run tests in watch mode |
| Run tests with coverage report |
| Run ESLint |
| Run ESLint and fix issues |
| Run TypeScript type checking |
π€ Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)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
Published on npm: mcp-wtit