Claude Desktop Notion MCP Server

by tkc

405 downloads
Not rated
GitHub

About

It is a filesystem Model Context Protocol (MCP) server for Claude Desktop that enables Claude to read, write, and manipulate files on your system. It is built with Bun and includes secure path normalization.

Details

Author
tkc
Downloads
405
Categories
Knowledge Base

- List files with glob pattern matching
- Read file contents
- Write content to files
- Edit files and display diff output
- Delete files with secure path normalization

Clone the repository, run bun install, then configure Claude Desktop by adding the server to claude_desktop_config.json with the Bun command and your Notion integration key as an argument. Optionally, provide a base directory; otherwise the current working directory is used.

Claude Desktop Notion MCP Server

A filesystem Model Context Protocol (MCP) server implementation for Claude Desktop. This server provides filesystem capabilities to Claude, allowing it to read, write, and manipulate files on your system.

image

Features

- List files with glob pattern matching
- Read file contents
- Write to files
- Edit files with diff output
- Delete files
- Secure path normalization to prevent directory traversal attacks

Prerequisites

- Bun v1.2.5 or later

Installation

Clone the repository and install dependencies:

git clone https://github.com/yourusername/claude-desktop-mcp.git
cd claude-desktop-mcp
bun install

Usage

claude_desktop_config.json

{
  "mcpServers": {
    "notion": {
      "command": "~/.bun/bin/bun",
      "args": [
        "run",
        "<your path>/src/notion/index.ts",
        "your_notion_integration_key_here"
      ]
    }
  }
}

If no base directory is provided, the current working directory will be used.

Available Tools

The server exposes the following tools:

- list_files: Lists files matching a glob pattern
- read_file: Reads the content of a file
- write_file: Writes content to a file
- edit_file: Edits an existing file with the provided content and shows diff
- delete_file: Deletes a file

Security

The server implements path normalization and validation to ensure that operations are restricted to the specified base directory, preventing directory traversal attacks.

License

MIT

Acknowledgments

- Based on the Model Context Protocol specification
- Built with Bun JavaScript runtime

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.