---
title: "Notion MCP Server Setup Guide and Schema"
slug: "notion"
category: "cloud-services"
package: "mcp-server-notion"
transport: "stdio"
canonical: "https://mcp-codex.com/servers/notion"
source: "MCP Codex (https://mcp-codex.com)"
dateModified: "2026-09-28"
---

# Notion MCP Server

> Read and manage Notion pages, databases, blocks, and workspaces.

## Overview
Connect AI agents to Notion for reading pages, querying databases, creating content, and managing workspace structure. Supports page creation, block appending, database queries, and search.

## Quick Install
```bash
npx -y mcp-server-notion
```

## Environment Variables

| Variable | Description | Required |
| :--- | :--- | :--- |
| `NOTION_API_KEY` | Notion Internal Integration Token | **Yes** |

## Client Configurations

### Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-notion"
      ],
      "env": {
        "NOTION_API_KEY": "ntn_xxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
```

### Cursor (`mcp.json`)
```json
{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-notion"
      ],
      "env": {
        "NOTION_API_KEY": "ntn_xxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
```

### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.notion]
command = "npx"
args = ["-y", "mcp-server-notion"]

[mcp_servers.notion.env]
NOTION_API_KEY = "ntn_xxxxxxxxxxxxxxxxxxxx"
```

## Available Tools (5)

- `search`
- `get_page`
- `create_page`
- `query_database`
- `append_block_children`

## Documentation & Links
- Canonical Web Page: https://mcp-codex.com/servers/notion
- Weekly Protocol Changelog: https://mcp-codex.com#newsletter
- GitHub Repository: https://github.com/makenotion/notion-mcp-server
- Setup Tutorial Guide: https://mcp-codex.com/articles/notion-mcp-server-setup

