Skip to main content
Glama
ZeparHyfar

mcp-datetime

by ZeparHyfar

mcp-날짜시간

파이썬 버전 MCP 버전특허

영어 | 일본어

Claude Desktop Application용 MCP 서버로 구현된 날짜/시간 형식 지정 서비스입니다. 다양한 형식의 날짜/시간 문자열 생성을 지원합니다.

참고 : 이 패키지는 macOS에서만 테스트되었습니다. Windows 호환성은 검증되지 않았습니다.

필수 조건

mcp-datetime을 사용하기 전에 다음 도구가 설치되어 있는지 확인하세요.

  • Python 3.12 이상

  • uv(Python 패키지 설치 프로그램)

  • uvx(Python 패키지 러너)

Related MCP server: DateTime MCP Server

특징

  • ✨ 다양한 날짜/시간 형식 지원

  • 🇯🇵 일본어 지원

  • 📁 파일 이름 생성을 위한 최적화된 형식

  • 🌏 정확한 시간대 처리

  • 🔧 Claude Desktop App과의 원활한 통합

MCP 서버 구성 요소

도구

서버는 하나의 도구를 구현합니다.

  • get_datetime : 다양한 형식으로 현재 날짜와 시간을 가져옵니다.

    • "format"을 필수 문자열 인수로 사용합니다.

    • 지정된 형식에 따라 형식이 지정된 날짜/시간 문자열을 반환합니다.

    • 표준, 일본어, ISO 형식을 포함한 다양한 형식 유형을 지원합니다.

Claude 데스크톱 앱 사용

다음을 구성 파일에 추가하세요.

구성 파일 위치(macOS): ~/Library/Application Support/Claude/claude_desktop_config.json

지엑스피1

설치에 관하여

패키지를 직접 설치해야 하는 경우(예: 개발 또는 소스 코드 검사) 다음 방법 중 하나를 사용할 수 있습니다.

  • PyPI에서 설치

    pip install mcp-datetime
  • GitHub 소스에서 설치

    git clone https://github.com/ZeparHyfar/mcp-datetime.git
    cd mcp-datetime
    pip install -e .
  • 수동 설치를 위한 claude_desktop_config.json 예제

    {
      "mcpServers": {
        "mcp-datetime": {
          "command": "python",
          "args": ["-m", "mcp_datetime"],
          "env": {
            "PYTHON": "/path/to/your/python"
          }
        }
      }
    }

    "/path/to/your/python"을 실제 Python 인터프리터 경로로 바꾸세요.

    예: "/usr/local/bin/python3" 또는 "/Users/username/.pyenv/versions/3.12.0/bin/python3"

기본 예제

  • 명령 형식

    # Standard datetime format
    call datetime-service.get_datetime {"format": "datetime"}
    # Result: 2024-12-10 00:54:01
    
    # Japanese format
    call datetime-service.get_datetime {"format": "datetime_jp"}
    # Result: 2024年12月10日 00時54分01秒
    
    # Filename format
    call datetime-service.get_datetime {"format": "filename_md"}
    # Result: 20241210005401.md
  • Claude 데스크톱 앱 프롬프트 예시

    • 사용자

      Please tell me the current time in date_slash format
    • 클로드

      I'll get the current date in date_slash format.
      
      The current date is 2024/12/12

지원되는 형식

형식 이름

예

설명

날짜

2024년 12월 10일

표준 날짜 형식

날짜_슬래시

2024년 12월 10일

슬래시가 있는 날짜

날짜_일본어

2024년 12월 10일

일본어 날짜 형식

날짜시간

2024-12-10 00:54:01

표준 날짜/시간

날짜시간_일본어

2024년 12월 10일 00시54분01秒

일본어 날짜/시간

날짜시간_t

2024-12-10T00:54:01

T 구분 기호가 있는 DateTime

콤팩트

20241210005401

신분증을 위한 컴팩트한 형식

컴팩트_날짜

20241210

컴팩트 데이트만

컴팩트 타임

005401

