time vs mcp
并排对比,帮你在这两个 MCP server 之间做选择。
time by modelcontextprotocol | mcp by xp-forge | |
|---|---|---|
| Stars | ★ 85,748 | ★ 0 |
| 30天用量 | — | — |
| 综合分 | 77 | 33 |
| 官方 | ✓ | — |
| 分类 | 效率工具开发者工具沟通协作 | 开发者工具AI / LLM 工具 |
| 实现语言 | TypeScript | PHP |
| 最近提交 | 本月 | 3 个月前 |
time · 概述
功能全面的 MCP 服务器,提供时间和时区转换功能,可自动检测系统时区。
mcp · 概述
XP 框架的 Model Context Protocol PHP 实现,提供客户端和服务器组件。
time · 使用场景
- 协助安排跨时区的国际会议
- 为基于位置的查询提供实时时间信息
- 为旅行计划和行程安排提供时间转换
mcp · 使用场景
- 用 PHP 构建集成到现有 PHP 应用的 MCP 服务器
- 将 PHP 系统连接到兼容 MCP 的 AI 模型和工具
- 使用 PHP 为 AI 工作流创建自定义工具和资源
time · 安装
安装选项
**使用 uv(推荐):**
uvx mcp-server-time**使用 PIP:**
pip install mcp-server-time
python -m mcp_server_time**为 Claude Desktop 配置:**
{
"mcpServers": {
"time": {
"command": "uvx",
"args": ["mcp-server-time"]
}
}
}mcp · 安装
通过 Composer 安装:
composer require xp-forge/mcp在 XP Framework 中用作服务器:
class Test extends Application {
public function routes() {
return new McpServer('com.example.api');
}
}连接到 MCP 服务器:
use io\modelcontextprotocol\McpClient;
$client = new McpClient('http://localhost:3001');
$response = $client->call('tools/list');