n24q02m

Better Notion MCP

Community n24q02m
Updated

Better Notion MCP

Better Notion MCP

Markdown-First MCP Server for Notion - Optimized for AI Agents

GitHub starsLicense: MITnpm versionDocker

Why "Better"?

7 mega action-based tools that consolidate Notion's 28+ REST API endpoints into composite operations optimized for AI agents.

vs. Official Notion MCP Server

Feature Better Notion MCP Official Notion MCP
Content Format Markdown (human-readable) Raw JSON blocks (verbose)
Operations Composite actions (create page + content + properties in 1 call) Atomic operations (2+ separate calls required)
Pagination Auto-pagination (transparent) Manual cursor management
Bulk Operations Native batch support (create/update/delete multiple items at once) Loop through items manually
Tool Architecture 7 mega action-based tools (30+ actions) 28+ individual endpoint tools
Database Query Smart search (auto-detect best match) Manual filters + sorts required
Token Efficiency Optimized for AI context Standard API responses
Setup Simple (NOTION_TOKEN only) OAuth flow or token

Installation

Get your Notion token: https://www.notion.so/my-integrations → Create integration → Copy token → Share pages with integration

Quick Start

NPX (Recommended)

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@n24q02m/better-notion-mcp@latest"],
      "env": {
        "NOTION_TOKEN": "your_token_here"
      }
    }
  }
}

Docker

{
  "mcpServers": {
    "notion": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "NOTION_TOKEN", "n24q02m/better-notion-mcp:latest"],
      "env": {
        "NOTION_TOKEN": "your_token_here"
      }
    }
  }
}

Tools Overview

7 mega tools with 30+ actions:

Tool Actions Description
pages create, get, update, archive, restore, duplicate Complete page lifecycle with markdown support
databases create, get, query, create_page, update_page, delete_page, create_data_source, update_data_source, update_database Database management with bulk operations
blocks get, children, append, update, delete Granular block-level editing
users list, get, me, from_workspace User management and discovery
workspace info, search Workspace-wide operations
comments list, create Comment operations with threading
content_convert markdown-to-blocks, blocks-to-markdown Format conversion utility

Key Features:

  • Markdown-First: Natural language content format
  • Composite Actions: Combine operations (e.g., create page + content + properties in 1 call)
  • Auto-Pagination: Transparent handling of large datasets
  • Bulk Operations: Process multiple items efficiently
  • Smart Search: Auto-detect best matches in database queries

Development

Build from Source

git clone https://github.com/n24q02m/better-notion-mcp
cd better-notion-mcp
mise trust && mise install  # Install Node.js 22 + pnpm via mise
mise run build              # Build the project

Prerequisites: mise for managing Node.js and pnpm versions.

Available Commands

mise run dev              # Development with watch mode
mise run build            # Build for production
mise run test             # Run tests
mise run check            # Run all checks (type-check + lint + format)
mise run changeset        # Create a new changeset (for version bumps)
mise run release          # Build and publish to npm

See CONTRIBUTING.md for full development workflow.

Contributing

Contributions welcome! See CONTRIBUTING.md for:

  • Development workflow with changesets
  • Commit convention (enforced via git hooks)
  • Testing and code quality standards

License

MIT License - See LICENSE

Star this repo if you find it useful! ⭐

MCP Server · Populars

MCP Server · New

    n24q02m

    Better Code Review Graph

    Knowledge graph for token-efficient code reviews -- semantic search and call-graph resolution across your codebase.

    Community n24q02m
    Noveum

    Orbit

    Free, open source, realtime task manager. Issues, boards, sprints, projects and docs that sync instantly. Keyboard-first, self-hostable, with an MCP server for AI agents. No pricing, ever.

    Community Noveum
    feder-cr

    aihawk

    Anti detect browser and web browsing agent: an open-source MCP server for undetected browsing, AI web scraping and computer use agents. No captchas.

    Community feder-cr
    LeandroPG19

    MemoryIndustry

    Persistent memory MCP server for AI agents — Rust, 19 tools, knowledge graph, Hebbian learning, episodic memory, contradiction detection, prospective triggers, Bayesian calibration, zero-config Docker setup.

    Community LeandroPG19
    btsouth

    Toolport

    Local-first MCP gateway. One port for every tool and every AI client: lazy discovery (~90% token savings), tool integrity + quarantine, secrets in the OS keychain.

    Community btsouth