drf-mcp-docs vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
drf-mcp-docs by Abdulkhalek-1 | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 17 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 43 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具效率工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 2 个月前 | 本月 |
drf-mcp-docs · 概述
一个将Django REST Framework API文档通过MCP协议暴露给AI编码助手,帮助前端开发的MCP服务器。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
drf-mcp-docs · 使用场景
- AI助手生成用于消费DRF API的React/Vue/Angular hooks
- 自动生成TypeScript或Python中的类型化API客户端代码
- 文档探索,AI可以查询端点详细信息和示例
- 使用自动生成的代码片段创建集成教程和指南
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
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 8100Claude桌面配置
添加到~/.claude.json:
{
"mcpServers": {
"my-api-docs": {
"command": "python",
"args": ["manage.py", "runmcpserver", "--transport", "stdio"],
"cwd": "/path/to/your/django/project"
}
}
}filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。