WhenjaySun

MCP Time Server

Community WhenjaySun
Updated

mcp-server-time

MCP Time Server

A simple Model Context Protocol (MCP) server that provides the current time.

Features

  • Get Current Time: Returns the current time in a specified timezone (default: Asia/Shanghai).
  • Timezone Support: Supports standard IANA timezone names (e.g., "UTC", "America/New_York").
  • Transports: Supports both stdio (default) and HTTP Streamable Protocol.

Installation

pip install .

Usage

1. Stdio Transport (Default)

Run the server directly:

mcp-server-time

Or with uv:

uv run mcp-server-time

2. HTTP Streamable Transport

This server supports the MCP HTTP Streamable Protocol. You can run it using uvicorn:

uvicorn server:app --port 8000

The server will be available at http://localhost:8000.

Tools

get_current_time

Returns the current time in the specified timezone.

Arguments:

  • timezone (string, optional): The timezone to get the time for (default: "Asia/Shanghai").

MCP Server · Populars

MCP Server · New

    sjkim1127

    Reversecore_MCP

    A security-first MCP server empowering AI agents to orchestrate Ghidra, Radare2, and YARA for automated reverse engineering.

    Community sjkim1127
    sebringj

    Autonomo MCP

    Tired of 'it works' lies? Autonomo MCP makes your AI prove it—on real hardware, right in your editor.

    Community sebringj
    softerist

    Heuristic MCP Server

    Enhanced MCP server for semantic code search with call-graph proximity, recency ranking, and find-similar-code. Built for AI coding assistants.

    Community softerist
    arm

    Arm MCP Server

    Arm's MCP server

    Community arm
    bobmatnyc

    MCP Vector Search

    CLI-first semantic code search with MCP integration. Modern, fast, and intelligent code search powered by ChromaDB and AST parsing.

    Community bobmatnyc