filesystem vs astro-mcp
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | astro-mcp by morinokami | |
|---|---|---|
| Stars | ★ 85,748 | ★ 58 |
| 30天用量 | — | — |
| 综合分 | 77 | 43 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具AI / LLM 工具网页抓取 |
| 实现语言 | TypeScript | Astro |
| 最近提交 | 本月 | 1 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
astro-mcp · 概述
为 Astro 项目提供项目信息、运行时数据、文档搜索和集成数据的 MCP 服务器。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
astro-mcp · 使用场景
- 通过提供运行时配置和路由信息,协助开发者调试 Astro 应用程序
- 使 AI 助手能够根据官方 Astro 文档提供最新的指导
- 通过编程方式访问集成详情和服务器状态,自动化开发工作流程
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 中安装。
astro-mcp · 安装
npx astro add astro-mcp手动安装:
npm install astro-mcp然后添加到您的 Astro 配置:
import { defineConfig } from "astro/config";
import mcp from "astro-mcp";
export default defineConfig({
integrations: [mcp()],
});MCP 服务器将在 http://localhost:4321/__mcp/sse 上可用。为您的编辑器创建一个空的配置文件:
- VSCode:
.vscode/mcp.json - Cursor:
.cursor/mcp.json - Windsurf:
~/.codeium/windsurf/mcp_config.json - Claude Code:
.mcp.json