Claude 桌面 Notion MCP 服务器
为 Claude Desktop 实现的文件系统模型上下文协议 (MCP) 服务器。该服务器为 Claude 提供文件系统功能,使其能够读取、写入和操作系统上的文件。
特征
使用全局模式匹配列出文件
读取文件内容
写入文件
使用差异输出编辑文件
删除文件
安全路径规范化以防止目录遍历攻击
先决条件
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
local-only server
The server can only run on the client's local machine because it depends on local resources.
文件系统模型上下文协议服务器为 Claude Desktop 提供读取、写入和操作系统文件的功能。
Related MCP Servers
- -security-license-qualityA custom Model Context Protocol server that gives Claude Desktop and other LLMs access to file system operations and command execution capabilities through standardized tool interfaces.Last updated -24Apache 2.0
- Asecurity-licenseAqualityModel Context Protocol server that enables Claude Desktop (or any MCP client) to fetch web content and process images appropriately.Last updated -1106MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that automatically reads the Claude Desktop configuration file and presents all available MCP services in an easy-to-copy format at the top of the tools list.Last updated -1183MIT License
- -security-license-qualityA Model Context Protocol server that allows Claude Desktop to perform document operations on Microsoft Word, Excel, and PDF files including creation, editing, and format conversion.Last updated -39