Skip to main content
Glama

mcp-날짜시간

파이썬 버전 MCP 버전특허

영어 | 일본어

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

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

필수 조건

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

  • Python 3.12 이상

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

  • uvx(Python 패키지 러너)

Related MCP server: Time MCP

특징

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

  • 🇯🇵 일본어 지원

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

  • 🌏 정확한 시간대 처리

  • 🔧 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 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

One-click Deploy
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZeparHyfar/mcp-datetime'

If you have feedback or need assistance with the MCP directory API, please join our Discord server