MCP Catalogs
首页

mcp-streamable-http vs time

并排对比,帮你在这两个 MCP server 之间做选择。

mcp-streamable-http
by invariantlabs-ai
time
by modelcontextprotocol
Stars★ 129★ 85,748
30天用量
综合分4277
官方
分类
开发者工具AI / LLM 工具沟通协作
效率工具开发者工具沟通协作
实现语言TypeScriptTypeScript
最近提交12 个月前本月

mcp-streamable-http · 概述

Python 和 TypeScript MCP 服务器示例,实现 Streamable HTTP 协议进行跨语言通信。

time · 概述

功能全面的 MCP 服务器,提供时间和时区转换功能,可自动检测系统时区。

mcp-streamable-http · 使用场景

  • 构建跨语言 MCP 服务器实现
  • 创建基于 HTTP 的 MCP 传输层
  • 开发天气信息 MCP 服务

time · 使用场景

  • 协助安排跨时区的国际会议
  • 为基于位置的查询提供实时时间信息
  • 为旅行计划和行程安排提供时间转换

mcp-streamable-http · 安装

安装

Python 示例

git clone https://github.com/invariantlabs-ai/mcp-streamable-http.git
cd python-example/server
pip install .
python weather.py

TypeScript 示例

cd typescript-example/server
npm install && npm run build
node build/index.js

Claude Desktop 集成

添加到 Claude Desktop config.json:

"mcpServers": {
  "streamable-http": {
    "command": "node",
    "args": ["/path/to/build/index.js"],
    "env": {
      "PORT": "8123"
    }
  }
}

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"]
    }
  }
}
对比内容由 README + GitHub 公开数据自动生成,定期更新。