컴팩트 타임만

파일 이름_md

20241210005401.md

마크다운 파일 이름

파일 이름_txt

20241210005401.txt

텍스트 파일 이름

파일 이름_로그

20241210005401.log

로그 파일 이름

이소

2024-12-10T00:54:01+0900

ISO 8601 형식

iso_basic

20241210T005401+0900

기본 ISO 형식

통나무

2024-12-10 00:54:01.123456

마이크로초를 포함한 로그 형식

log_compact

20241210_005401

컴팩트 로그 형식

시간

00:54:01

시간만

시간_jp

00시 54분 01초

일본 시간 형식

디버깅

MCP 서버는 stdio를 통해 실행되므로 디버깅이 어려울 수 있습니다. MCP Inspector 사용을 권장합니다.

  • PyPI 패키지 사용

    npx @modelcontextprotocol/inspector uvx mcp-datetime
  • GitHub에서 다운로드한 소스 코드 사용

    git clone https://github.com/ZeparHyfar/mcp-datetime.git
    npx @modelcontextprotocol/inspector uvx --directory ./mcp-datetime run mcp-datetime

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

Available Tools

1 tool
get_datetimeA

Get current date and time in various formats

NameRequiredDescriptionDefault
formatYes Available formats: - date: 2024-12-10 - date_slash: 2024/12/10 - date_jp: 2024年12月10日 - datetime: 2024-12-10 00:54:01 - datetime_jp: 2024年12月10日 00時54分01秒 - datetime_t: 2024-12-10T00:54:01 - compact: 20241210005401 - compact_date: 20241210 - compact_time: 005401 - filename_md: 20241210005401.md - filename_txt: 20241210005401.txt - filename_log: 20241210005401.log - iso: 2024-12-10T00:54:01+0900 - iso_basic: 20241210T005401+0900 - log: 2024-12-10 00:54:01.123456 - log_compact: 20241210_005401 - time: 00:54:01 - time_jp: 00時54分01秒

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description must carry the burden of behavioral disclosure. It implies a read-only operation but does not explicitly state that it has no side effects or that it returns the current server time. The description is adequate but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that efficiently communicates the tool's function without unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one well-documented parameter and no output schema, the description covers the essential information. It is complete for its complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single parameter, which already provides extensive detail on the 'format' options. The description adds no additional meaning beyond what the schema already conveys.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action ('Get') and resource ('current date and time in various formats'), providing a specific and unambiguous purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. Since there are no sibling tools listed, this is a minor gap, but the description does not include any contextual usage instructions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool update
    • First observedget_datetime

TDQS

B3.2/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'get_datetime' has a clear and distinct purpose that cannot be mistaken for any other tool in this set.

Naming Consistency5/5

The naming pattern is trivially consistent as there is only one tool. The tool name 'get_datetime' follows a clear verb_noun convention, and with no other tools to compare against, it maintains perfect consistency within the set.

Tool Count2/5

A single tool for a datetime server is too minimal for the apparent scope. While 'get_datetime' provides current date and time, a datetime domain typically includes operations like formatting, parsing, timezone conversion, or date arithmetic, making this set feel incomplete and underpowered.

Completeness1/5

The tool surface is severely incomplete for a datetime server. It only offers getting the current datetime in various formats, lacking essential operations such as parsing strings to dates, converting timezones, calculating date differences, or manipulating dates (e.g., adding days). This will cause significant agent failures in datetime-related tasks.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that provides tools to get the current date and time in various formats, supporting different timezones and custom formatting options.
    1
    10 npm
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    A general-purpose MCP server providing time-related utilities such as fetching current time, Unix timestamps, and formatting services. It supports both local stdio and remote SSE communication modes for versatile AI client integration.
    3
    -
  • A
    license
    A
    quality
    D
    maintenance
    A lightweight MCP server providing comprehensive date, time, and day-of-week information. It supports relative time calculations, timezone conversions, and detailed calendar metadata like week numbers and quarters.
    5
    1
    MIT