Skip to main content
Glama
Notion MCP Server
by tkc

Claude 桌面 Notion MCP 服务器

为 Claude Desktop 实现的文件系统模型上下文协议 (MCP) 服务器。该服务器为 Claude 提供文件系统功能,使其能够读取、写入和操作系统上的文件。

图像

特征

  • 使用全局模式匹配列出文件

  • 读取文件内容

  • 写入文件

  • 使用差异输出编辑文件

  • 删除文件

  • 安全路径规范化以防止目录遍历攻击

Related MCP server: Filesystem MCP Server

先决条件

  • 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 :删除文件

安全

服务器实现路径规范化和验证,以确保操作仅限于指定的基目录,防止目录遍历攻击。

执照

麻省理工学院

致谢

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    23
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that extends AI capabilities by providing file system access and management functionalities to Claude or other AI assistants.
    235 npm
    5
    -
  • A
    license
    Not graded
    quality
    F
    maintenance
    A comprehensive MCP (Model Context Protocol) server for file system operations, providing Claude and other AI assistants with access to local files and directories.
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables Claude Desktop to perform file operations like reading, writing, listing directories, and managing files through natural language commands.
    MIT