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
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 |
---|---|
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
- 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
This server cannot be installed
A Model Context Protocol server that provides current time in ISO8601 format with timezone support.
Related MCP Servers
- AsecurityFlicenseAqualityA 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.Last updated -21Python
- AsecurityAlicenseAqualityA Model Context Protocol server for time manipulation tasks, enabling AI models to get the current date/time and calculate duration between timestamps.Last updated -2TypeScriptMIT License
- -securityFlicense-qualityA simple Model Context Protocol (MCP) server that provides date and time functionality in any timezone, along with user profiles and personalized greeting resources.Last updated -Python
- -securityFlicense-qualityA Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.Last updated -9JavaScript