Time-MCP

Time-MCP

For the time and date, an MCP (Minecraft Protocol) server doesn't directly provide that information. The Minecraft protocol focuses on game-related data. However, here are a few ways you could get the time and date in relation to a Minecraft server: * **Server-Side Mod/Plugin:** The most common and reliable way. You would need a server-side mod or plugin (like for Bukkit, Spigot, Paper, Fabric, or Forge) that exposes the server's current time and date. This mod/plugin could then: * Display the time/date in the server console. * Send the time/date to players in-game (e.g., via chat message, scoreboard, or a custom GUI). * Expose the time/date via an API that other programs can query. * **External Script/Program:** You could write a script (e.g., in Python, Java, etc.) that runs on the same machine as the Minecraft server. This script would: 1. Get the current system time and date from the operating system. 2. Potentially interact with the Minecraft server (if needed) to display the time/date in-game (using `rcon` or a similar method). This is less common because it requires more setup. * **In-Game Clock (Minecraft Feature):** Minecraft itself has a day/night cycle. While not a real-world clock, players can use the in-game clock to estimate the time. You could potentially use commands or mods to display the in-game time in a more readable format. **In summary, you'll need a server-side mod/plugin or an external script to get the actual time and date in relation to your Minecraft server.** The MCP itself doesn't handle this. Here's the translation to Chinese: 对于时间和日期,MCP(Minecraft 协议)服务器不直接提供这些信息。 Minecraft 协议专注于与游戏相关的数据。 但是,以下是一些您可以获取与 Minecraft 服务器相关的时间和日期的方法: * **服务器端模组/插件:** 这是最常见和最可靠的方法。 您需要一个服务器端模组或插件(例如 Bukkit、Spigot、Paper、Fabric 或 Forge),该模组或插件公开服务器的当前时间和日期。 然后,此模组/插件可以: * 在服务器控制台中显示时间/日期。 * 在游戏中将时间/日期发送给玩家(例如,通过聊天消息、记分牌或自定义 GUI)。 * 通过其他程序可以查询的 API 公开时间/日期。 * **外部脚本/程序:** 您可以编写一个脚本(例如,使用 Python、Java 等),该脚本与 Minecraft 服务器在同一台机器上运行。 该脚本将: 1. 从操作系统获取当前的系统时间和日期。 2. (如果需要)可能与 Minecraft 服务器交互,以在游戏中显示时间/日期(使用 `rcon` 或类似方法)。 这不太常见,因为它需要更多设置。 * **游戏内时钟(Minecraft 功能):** Minecraft 本身具有昼夜循环。 虽然不是真实世界的时钟,但玩家可以使用游戏内时钟来估计时间。 您可以潜在地使用命令或模组以更易读的格式显示游戏内时间。 **总而言之,您需要一个服务器端模组/插件或外部脚本来获取与您的 Minecraft 服务器相关的实际时间和日期。** MCP 本身不处理此问题。

sidharthrajaram

研究与数据
访问服务器

README

Time-MCP

这是一个 MCP 服务器,用于让代理获取当前时间(和日期)。

<img width="635" alt="Screenshot 2025-03-20 at 1 02 54 AM" src="https://github.com/user-attachments/assets/b3a0d85b-36c9-4be0-8281-5365b4724263" />

用法

Claude 桌面应用

time_mcp_server.py 添加到 Claude 桌面应用配置文件 ~/Library/Application\ Support/Claude/claude_desktop_config.json 中的 MCP 服务器列表中,如下所示:

{
    "mcpServers": {
        "time": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/time-mcp",
                "run",
                "time_mcp_server.py"
            ]
        }
    }
}

保存文件,然后重启 Claude 桌面应用。

注意: 您可能需要在 command 字段中放入 uv 可执行文件的完整路径。您可以通过在 MacOS/Linux 上运行 which uv 或在 Windows 上运行 where uv 来获取此路径。

这基于 https://modelcontextprotocol.io/quickstart/server 中的 使用 Claude 桌面应用测试您的服务器

自定义客户端(或 Linux)

由于这是一个基于 STDIO 的 MCP 服务器,最好的方法是以类似于官方示例客户端教程 (https://modelcontextprotocol.io/quickstart/client) 的方式实现一个客户端。 使用 time_mcp_server.py 代替示例 weather.py MCP 服务器。

为什么?

代理知道当前时间(和日期)似乎很有帮助,而且有点重要。 使代理能够完成依赖于时间的任务,例如“Pacifica 现在几点?”或“3 小时后天气会怎样?”

工具

Time-MCP 提供了两个工具,get_datetimeget_current_unix_timestamp,它们分别返回指定时区(如果未指定,则为 UTC)的格式化日期时间以及当前的 UNIX 时间戳。

有/无 Time-MCP:

无:

<img width="632" alt="Screenshot 2025-03-20 at 1 02 21 AM" src="https://github.com/user-attachments/assets/acb9947d-3f55-45f6-ac7b-4e03bba95a4a" />

有:

<img width="635" alt="Screenshot 2025-03-20 at 1 02 54 AM" src="https://github.com/user-attachments/assets/fcf7c41e-a159-4cd5-bbb3-e5afbc059fe9" />

推荐服务器

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。

精选
TypeScript
MCP PubMed Search

MCP PubMed Search

用于搜索 PubMed 的服务器(PubMed 是一个免费的在线数据库,用户可以在其中搜索生物医学和生命科学文献)。 我是在 MCP 发布当天创建的,但当时正在度假。 我看到有人在您的数据库中发布了类似的服务器,但还是决定发布我的服务器。

精选
Python
mixpanel

mixpanel

连接到您的 Mixpanel 数据。 从 Mixpanel 分析查询事件、留存和漏斗数据。

精选
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

这个服务器通过将复杂问题分解为顺序步骤来促进结构化的问题解决,支持修订,并通过完整的 MCP 集成来实现多条解决方案路径。

精选
Python
Nefino MCP Server

Nefino MCP Server

为大型语言模型提供访问德国可再生能源项目新闻和信息的能力,允许按地点、主题(太阳能、风能、氢能)和日期范围进行筛选。

官方
Python
Vectorize

Vectorize

将 MCP 服务器向量化以实现高级检索、私有深度研究、Anything-to-Markdown 文件提取和文本分块。

官方
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

一个服务器,通过 FastMCP 提供对 Mathematica 文档的访问,使用户能够从 Wolfram Mathematica 检索函数文档和列出软件包符号。

本地
Python
kb-mcp-server

kb-mcp-server

一个 MCP 服务器,旨在实现便携性、本地化、简易性和便利性,以支持对 txtai “all in one” 嵌入数据库进行基于语义/图的检索。任何 tar.gz 格式的 txtai 嵌入数据库都可以被加载。

本地
Python
Research MCP Server

Research MCP Server

这个服务器用作 MCP 服务器,与 Notion 交互以检索和创建调查数据,并与 Claude Desktop Client 集成以进行和审查调查。

本地
Python
Cryo MCP Server

Cryo MCP Server

一个API服务器,实现了模型补全协议(MCP),用于Cryo区块链数据提取,允许用户通过任何兼容MCP的客户端查询以太坊区块链数据。

本地
Python