MCP Catalogs
首页

drf-mcp-docs vs time

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

drf-mcp-docs
by Abdulkhalek-1
time
by modelcontextprotocol
Stars★ 17★ 85,748
30天用量
综合分4377
官方
分类
开发者工具AI / LLM 工具效率工具
效率工具开发者工具沟通协作
实现语言PythonTypeScript
最近提交2 个月前本月

drf-mcp-docs · 概述

一个将Django REST Framework API文档通过MCP协议暴露给AI编码助手,帮助前端开发的MCP服务器。

time · 概述

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

drf-mcp-docs · 使用场景

  • AI助手生成用于消费DRF API的React/Vue/Angular hooks
  • 自动生成TypeScript或Python中的类型化API客户端代码
  • 文档探索,AI可以查询端点详细信息和示例
  • 使用自动生成的代码片段创建集成教程和指南

time · 使用场景

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

drf-mcp-docs · 安装

安装

pip install drf-mcp-docs
# 使用特定模式生成器:
pip install drf-mcp-docs[spectacular]   # 推荐
pip install drf-mcp-docs[yasg]

配置

添加到Django设置中:

INSTALLED_APPS = [
    # ...
    'rest_framework',
    'drf_mcp_docs',
]

运行

**stdio传输**(用于本地AI工具):

python manage.py runmcpserver --transport stdio

**可流式HTTP传输**(用于网络访问):

python manage.py runmcpserver --transport streamable-http --host 0.0.0.0 --port 8100

Claude桌面配置

添加到~/.claude.json

{
  "mcpServers": {
    "my-api-docs": {
      "command": "python",
      "args": ["manage.py", "runmcpserver", "--transport", "stdio"],
      "cwd": "/path/to/your/django/project"
    }
  }
}

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