MCP Catalogs
首页

context-mode vs time

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

context-mode
by mksglu
time
by modelcontextprotocol
Stars★ 14,865★ 85,748
30天用量
综合分6277
官方
分类
AI / LLM 工具开发者工具效率工具
效率工具开发者工具沟通协作
实现语言TypeScriptTypeScript
最近提交本月本月

context-mode · 概述

一个 MCP server,通过沙箱化工具输出,为 AI 代理优化上下文窗口,减少 98%。

time · 概述

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

context-mode · 使用场景

  • 处理大文件或多个文档时优化上下文使用
  • 跨 AI 编码会话保持会话连续性而不丢失编辑
  • 通过执行代码而非读取文件内容来减少令牌消耗
  • 通过最小化上下文溢出提高 AI 代理性能

time · 使用场景

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

context-mode · 安装

安装

Claude Code

/plugin marketplace add mksglu/context-mode
/plugin install context-mode@context-mode

Gemini CLI

npm install -g context-mode

添加到 ~/.gemini/settings.json

{
  "mcpServers": {
    "context-mode": {
      "command": "context-mode"
    }
  },
  "hooks": {
    "BeforeTool": [{
      "matcher": "run_shell_command|read_file|read_many_files|grep_search|search_file_content|web_fetch|activate_skill",
      "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli beforetool" }]
    }],
    "AfterTool": [{
      "matcher": "",
      "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli aftertool" }]
    }],
    "PreCompress": [{
      "matcher": "",
      "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli precompress" }]
    }],
    "SessionStart": [{
      "matcher": "",
      "hooks": [{ "type": "command", "command": "context-mode hook gemini-cli sessionstart" }]
    }]
  }
}

手动 MCP(适用于 Claude Desktop)

{
  "mcpServers": {
    "context-mode": {
      "command": "npx",
      "args": ["-y", "context-mode"]
    }
  }
}

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 公开数据自动生成,定期更新。