Price Per TokenPrice Per Token

DateTime Context Provider

by pinkpixel-dev

GitHub 3 757 uses
0

About

DateTime Context Provider is a utility MCP server that supplies LLMs with accurate current date and time information from the system clock. It enables AI agents to access precise temporal data with comprehensive timezone support. Key features of DateTime Context Provider: - Retrieve the current datetime for any IANA timezone (e.g., America/New_York, Europe/London, Asia/Tokyo). - Configurable default timezone via environment variables for consistent results. - Automatic fallback to UTC when no timezone is specified. - ISO-compatible datetime formatting with full timezone information. - Robust timezone validation and helpful error messages for invalid inputs.

README

@pinkpixel/datetime-mcp MCP Server ⏰

[](https://smithery.ai/server/@pinkpixel-dev/datetime-mcp)

A powerful MCP server that provides LLMs with current date and time context with comprehensive timezone support. Get the current time in any timezone, with configurable defaults and intelligent fallbacks.

This is a TypeScript-based MCP server built with the Model Context Protocol that demonstrates timezone-aware datetime functionality.

Features ✨

Tools

  • get_current_datetime: Returns the current date and time with full timezone support
  • - Optional timezone parameter: Specify any IANA timezone (e.g., America/New_York, Europe/London, Asia/Tokyo) - Configurable defaults: Set server default timezone via environment variables - Smart fallbacks: Automatically falls back to UTC if no timezone is configured - Robust validation: Validates timezone identifiers and provides helpful error messages - ISO-compatible format: Returns properly formatted datetime strings with timezone information

    Installation 🚀

    There are two ways to install and configure this MCP server:

    Installing via Smithery

    To install datetime-mcp for Claude Desktop automatically via Smithery:

    npx -y @smithery/cli install @pinkpixel-dev/datetime-mcp --client claude
    

    1. Installation from NPM (Recommended)

    Install the package globally using npm:

    npm install -g @pinkpixel/datetime-mcp
    

    Then, add the following configuration to your MCP client's settings file.

    #### Basic Configuration (Uses UTC)

    {
      "mcpServers": {
        "datetime": {
          "command": "npx",
          "args": [
            "-y",
            "@pinkpixel/datetime-mcp"
          ]
        }
      }
    }
    

    #### Configuration with Default Timezone

    {
      "mcpServers": {
        "datetime": {
          "command": "npx",
          "args": [
            "-y",
            "@pinkpixel/datetime-mcp"
          ],
          "env": {
            "TZ": "America/New_York"
          }
        }
      }
    }
    

    2. Local Development Setup

    If you want to run the server directly from a cloned repository for development or testing:

    1. Clone the repository:

        # git clone https://github.com/pinkpixel/datetime-mcp.git
        cd datetime-mcp
        
    2. Install dependencies:
        npm install
        
    3. Build the server:
        npm run build
        
    4. Add the following configuration to your MCP client's settings file, making sure to replace /path/to/datetime-mcp with the actual absolute path to where you cloned the repository:

    #### Basic Local Configuration

        {
          "mcpServers": {
            "datetime-local": {
              "command": "node",
              "args": ["/path/to/datetime-mcp/build/index.js"],
            }
          }
        }
        

    #### Local Configuration with Timezone

        {
          "mcpServers": {
            "datetime-local": {
              "command": "node",
              "args": ["/path/to/datetime-mcp/build/index.js"],
              "env": {
                "TZ": "Europe/London"
              }
            }
          }
        }
        
    *(Restart your MCP client application after updating the settings)*

    🌍 Timezone Configuration Examples

    Common Timezone Identifiers

    #### United States

    "TZ": "America/New_York"      // Eastern Time (EST/EDT)
    "TZ": "America/Chicago"       // Central Time (CST/CDT)
    "TZ": "America/Denver"        // Mountain Time (MST/MDT)
    "TZ": "America/Los_Angeles"   // Pacific Time (PST/PDT)
    "TZ": "America/Phoenix"       // Arizona (no DST)
    "TZ": "America/Anchorage"     // Alaska Time
    "TZ": "America/Honolulu"      // Hawaii Time
    

    #### Europe

    "TZ": "Europe/London"         // GMT/BST (Greenwich Mean Time)
    "TZ": "Europe/Paris"          // CET/CEST (Central European Time)
    "TZ": "Europe/Berlin"         // CET/CEST
    "TZ": "Europe/Rome"           // CET/CEST
    "TZ": "Europe/Madrid"         // CET/CEST
    "TZ": "Europe/Amsterdam"      // CET/CEST
    "TZ": "Europe/Stockholm"      // CET/CEST
    "TZ": "Europe/Moscow"         // MSK (Moscow Time)
    

    #### Asia

    "TZ": "Asia/Tokyo"            // JST (Japan Standard Time)
    "TZ": "Asia/Shanghai"         // CST (China Standard Time)
    "TZ": "Asia/Seoul"            // KST (Korea Standard Time)
    "TZ": "Asia/Kolkata"          // IST (India Standard Time)
    "TZ": "Asia/Dubai"            // GST (Gulf Standard Time)
    "TZ": "Asia/Singapore"        // SGT (Singapore Time)
    "TZ": "Asia/Bangkok"          // ICT (Indochina Time)
    

    #### Other Regions

    "TZ": "Australia/Sydney"      // AEST/AEDT (Australian Eastern)
    "TZ": "Australia/Melbourne"   // AEST/AEDT
    "TZ": "Australia/Perth"       // AWST (Australian Western)
    "TZ": "Pacific/Auckland"      // NZST/NZDT (New Zealand)
    "TZ": "Africa/Cairo"          // EET (Eastern European Time)
    "TZ": "America/Sao_Paulo"     // BRT (Brazil Time)
    "TZ": "UTC"                   // Coordinated Universal Time
    

    ###

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81