mcp-datetime

MIT License
7
  • Apple

local-only server

The server can only run on the client’s local machine because it depends on local resources.

mcp-날짜시간

영어 | 일본어

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

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

필수 조건

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

  • Python 3.12 이상
  • uv(Python 패키지 설치 프로그램)
  • uvx(Python 패키지 러너)

특징

  • ✨ 다양한 날짜/시간 형식 지원
  • 🇯🇵 일본어 지원
  • 📁 파일 이름 생성을 위한 최적화된 형식
  • 🌏 정확한 시간대 처리
  • 🔧 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秒일본어 날짜/시간
날짜시간_t2024-12-10T00:54:01T 구분 기호가 있는 DateTime
콤팩트20241210005401신분증을 위한 컴팩트한 형식
컴팩트_날짜20241210컴팩트 데이트만
컴팩트 타임005401컴팩트 타임만
파일 이름_md20241210005401.md마크다운 파일 이름
파일 이름_txt20241210005401.txt텍스트 파일 이름
파일 이름_로그20241210005401.log로그 파일 이름
이소2024-12-10T00:54:01+0900ISO 8601 형식
iso_basic20241210T005401+0900기본 ISO 형식
통나무2024-12-10 00:54:01.123456마이크로초를 포함한 로그 형식
log_compact20241210_005401컴팩트 로그 형식
시간00:54:01시간만
시간_jp00시 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 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

You must be authenticated.

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

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

  1. Prerequisites
    1. Features
      1. MCP Server Components
        1. Tools
      2. Usage with Claude Desktop App
        1. About Installation
          1. Basic Examples
            1. Supported Formats
              1. Debugging
                1. License
                  ID: y4oh57n2vq