Claude 桌面 Notion MCP 服务器
为 Claude Desktop 实现的文件系统模型上下文协议 (MCP) 服务器。该服务器为 Claude 提供文件系统功能,使其能够读取、写入和操作系统上的文件。
特征
使用全局模式匹配列出文件
读取文件内容
写入文件
使用差异输出编辑文件
删除文件
安全路径规范化以防止目录遍历攻击
Related MCP server: MCP Fetch
先决条件
Bun v1.2.5 或更高版本
安装
克隆存储库并安装依赖项:
git clone https://github.com/yourusername/claude-desktop-mcp.git
cd claude-desktop-mcp
bun install用法
claude_desktop_config.json
{
"mcpServers": {
"notion": {
"command": "~/.bun/bin/bun",
"args": [
"run",
"<your path>/src/notion/index.ts",
"your_notion_integration_key_here"
]
}
}
}如果没有提供基目录,则将使用当前工作目录。
可用工具
该服务器公开以下工具:
list_files:列出与 glob 模式匹配的文件read_file:读取文件内容write_file:将内容写入文件edit_file:使用提供的内容编辑现有文件并显示差异delete_file:删除文件
安全
服务器实现路径规范化和验证,以确保操作仅限于指定的基目录,防止目录遍历攻击。
执照
麻省理工学院
致谢
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.