Skip to main content
Glama

Time Server

by clssck

时间服务器

微胶囊钙Python执照

使用模型上下文协议标准构建的用于时区转换和时间相关操作的 MCP 服务器。

目录

特征

  • 获取任何时区的当前时间
  • 在时区之间转换时间
  • 采用 MCP 协议标准构建
  • 类型安全的 Python 实现
  • RESTful API 端点
  • 全面的错误处理
  • 时区数据库集成

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装时间服务器:

npx -y @smithery/cli install @clssck/mcp-time-server --client claude

手动安装

pip install .

用法

启动服务器:

python -m time_server

API 文档

工具

get_current_time

获取特定时区的当前时间

参数:

  • timezone :字符串-IANA 时区标识符(例如“America/New_York”)

返回:

  • ISO 8601 格式的当前时间
convert_time

在时区之间转换时间

参数:

  • time :字符串-以 ISO 8601 格式转换的时间
  • from_timezone :string - 源时区
  • to_timezone :字符串-目标时区

返回:

  • 转换为 ISO 8601 格式的时间

发展

安装开发依赖项:

pip install -e .[dev]

运行测试:

pytest

检查代码质量:

ruff check . mypy src

行为守则

本项目遵守贡献者契约行为准则。参与本项目即表示您同意遵守本准则。

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

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 服务器通过 RESTful API 端点提供时区转换和时间相关操作,具有全面的错误处理和时区数据库集成功能。

  1. 目录
    1. 特征
      1. 安装
        1. 通过 Smithery 安装
        2. 手动安装
      2. 用法
        1. API 文档
          1. 工具
        2. 发展
          1. 行为守则
            1. 执照

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                An MCP server that allows checking local time on the client machine or current UTC time from an NTP server
                Last updated -
                2
                18
                Python
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A lightweight mcp server that tells you exactly what time is it based on your IP.
                Last updated -
                8
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                An MCP server that allows users to get global time information via Interzoid's GetGlobalTime API, enabling access to time data across different regions through natural language.
                Last updated -
                Python
              • -
                security
                F
                license
                -
                quality
                A simple Model Context Protocol (MCP) server that provides date and time functionality in any timezone, along with user profiles and personalized greeting resources.
                Last updated -
                Python
                • Linux
                • Apple

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

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