MCP Server for Notion MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/acckkiie/mcp-notion
cd mcp-notion
npm install
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "NOTION_API_KEY=${NOTION_API_KEY}" -e "HOST_WORKSPACE_PATH=${HOST_WORKSPACE_PATH}" mcp-notion -- node "<FULL_PATH_TO_MCP_NOTION>/dist/index.js"

Replace <FULL_PATH_TO_MCP_NOTION>/dist/index.js with the actual folder you prepared in step 1.

Required:NOTION_API_KEYHOST_WORKSPACE_PATH
README.md

Enables AI agents to search, create, and manage Notion pages and databases.

MCP Server for Notion

This tool provides the Notion API as an MCP (Model Context Protocol) server. It enables AI agents to search, view, create, and update Notion pages, as well as operate on databases.

Features

Page & Database Operations

Supports major operations such as search, retrieval, creation, updates, and appending blocks.

File-based Operations

Drastically reduces LLM token usage by saving/loading page content (JSON) to/from files.

Response Extraction (extract)

Optimizes context size by extracting only the necessary properties from the API response.

Quick Start

Local Development Environment

  1. Install:

    git clone https://github.com/acckkiie/mcp-notion
    cd mcp-notion
    npm install
    
  2. Configure: Copy .env.example to create .env and set your Notion API key.

    cp .env.example .env
    # Edit .env: NOTION_API_KEY=secret_...
    
  3. Run:

    npm run dev
    

Image Build

npm run build
docker build -t mcp-notion:latest .

MCP Client Configuration

Via Docker (Recommended)

Using Docker reduces environment dependencies and enables security control via proxy.

{
  "mcpServers": {
    "mcp-notion": {
      "disabled": false,
      "command": "bash",
      "args": [
        "-c",
        "docker compose -f /path/to/mcp-notion/docker-compose.yml down 2>/dev/null; docker compose --env-file /path/to/mcp-notion/.env -f /path/to/mcp-notion/docker-compose.yml run --rm -i mcp-notion"
      ],
      "env": {
        "HOST_WORKSPACE_PATH": "/path/to/your/workspace"
      }
    }
  }
}

Local Execution

{
  "mcpServers": {
    "notion": {
      "command": "node",
      "args": [
        "/path/to/mcp-notion/build/index.js"
      ],
      "env": {
        "NOTION_API_KEY": "secret_...",
        "HOST_WORKSPACE_PATH": "/path/to/your/workspace"
      }
    }
  }
}

License

GNU Affero General Public License v3.0 (AGPL-3.0)

Tools (5)

searchSearch for Notion pages and databases.
retrieveRetrieve content from a specific Notion page or database.
createCreate a new page or database entry in Notion.
updateUpdate an existing Notion page or database entry.
append_blockAppend new blocks to a Notion page.

Environment Variables

NOTION_API_KEYrequiredYour Notion integration secret key.
HOST_WORKSPACE_PATHrequiredLocal path for file-based operations to save/load page content.

Configuration

claude_desktop_config.json
{"mcpServers": {"notion": {"command": "node", "args": ["/path/to/mcp-notion/build/index.js"], "env": {"NOTION_API_KEY": "secret_...", "HOST_WORKSPACE_PATH": "/path/to/your/workspace"}}}}

Try it

Search for the project roadmap page in my Notion workspace.
Retrieve the content of the 'Meeting Notes' database entry from yesterday.
Create a new task page in the 'Engineering' database with the title 'Fix API bug'.
Append a summary of our recent discussion to the 'Project Alpha' page.

Frequently Asked Questions

What are the key features of MCP Server for Notion?

Full CRUD support for Notion pages and databases. File-based operations to reduce LLM token usage. Response extraction to optimize context window efficiency. Docker-ready for secure and isolated execution.

What can I use MCP Server for Notion for?

Automating the creation of meeting minutes directly from AI summaries. Querying internal knowledge bases to provide context for AI responses. Syncing project task lists between AI agents and Notion. Managing large documentation sets by offloading content to local files.

How do I install MCP Server for Notion?

Install MCP Server for Notion by running: git clone https://github.com/acckkiie/mcp-notion && cd mcp-notion && npm install

What MCP clients work with MCP Server for Notion?

MCP Server for Notion works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Server for Notion docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare