pydantic-rpc vs time
并排对比,帮你在这两个 MCP server 之间做选择。
pydantic-rpc by i2y | time by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 74 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 45 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具 | 效率工具开发者工具沟通协作 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 3 个月前 | 本月 |
pydantic-rpc · 概述
PydanticRPC 快速将 Pydantic 模型暴露为 gRPC、ConnectRPC 和 MCP 服务,无需 protobuf 文件。
time · 概述
功能全面的 MCP 服务器,提供时间和时区转换功能,可自动检测系统时区。
pydantic-rpc · 使用场景
- 构建通过 MCP 协议暴露工具的 AI 服务
- 无需编写 protobuf 文件创建 gRPC 服务
- 使用 Connect-RPC 开发基于 HTTP 的 RPC 服务
time · 使用场景
- 协助安排跨时区的国际会议
- 为基于位置的查询提供实时时间信息
- 为旅行计划和行程安排提供时间转换
pydantic-rpc · 安装
通过 pip 安装 PydanticRPC:
pip install pydantic-rpc安装 CLI 支持:
pip install pydantic-rpc-cli在 Claude Desktop 中使用,添加到 config.json:
{
"mcpServers": {
"pydantic-rpc": {
"command": "python",
"args": ["-m", "pydantic_rpc.server"],
"env": {
"PYDANTIC_RPC_PACKAGE_NAME": "my.services"
}
}
}
}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"]
}
}
}