Skip to main content
Glama
pinkpixel-dev

DateTime MCP Server

CHANGELOG.mdโ€ข4.66 kB
# ๐Ÿ“ Changelog All notable changes to the **@pinkpixel/datetime-mcp** project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.2.0] - 2025-09-06 ๐ŸŒ ### Added - ๐ŸŒ **Comprehensive Timezone Support**: Full IANA timezone support with configurable defaults - โš™๏ธ **Optional Tool Parameter**: `timezone` parameter for per-request timezone specification - ๐Ÿ”ง **Environment Configuration**: Set default timezone via `TZ` environment variable - โœ… **Robust Validation**: Timezone validation using `Intl.supportedValuesOf` with fallback - ๐Ÿ“š **date-fns-tz Integration**: Professional timezone handling and formatting library - ๐ŸŒ **Smart Fallbacks**: Automatic fallback to UTC when no timezone is configured - ๐Ÿ“ **Enhanced Documentation**: Comprehensive timezone examples and configuration guides ### Enhanced - ๐Ÿ”ง **Tool Schema**: Updated to accept optional timezone parameter with clear descriptions - ๐Ÿ“ค **Response Format**: Now includes timezone information in response messages - โš ๏ธ **Error Handling**: Improved error messages for invalid timezone identifiers - ๐Ÿ“Š **Type Safety**: Full TypeScript interfaces for configuration and validation ### Technical Details - Built with `date-fns-tz` v3.0.0 for robust timezone operations - Maintains full backward compatibility - existing usage unchanged - Uses `Intl.supportedValuesOf('timeZone')` for modern timezone validation - ISO-compatible datetime formatting with timezone offset information - Comprehensive error handling with helpful user guidance ### Configuration Examples ```json // Basic usage (UTC default) { "mcpServers": { "datetime": { "command": "npx", "args": ["-y", "@pinkpixel/datetime-mcp"] } } } // With default timezone { "mcpServers": { "datetime": { "command": "npx", "args": ["-y", "@pinkpixel/datetime-mcp"], "env": { "TZ": "America/New_York" } } } } ``` --- ## [0.1.0] - 2025-09-06 ๐ŸŽ‰ ### Added - โœจ Initial release of datetime-mcp MCP server - โฐ `get_current_datetime` tool that returns current server date and time - ๐Ÿ“ฆ TypeScript implementation with MCP SDK 0.6.0 - ๐Ÿš€ NPM package publication as `@pinkpixel/datetime-mcp` - ๐ŸŽฏ Smithery platform integration for easy installation - ๐Ÿณ Docker containerization support - ๐Ÿ“– Comprehensive README with installation instructions - ๐Ÿ”ง MCP Inspector integration for debugging - โš–๏ธ MIT License - ๐Ÿ—๏ธ TypeScript build system with ES modules support - ๐Ÿ“‹ Package configuration for global CLI usage ### Features - **Zero Configuration**: No setup required, works out of the box - **ISO 8601 Format**: Returns standardized datetime strings - **MCP Compliance**: Follows Model Context Protocol specifications - **Cross-Platform**: Works on Windows, macOS, and Linux - **Multiple Installation Options**: NPM, Smithery, and local development ### Technical Details - Built with `@modelcontextprotocol/sdk` v0.6.0 - TypeScript 5.3.3 with strict mode enabled - Node.js 20+ support with ES2022 target - Stdio transport for broad client compatibility - Proper error handling with McpError --- ## Release Notes ### v0.1.0 - Initial Launch ๐Ÿš€ This is the first public release of the datetime-mcp server. The server provides a simple but essential functionality for LLMs to access current date and time information. Perfect for: - ๐Ÿ“… Date-aware AI interactions - โฑ๏ธ Time-sensitive AI applications - ๐Ÿค– LLM context enhancement - ๐Ÿ”ง MCP server development reference ### Installation ```bash # Via NPM npm install -g @pinkpixel/datetime-mcp # Via Smithery npx -y @smithery/cli install @pinkpixel-dev/datetime-mcp --client claude ``` ### Compatibility - โœ… Claude Desktop - โœ… Any MCP-compatible client - โœ… Node.js 20+ - โœ… Windows, macOS, Linux --- ## Upcoming Features ๐Ÿ”ฎ Future versions may include: - ๐Ÿ“… **Custom Date Formats**: Flexible date/time formatting options beyond ISO 8601 - ๐Ÿ• **Time Calculations**: Utilities for time arithmetic and duration calculations - ๐Ÿ“Š **Datetime Parsing**: Tools to parse and validate datetime strings - ๐ŸŒ **Locale Formatting**: Locale-aware datetime display options - ๐Ÿ—บ๏ธ **Timezone Lists**: Tool to list available timezones and their details - โฑ๏ธ **Multiple Timezones**: Single call to get time in multiple timezones - ๐Ÿ“ **Business Hours**: Tools for business day and hour calculations --- *Made with โค๏ธ by Pink Pixel* *For updates and support, visit: [pinkpixel.dev](https://pinkpixel.dev)*

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinkpixel-dev/datetime-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server