type
status
date
slug
summary
tags
category
icon
password
功能简介
Time MCP Server 是一个提供时间和时区转换功能的模型上下文协议服务器。该服务器能让大语言模型获取当前时间信息,并使用 IANA 时区名称进行时区转换,还可自动检测系统时区。
主要功能特性
- 提供获取当前时间和时区转换的功能。
- 支持使用 IANA 时区名称进行操作。
- 可自动检测系统时区,也能手动指定。
快速开始指引
- uv 安装:使用 uv 时无需特定安装,可使用 uvx 直接运行 mcp-server-time。
- PIP 安装:通过
pip install mcp-server-time
安装,安装后使用python -m mcp_server_time
运行。
Tool 列表
get_current_time
:获取特定时区或系统时区的当前时间,需传入 IANA 时区名称作为参数。
convert_time
:进行时区之间的时间转换,需传入源 IANA 时区名称、24 小时制时间、目标 IANA 时区名称作为参数。
MCP配置
项目地址
https://github.com/modelcontextprotocol/servers/tree/main/src/time
标签
#模型上下文协议 #时间服务 #时区转换 #大语言模型
- Author:二师兄
- URL:https://cloudesx.com/article/time-mcp-server
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!