context-lens vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
context-lens by cornelcroi | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 22 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 42 | 77 |
| 官方 | — | ✓ |
| 分类 | 搜索开发者工具AI / LLM 工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 6 个月前 | 本月 |
context-lens · 概述
一个为 MCP AI 助手设计的语义搜索知识库,使用 LanceDB 向量存储技术索引本地文件或 GitHub 仓库。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
context-lens · 使用场景
- 索引代码库以快速理解复杂项目并回答关于实现的具体问题
- 分析文档和合同以在多个文档中查找特定条款和术语
- 从 GitHub 仓库构建知识库,使 AI 助手能够理解开源项目
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
context-lens · 安装
安装
Context Lens 可通过 PyPI 安装:
pip install context-lensClaude Desktop 设置
添加到 Claude Desktop 配置:
{
"mcpServers": {
"context-lens": {
"command": "uvx",
"args": ["context-lens"]
}
}
}Cursor 设置
添加到 .cursor/mcp.json:
{
"mcpServers": {
"context-lens": {
"command": "uvx",
"args": ["context-lens"]
}
}
}其他 MCP 客户端
对于任何兼容的 MCP 客户端:
{
"mcpServers": {
"context-lens": {
"command": "uvx",
"args": ["context-lens"]
}
}
}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 中安装。