# Repository Briefing: suekou/mcp-notion-server
> Source: https://repoforai.com/repo/suekou/mcp-notion-server (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/suekou/mcp-notion-server
- **Official Docs / Website**: https://www.npmjs.com/package/@suekou/mcp-notion-server
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: B+ (65/100 · Maintenance 12/35 · Adoption 19/25 · Releases 14/20 · License 20/20)
- **Latest Release**: v2.0.2 (2026-06-22) — https://github.com/suekou/mcp-notion-server/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 925 ★ total (+0 24h / +0 7d) · 181 forks
- **Topics**: `mcp`, `model-context-protocol`, `notion`, `notion-api`, `npm`, `typescript`
- **When to Use**: Best for: Teams wiring an MCP host into selected Notion content for project lookup, schema-aware queries, and controlled page or item updates. Skip if: Notion access must work offline, MCP tool calls are not allowed to write to the workspace, or a fixed automation is easier to maintain against the Notion API directly.

## Overview
```text
### Architecture & Core Mechanics
This TypeScript server bridges an MCP host and the Notion API. The host launches the `mcp-notion-server` CLI with a Notion internal integration token supplied through `NOTION_API_TOKEN`. The server targets API version `2026-03-11`, distinguishes databases from data sources, and exposes tools, prompts, resources, and structured tool results through MCP.

The package lists `@modelcontextprotocol/sdk`, Zod, yargs, React, and React DOM. Its build scripts include `build:apps`, and the MCP surface includes two optional apps: Data Source Explorer and Page Workbench. For programmatic use, the main interface is the workflow-oriented toolset, with raw JSON tools available when an operation needs more of the underlying API shape.

### Key Capabilities & Differentiators
`notion_find` locates pages and data sources, while `notion_read_page` returns compact page content with stable block IDs for subsequent edits. For structured records, the workflow starts with `notion_inspect_data_source`, then uses `notion_query_data_source_by_values` or `notion_create_data_source_item_from_values` to work with simple property values instead of assembling native Notion JSON.

Page editing covers common blocks such as headings, lists, todos, callouts, and code blocks. The toolset includes Markdown append, direct content updates, and batch content updates. Raw tools extend coverage to advanced block, page, database, data source, comment, and user operations; comment access and user information require their own integration capabilities.

### Trade-offs & Limitations
Compared with direct Notion API integration, this server saves an agent from repeatedly constructing native filter, property, and block payloads for routine work. The simplified tools cover defined workflows rather than the entire API shape, so unusual operations can still require raw JSON. For a fixed automation with known targets and payloads, direct API calls may be easier to control because they avoid the MCP host and tool-selection layer.

The main operational boundary is the integration token: Notion checks both what the token is allowed to do and which content it can reach. Start with read-only access for lookup and query use, then add insert and update grants only as needed. Review parent-page connections for inherited access to child pages. The runtime adds no local model inference requirement, but end-to-end performance still depends on Notion API calls, payload size, and workload concurrency.

### Hardware & Deployment Guide
Use Node.js 22 or newer. Configure the MCP host to run `npx -y @suekou/mcp-notion-server` with `NOTION_API_TOKEN` and restart the host. For a source checkout, use pnpm 10.24.0 or newer, install with `pnpm install --frozen-lockfile`, build with `pnpm run build`, and point the host at `build/index.js`. `pnpm test` and `pnpm run inspector` cover local testing and MCP inspection.

The MCP process runs locally, but workspace operations require network access to Notion; this is not an offline Notion backend. Create an internal integration and share the intended content explicitly. Version 2.0.0 moved to API `2026-03-11` and the current data source model. Version 2.0.2 fixed an eager-evaluation crash when applying `is_empty` to non-text properties, a relevant fix for queries over mixed schemas.
```

## Key Capabilities
```text
- API model: Targets Notion API `2026-03-11` and treats data sources as explicit schema inspection and query targets.
- Discovery and editing: `notion_find` locates targets; `notion_read_page` returns compact content with stable block IDs for targeted edits.
- Schema-aware operations: `notion_inspect_data_source` exposes properties before value-based querying or item creation.
- Editing surface: Supports Markdown append and content updates, including batch updates, with raw API tools for operations outside the simplified surface.
- MCP interfaces: Provides tools, prompts, resources, structured tool results, and the optional Data Source Explorer and Page Workbench apps.
- Access controls: Notion checks integration capability grants separately from content access; connecting a parent page can also expose its children.
```

## Quick Start / Clone
```bash
pnpm install --frozen-lockfile
pnpm run build
pnpm test
```
