Skip to main content
Glama

MCP Time Server

by chrishayuk
MIT License
2

MCP 시간 서버

개요

MCP 시간 서버는 다양한 시간대에 걸쳐 고급 시간 관련 유틸리티를 제공하도록 설계된 정교한 Python 기반 마이크로서비스입니다. 현재 시간을 검색하고 다양한 글로벌 시간대 간의 시간을 변환하는 강력한 기능을 제공합니다.

프로젝트 세부 정보

  • 버전 : 0.1.1
  • Python 호환성 : Python 3.11+

특징

  • 현재 시간 검색 : 모든 IANA 시간대의 현재 시간을 가져옵니다.
  • 시간대 변환 : 서로 다른 시간대 간의 시간 변환
  • 종합적 검증 : Pydantic 모델을 사용한 강력한 입력 검증
  • 비동기 서버 아키텍처 : 효율적인 성능을 위해 asyncio로 구축됨
  • 유연한 구성 : 환경 변수 및 구성 파일을 통해 구성 가능

종속성

핵심 종속성:

  • mcp (>=1.6.0)
  • 피단틱 (>=2.11.2)
  • PyYAML (>=6.0.2)
  • 파이즈 (>=0.4.3)

개발 종속성:

  • 파이테스트(>=8.3.5)

설치

필수 조건

  • Python 3.11 이상
  • (선택사항) 가상 환경 권장

PyPI에서 설치

지엑스피1

소스에서 설치

  1. 저장소를 복제합니다.
git clone <repository-url> cd chuk-mcp-time-server
  1. 가상 환경 만들기:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
  1. 패키지를 설치하세요:
pip install . # Installs the package in editable mode

개발 설치

개발을 설정하려면:

pip install .[dev] # Installs package with development dependencies

서버 실행

명령줄 인터페이스

chuk-mcp-time-server

프로그래밍 방식 사용

from chuk_mcp_time_server.main import main if __name__ == "__main__": main()

환경 변수

  • NO_BOOTSTRAP : 구성 요소 부트스트래핑을 비활성화하도록 설정합니다.
  • 다른 구성 옵션은 구성 파일에서 설정할 수 있습니다.

사용 가능한 도구

1. 현재 시간 가져오기

입력 :

  • timezone : IANA 시간대 이름(예: 'America/New_York')

:

get_current_time('Europe/London')

반품 :

  • 지정된 시간대의 현재 시간
  • 시간대 세부 정보
  • 일광 절약 시간제(DST) 상태

2. 시간 변환

입력 :

  • source_timezone : 소스 시간대(IANA 형식)
  • time : HH(24시간) 형식의 시간
  • target_timezone : 대상 시간대(IANA 형식)

:

convert_time('America/New_York', '14:30', 'Europe/Paris')

반품 :

  • 소스 시간 세부 정보
  • 목표 시간 세부 정보
  • 시간대 간 시간 차이

개발

코드 포맷팅

  • 검정색은 코드 서식에 사용됩니다.
  • isort는 가져오기 정렬에 사용됩니다.
  • 줄 길이는 88자로 설정되었습니다.

테스트 실행

pytest

기여하다

  1. 저장소를 포크하세요
  2. 기능 브랜치를 생성합니다( git checkout -b feature/AmazingFeature )
  3. 코드가 포맷팅과 테스트를 통과하는지 확인하세요
  4. 변경 사항을 커밋합니다( git commit -m 'Add some AmazingFeature' )
  5. 브랜치에 푸시( git push origin feature/AmazingFeature )
  6. 풀 리퀘스트 열기

특허

MIT 라이센스

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

견고한 검증을 통해 현재 시간을 검색하고 다양한 글로벌 시간대로 변환하는 유틸리티를 제공하는 Python 마이크로서비스입니다.

  1. 개요
    1. 프로젝트 세부 정보
      1. 특징
        1. 종속성
          1. 설치
            1. 필수 조건
            2. PyPI에서 설치
            3. 소스에서 설치
            4. 개발 설치
          2. 서버 실행
            1. 명령줄 인터페이스
            2. 프로그래밍 방식 사용
          3. 환경 변수
            1. 사용 가능한 도구
              1. 현재 시간 가져오기
              2. 시간 변환
            2. 개발
              1. 코드 포맷팅
              2. 테스트 실행
            3. 기여하다
              1. 특허

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  Access the time in any timezone and get the current local time
                  Last updated -
                  1
                  9
                  Python
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.
                  Last updated -
                  Python
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.
                  Last updated -
                  Python
                • -
                  security
                  A
                  license
                  -
                  quality
                  A TypeScript server that provides time-related tools through the Model Context Protocol, allowing users to get current time in various timezones and convert times between different IANA timezones.
                  Last updated -
                  TypeScript
                  MIT License

                View all related MCP servers

                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/chrishayuk/chuk-mcp-time-server'

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