Sponsored by Deepsite.site

Time

Created By
TheoBrigitte5 months ago
The Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling backend, allowing for complex time manipulations through natural language interactions.
Content

MCP time logo

Github release Github action

Time MCP Server

A Model Context Protocol server that enables AI assistants to interact with time

Overview

The Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling backend, allowing for complex time manipulations through natural language interactions.

Features

  • Time Manipulation: Get current time, convert between timezones, and add or subtract durations.
  • Natural Language Parsing: Understands relative time expressions like "yesterday" or "next month".
  • Time Comparison: Compare two different times.
  • Flexible Formatting: Supports a wide variety of predefined and custom time formats.
  • MCP Compliance: Fully compatible with the Model Context Protocol standard.
  • Multiple Transports: Can be run using stdio for simple integrations or as an HTTP stream server for network access.

Installation

This MCP server can be integrated with various AI assistants that support the Model Context Protocol.

On Cursor

Use the link below to install directly in Cursor.

Add to Cursor

Using Docker

Copy the following JSON configuration into your MCP client to run the server using Docker:

{
  "mcpServers": {
    "time": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "theo01/mcp-time:latest"
      ]
    }
  }
}

Using binary

Copy the following JSON configuration into your MCP client to run the server using the binary:

{
  "mcpServers": {
    "time": {
      "command": "mcp-time"
    }
  }
}

You need to install the mcp-time binary on your system. You can do this in several ways:

Install from releases

You can download the latest binary from the releases page.

# Replace OS-ARCH with your operating system and architecture (e.g., linux-amd64, darwin-arm64)
curl -Lo mcp-time https://github.com/TheoBrigitte/mcp-time/releases/latest/download/mcp-time.OS-ARCH
install -D -m 755 ./mcp-time ~/.local/bin/mcp-time

Install with Go

go install github.com/TheoBrigitte/mcp-time/cmd/mcp-time@latest

This will install the mcp-time binary in your $GOPATH/bin directory.

Building from Source

git clone https://github.com/TheoBrigitte/mcp-time.git
cd mcp-time
make install

This will build and install the mcp-time binary in the ~/.local/bin directory.

Usage

Basic Usage

Start the MCP server with the default stdio transport:

mcp-time

Start the MCP server with the stream transport:

mcp-time --transport stream --address "http://localhost:8080/mcp"

Advanced Usage

The server supports several command-line options for more advanced configurations:

$ mcp-time --help
An MCP (Model Context Protocol) server which provides utilities to work with time and dates.

Usage:
  mcp-time [flags]

Flags:
      --address string     Listen address for Stream HTTP Server (only for --transport stream) (default "http://localhost:8080/mcp")
  -h, --help               help for mcp-time
      --log-file string    Path to log file (logs is disabled if not specified)
  -t, --transport string   Transport layer: stdio, stream. (default "stdio")
      --version            Print version information and exit

Available Tools

relative_time

Get a time based on a relative natural language expression.

Parameters:

  • text (required): The natural language expression (e.g., yesterday, 5 minutes ago, next month).
  • time (optional): A reference time for the relative expression. Defaults to current time.
  • timezone (optional): The target timezone for the output.
  • format (optional): The output format for the time.

convert_timezone

Convert a given time between timezones.

Parameters:

  • time (required): The input time string. It can be in various formats.
  • input_timezone (optional): The timezone of the input time.
  • output_timezone (optional): The target timezone for the output.
  • format (optional): The output format for the time.

current_time

Get the current time.

Parameters:

  • format (optional): The output format for the time. Can be a predefined format (e.g., RFC3339, Kitchen) or a custom Go layout.
  • timezone (optional): The target timezone in IANA format (e.g., America/New_York). Defaults to UTC.

add_time

Add or subtract a duration to a given time.

Parameters:

  • time (required): The input time string.
  • duration (required): The duration to add or subtract (e.g., 2h30m, -1h).
  • timezone (optional): The target timezone for the output.
  • format (optional): The output format for the time.

compare_time

Compare two times.

Parameters:

  • time_a (required): The first time to compare.
  • time_b (required): The second time to compare.

Returns:

  • -1 if time_a is before time_b.
  • 0 if time_a is equal to time_b.
  • 1 if time_a is after time_b.

Credits

Server Config

{
  "mcpServers": {
    "time": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "theo01/mcp-time:latest"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp