Time MCP Server

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.

시간 MCP 서버

시간 및 시간대 변환 기능을 제공하는 모델 컨텍스트 프로토콜 서버입니다. 이 서버를 통해 LLM은 현재 시간 정보를 가져오고 IANA 시간대 이름을 사용하여 시간대 변환을 수행할 수 있으며, 시스템 시간대 자동 감지 기능을 사용할 수 있습니다.

사용 가능한 도구

  • get_current_time - 특정 시간대 또는 시스템 시간대의 현재 시간을 가져옵니다.
    • 필수 인수:
      • timezone (문자열): IANA 시간대 이름(예: 'America/New_York', 'Europe/London')
  • convert_time - 시간대 간의 시간을 변환합니다.
    • 필수 인수:
      • source_timezone (문자열): 소스 IANA 시간대 이름
      • time (문자열): 24시간 형식(HH:MM)의 시간
      • target_timezone (문자열): 대상 IANA 시간대 이름

설치

uv 사용(권장)

uv 사용하면 별도의 설치가 필요하지 않습니다. uvx 사용하여 mcp-server-time을 직접 실행합니다.

PIP 사용

또는 pip를 통해 time-mcp-local 설치할 수 있습니다.

지엑스피1

설치 후 다음을 사용하여 스크립트로 실행할 수 있습니다.

python -m time-mcp-local

구성

Claude.app에 대한 구성

Claude 설정에 추가:

"mcpServers": { "time": { "command": "uvx", "args": ["time-mcp-local"] } }
"mcpServers": { "time": { "command": "python", "args": ["-m", "time_mcp_local"] } }

Zed에 대한 구성

Zed settings.json에 다음을 추가합니다.

"context_servers": [ "mcp-server-time": { "command": "uvx", "args": ["time-mcp-local"] } ],
"context_servers": { "mcp-server-time": { "command": "python", "args": ["-m", "time_mcp_local"] } },

사용자 정의 - 시스템 시간대

기본적으로 서버는 시스템의 시간대를 자동으로 감지합니다. 설정 파일의 args 목록에 --local-timezone 인수를 추가하여 이 설정을 재정의할 수 있습니다.

예:

{ "command": "python", "args": ["-m", "time_mcp_local", "--local-timezone=America/New_York"] }

예시 상호작용

  1. 현재 시간 가져오기:
{ "name": "get_current_time", "arguments": { "timezone": "Europe/Warsaw" } }

응답:

{ "timezone": "Europe/Warsaw", "datetime": "2024-01-01T13:00:00+01:00", "is_dst": false }
  1. 시간대 간 시간 변환:
{ "name": "convert_time", "arguments": { "source_timezone": "America/New_York", "time": "16:30", "target_timezone": "Asia/Tokyo" } }

응답:

{ "source": { "timezone": "America/New_York", "datetime": "2024-01-01T12:30:00-05:00", "is_dst": false }, "target": { "timezone": "Asia/Tokyo", "datetime": "2024-01-01T12:30:00+09:00", "is_dst": false }, "time_difference": "+13.0h", }

디버깅

MCP 검사기를 사용하여 서버를 디버깅할 수 있습니다. UVX 설치의 경우:

npx @modelcontextprotocol/inspector uvx time-mcp-local

또는 특정 디렉토리에 패키지를 설치했거나 해당 디렉토리에서 개발 중인 경우:

cd path/to/servers/src/time npx @modelcontextprotocol/inspector uv run time-mcp-local

클로드에 대한 질문의 예

  1. "지금 몇 시야?" (시스템 시간대 사용)
  2. "도쿄는 지금 몇 시야?"
  3. "뉴욕이 오후 4시일 때, 런던은 몇 시입니까?"
  4. "도쿄 시간 오전 9시 30분을 뉴욕 시간으로 변환"

짓다

uv build --wheel uv publish --token xxx

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

IANA 시간대 이름을 사용하여 LLM이 현재 시간 정보를 얻고 시간대 변환을 수행할 수 있도록 하는 시간 및 시간대 변환 기능을 제공하는 모델 컨텍스트 프로토콜 서버입니다.

  1. Available Tools
    1. Installation
      1. Using uv (recommended)
      2. Using PIP
    2. Configuration
      1. Configure for Claude.app
      2. Configure for Zed
      3. Customization - System Timezone
    3. Example Interactions
      1. Debugging
        1. Examples of Questions for Claude
          1. build
            ID: kjg67t02vg