Back to MCP directory
publicPublicdnsLocal runtime

MCP-timeserver

一个提供日期时间信息的MCP服务器

article

README

🚀 MCP-时间服务器

MCP-时间服务器是一个简单的MCP服务器,它能够向代理系统和聊天REPL提供日期时间信息,为用户获取特定时区的时间提供便利。

MCP-timeserver MCP服务器

🚀 快速开始

📦 安装指南

使用以下JSON配置进行安装:

{
  "mcpServers": {
    "MCP-timeserver": {
      "command": "uvx",
      "args": ["MCP-timeserver"]
    }
  }
}

✨ 主要特性

🔍 资源

该服务器实现了一个简单的datetime URI方案,可用于获取指定时区的当前日期和时间,例如:

datetime://Africa/Freetown/now
datetime://Europe/London/now
datetime://America/New_York/now

💻 使用示例

基础用法

该服务器提供一个工具来获取系统时区的当前本地时间:

>>> get_current_time()
"The current time is 2024-12-18 19:59:36"
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client