pywss vs time
并排对比,帮你在这两个 MCP server 之间做选择。
pywss by czasg | time by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 100 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 41 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具运维基建 | 效率工具开发者工具沟通协作 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 10 个月前 | 本月 |
pywss · 概述
Pywss 是一个轻量级 Python Web 框架,内置 MCP 服务器功能,支持 SSE、StreamHTTP 和 MCPO 协议。
time · 概述
功能全面的 MCP 服务器,提供时间和时区转换功能,可自动检测系统时区。
pywss · 使用场景
- 构建需要同时暴露 SSE 和 HTTP 端点的自定义工具 MCP 服务器
- 为 MCP 工具创建需要结构化 API 文档的 AI 应用程序
- 开发需要高效处理大规模并发 MCP 请求的系统
time · 使用场景
- 协助安排跨时区的国际会议
- 为基于位置的查询提供实时时间信息
- 为旅行计划和行程安排提供时间转换
pywss · 安装
安装
pip install pywss设置 MCP 服务器
from pywss import App
from pywss.mcp import MCPServer
from pydantic import BaseModel
class MyRequest(BaseModel):
param: str
class MyMCPServer(MCPServer):
@pywss.openapi.docs(description="我的工具", request=MyRequest)
def tool_my_tool(self, ctx):
req = ctx.data.req
self.handle_success(ctx, {"result": req.param})
app = App()
server = MyMCPServer()
server.mount(app.group("/mcp"))
app.run()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"]
}
}
}