Skip to content
MCP server

Notion MCP Server

Token-based Notion MCP with three compact tools for pages, databases, files and comments

Runs locally

Notion MCP Server is a free MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (1 tool)
Access
Needs a secret key or token
Version
3.6.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add notion-mcp-server --env NOTION_TOKEN='<NOTION_TOKEN>' -- npx -y notion-mcp-server

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "notion-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "notion-mcp-server"
      ],
      "env": {
        "NOTION_TOKEN": "<NOTION_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "notion-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "notion-mcp-server"
      ],
      "env": {
        "NOTION_TOKEN": "<NOTION_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "notion-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "notion-mcp-server"
      ],
      "env": {
        "NOTION_TOKEN": "<NOTION_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "notion-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "notion-mcp-server"
      ],
      "env": {
        "NOTION_TOKEN": "<NOTION_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add notion-mcp-server --env NOTION_TOKEN='<NOTION_TOKEN>' -- npx -y notion-mcp-server

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.notion-mcp-server]
command = "npx"
args = ["-y", "notion-mcp-server"]
env = { NOTION_TOKEN = "<NOTION_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "notion-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "notion-mcp-server"
      ],
      "env": {
        "NOTION_TOKEN": "<NOTION_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e NOTION_TOKEN='<NOTION_TOKEN>' notion-mcp-server npx -- -y notion-mcp-server

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "notion-mcp-server": {
          "command": "npx",
          "args": [
            "-y",
            "notion-mcp-server"
          ],
          "env": {
            "NOTION_TOKEN": "<NOTION_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • NOTION_TOKENNotion Personal Access Token (ntn_...) or Internal Integration Secret. Create at https://app.notion.com/developers/tokensRequired
  • NOTION_PAGE_IDOptional default parent page ID used by create_page / create_database when no parent is passed.
  • NOTION_TOKENNotion Personal Access Token (ntn_...) or Internal Integration Secret. Create at https://app.notion.com/developers/tokensRequired
  • NOTION_PAGE_IDOptional default parent page ID used by create_page / create_database when no parent is passed.

About Notion MCP Server

The pitch is context economy. The README says its three tools cost 1,005 tokens at connection, against 17,163 for Notion's open-source server, and that page reads come back 82% smaller. It points to a benchmark folder for the method. Writes can be batched with atomic rollback and idempotency keys, rate limits are retried, pages round-trip as Markdown, and errors tell the model how to fix the call.

Auth is a single NOTION_TOKEN: a Personal Access Token (sees what you see) or an internal integration secret (scoped to pages you connect). Because there is no browser sign-in, it runs headless in CI, cron jobs and background agents, and it works on every Notion plan including Free. A comparison table in the README is candid about when Notion's hosted MCP is the better choice, such as interactive chat in claude.ai or ChatGPT.

Install paths include add-mcp, Cursor and VS Code one-click links, a Claude Desktop .mcpb bundle, Docker and a Claude Code plugin with a workflow skill.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 1 tool changes data.

From the server's own tool labels and tool names; not verified by us.

notion_writeName suggests: changes
Create or edit Notion pages and content

What it does

Three-tool surface
Keeps schema overhead low so more context is left for work.
Batched, idempotent writes
Atomic rollback and idempotency keys for large edits.
Markdown round-trip
Read and rewrite pages as Markdown.
Database queries
Filter database rows with a `where` clause.
Files and comments
Upload files and comment on pages.
Headless friendly
No browser sign-in, so it fits CI and scheduled jobs.

Good for

  • Rename 50 pages in one batched call
  • Find overdue rows in a Tasks database
  • Rewrite a spec page with fixed headings
  • Comment a summary on meeting notes
  • Run Notion automation from CI

Pricing

Free

Free server; requires a Notion token

Notion MCP Server FAQ

Does Notion MCP Server work on Notion Free?

Yes. Token auth works on every plan, Free included.

How do I authenticate?

Set NOTION_TOKEN to a Personal Access Token or an internal integration secret.

When should I use Notion's hosted MCP instead?

For interactive chat in claude.ai or ChatGPT, where one-click OAuth is simpler.

Can I run Notion MCP Server in Docker?

Yes, using the ghcr.io image with `-i` for stdio.

How do I add Notion MCP Server to Claude Code?

Run this command in your terminal: claude mcp add notion-mcp-server --env NOTION_TOKEN='<NOTION_TOKEN>' -- npx -y notion-mcp-server

What are the best alternatives to Notion MCP Server?

The closest alternatives to Notion MCP Server are Codebase Memory, XERJ, Ha MCP, Claude Code Ultimate Guide and Concord MCP.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers