1. Conduid
  2. Developer Tools
  3. Time
MCP server · Developer Tools

Time

MCP Server for Timezone tools with SSE and Streamable

Unclaimed Apache-2.0 last commit 11 months ago devtools
51Fair

Scored 2 days ago · breakdown

About Time

Time is an MCP server published by hspedro in the Developer Tools category: mCP Server for Timezone tools with SSE and Streamable. It has been installed 0 times through Conduid.

The repository has 2 stars and 1 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx mcp-server-time

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Time

Powered by Claude · Grounded in docs

I know everything about Time. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.1v0.1.1 · 29 Sep 2025Full Changelog**: https://github.com/hspedro/mcp-server-time/compare/v0.1.0...v0.1.1
v0.1.0v0.1.0 · 29 Sep 2025Full Changelog**: https://github.com/hspedro/mcp-server-time/commits/v0.1.0

README

MCP Time Server

Go Reference License

A Model Context Protocol (MCP) server providing time and timezone tools. Built with Go and the official MCP Go SDK, supporting both SSE and Streamable transports.

Features

🕐 Time Operations

  • Current Time: Get current time in any timezone with flexible formatting
  • Time Formatting: Convert timestamps between different formats (RFC3339, Unix, custom layouts)
  • Time Parsing: Parse time strings with auto-detection or explicit formats
  • Timezone Info: Comprehensive timezone information including DST transitions

🌐 Protocol Support

  • SSE Transport: Real-time Server-Sent Events for persistent connections
  • Streamable Transport: HTTP request/response for stateless operations
  • MCP Compliant: Full compatibility with MCP protocol v0.8.0

📊 Observability

  • Prometheus Metrics: Detailed metrics for requests, operations, and errors
  • Structured Logging: JSON and console logging with configurable levels
  • Health Checks: Kubernetes-ready health endpoints

🏗️ Production Ready

  • Multi-Architecture: ARM64 and AMD64 Docker images
  • Graceful Shutdown: Proper signal handling and connection draining
  • Configuration: YAML config with environment variable overrides
  • Security: Non-root container execution

Quick Start

Using Docker

# Run with default configuration
docker run -p 8080:8080 -p 9080:9080 ghcr.io/hspedro/mcp-server-time:latest

# Run with custom configuration
docker run -p 8080:8080 -v $(pwd)/config.yaml:/app/config.yaml ghcr.io/hspedro/mcp-server-time:latest

Using Go

# Clone and build
git clone https://github.com/hspedro/mcp-server-time.git
cd mcp-server-time
make build

# Run locally
./mcp-server-time

MCP Tools

get_time

Get current time with optional timezone and format specification.

Input:

{
  "timezone": "America/New_York",  // Optional, defaults to UTC
  "format": "RFC3339"              // Optional, defaults to RFC3339
}

Output:

{
  "current_time": "2023-12-25T10:30:45-05:00",
  "timezone": "America/New_York",
  "format": "RFC3339",
  "timestamp_utc": "2023-12-25T15:30:45Z",
  "unix_timestamp": 1703520645
}

format_time

Format a timestamp using custom formats with optional timezone conversion.

Input:

{
  "timestamp": "2023-12-25T15:30:45Z",  // Required: string or number
  "format": "Unix",                    // Required: output format
  "timezone": "America/New_York"       // Optional: target timezone
}

parse_time

Parse time strings with auto-detection or explicit format specification.

Input:

{
  "time_string": "December 25, 2023 3:30 PM",  // Required
  "format": "",                                // Optional: auto-detect if empty
  "timezone": "America/New_York"               // Optional: assume timezone
}

timezone_info

Get comprehensive timezone information including DST transitions.

Input:

{
  "timezone": "America/New_York",              // Required
  "reference_time": "2023-12-25T15:30:45Z"    // Optional: defaults to now
}

Configuration

YAML Configuration

server:
  name: "mcp-server-time"
  version: "1.0.0"
  host: "localhost"
  port: 8080
  graceful_shutdown_timeout: 30s

time:
  default_timezone: "UTC"
  default_format: "RFC3339"
  supported_formats:
    - "RFC3339"
    - "RFC3339Nano"
    - "Unix"
    - "UnixMilli"
    - "UnixMicro"
    - "UnixNano"
    - "Layout"

logging:
  level: "info"        # debug, info, warn, error, fatal
  format: "json"       # json, console

metrics:
  enabled: true
  port: 9080
  path: "/metrics"

Environment Variables

# Server configuration
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8080

# Time service configuration
MCP_TIME_DEFAULT_TIMEZONE=America/New_York
MCP_TIME_DEFAULT_FORMAT=RFC3339

# Logging configuration
MCP_LOGGING_LEVEL=debug
MCP_LOGGING_FORMAT=console

# Metrics configuration
MCP_METRICS_ENABLED=true
MCP_METRICS_PORT=9080

Endpoints

MCP Transports

  • SSE: GET /sse - Server-Sent Events transport
  • Streamable: POST /streamable - HTTP request/response transport
  • MCP: POST /mcp - Alias for streamable transport

Monitoring

  • Health: GET /health - Health check endpoint
  • Metrics: GET /metrics - Prometheus metrics (if enabled)

Development

Prerequisites

  • Go 1.23+
  • Docker (optional)
  • Make

Development Commands

# Format code
make fmt

# Run linters
make lint

# Run tests
make test

# Generate mocks
make mocks

# Build binary
make build

# Run locally
make run

# Complete verification
make verify

MCP Client Integration

Cursor IDE

Add to your MCP configuration:

{
  "mcpServers": {
    "time": {
      "type": "url",
      "url": "http://localhost:8080/streamable",
      "transport": "streamable"
    }
  }
}

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

README mirrored from the source repository 2 days ago. The original is authoritative.

Questions

About Time

How do I install Time?

Run npx mcp-server-time, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Time safe to use with an AI agent?

Its trust score is 51 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Time still maintained?

The last commit was 11 months ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.