mcp-time

查看源码
2025-5-11
Words 182Read Time 1 min
Score:85

提供当前时间、日期和日期时间信息的MCP服务,支持多时区。

Python

MCP 时间服务

MCP 时间服务是一个基于 FastMCP 的服务,提供当前时间、日期以及日期时间信息,并支持多种时区。

可用工具

  • current_time: 返回指定时区的当前时间
  • current_date: 返回指定时区的当前日期
  • current_datetime: 返回指定时区的当前日期和时间
所有工具均支持可选的 timezone 参数(默认值为 'America/New_York')。

开发指南

  1. 安装依赖:
  1. 启动服务器:
服务器将在 http://127.0.0.1:8000 上启动。

部署说明

本服务已配置为可在 Render 平台上部署。render.yaml 文件包含了必要的配置信息。
上一篇
line-bot-mcp-server
下一篇
mcp-odds-api