# Notion MCP Server

> Notion MCP Server is a free MCP server for knowledge and memory. Token-based Notion MCP with three compact tools for pages, databases, files and comments. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/awkoy/notion-mcp-server
- **MCP Registry name:** io.github.awkoy/notion-mcp-server
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_write` (name suggests: changes): Create or edit Notion pages and content

## 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.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Open Sunsama](https://ai-powered.com/mcp/open-sunsama): Open Sunsama is an open-source MCP server for productivity.

---
Source: https://ai-powered.com/mcp/notion-mcp-server
