Notion MCP 文件系统服务器
为 Claude Desktop 提供文件系统功能的 MCP 服务器,支持文件读写与操作。
快速入门
前置条件
- 安装 Bun v1.2.5 或更高版本。
安装步骤
- 克隆仓库: git clone https://github.com/tkc/notion-mcp.git cd notion-mcp
- 安装依赖: bun install
使用方法
配置 claude_desktop_config.json
文件:
{
"mcpServers": {
"notion": {
"command": "~/.bun/bin/bun",
"args": [
"run",
"<你的路径>/src/notion/index.ts",
"your_notion_integration_key_here"
]
}
}
}
启动后即可使用以下工具:
list_files
: 列出匹配的文件read_file
: 读取文件内容write_file
: 写入文件内容edit_file
: 编辑文件并显示差异delete_file
: 删除文件
注意:未提供基础目录时,默认使用当前工作目录。