mcpField
N
notion-full-mcp

notion-full-mcp

Local
github.com/cphoskinsProductivity0Updated 3d ago

About notion-full-mcp

notion-full-mcp is a Notion server for MCP clients that supports page reading, editing, and recovery. It also handles tables and files, with annotations identifying read-only, additive, and destructive tools.

Key features

  1. 01Recursively read page content
  2. 02Edit blocks and table cells
  3. 03Snapshot and rollback restore
  4. 04Upload and download Notion files
  5. 05Move, copy, and restore pages

Use cases

  1. 01Inspect pages and nested content
  2. 02Change page text or table rows
  3. 03Back up and restore page content
  4. 04Insert files into Notion pages

MCP support

It exposes 33 tools for Notion pages, blocks, databases, comments, users, and files to MCP clients. Tool annotations identify read-only, additive, and destructive operations.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"cphoskins-notion-full": {
"command": "uvx",
"args": [
"notion-full-mcp"
],
"env": {
"NOTION_API_TOKEN": "<NOTION_API_TOKEN>",
"NOTION_MCP_FILE_ROOT": "<NOTION_MCP_FILE_ROOT>"
}
}
}
}
Run commanduvx notion-full-mcp
Environment variables to set
NOTION_API_TOKENSecretYour Notion integration API token (starts with ntn_)
NOTION_MCP_FILE_ROOTOptional directory that uploads, downloads and snapshots are confined to

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypinotion-full-mcp0.5.1

Tools

33

Saved tool list · updated 2d ago

ParameterTypeRequiredDescription
querystringYes
max_resultsintegerNo

Details

From the project README

notion-full-mcp

Notion MCP server with deep page reading, surgical block editing, safe snapshot/restore, file uploads (Notion-hosted images and PDFs), table row manipulation, page move and copy, and page restore from trash.

What's new in v0.5.1

  • Tool annotations. Every tool declares whether it is read-only, additive or destructive, so MCP clients can decide what to run without asking.
  • MCP Registry. The server is published to the official MCP Registry as io.github.cphoskins/notion-full-mcp.

What's new in v0.5.0

  • Restore keeps the page in order. Subpages, inline databases and Notion-hosted files that are still on the page stay untouched, and the restored content is written around them in snapshot order.
  • Restore brings items back from trash. A subpage, database or hosted file deleted after the snapshot is restored from Notion's trash with its ID, comments and history intact.
  • Snapshots can carry files. snapshot_page with include_files downloads Notion-hosted images and files beside the JSON, and restore uploads them again in place.
  • Fix: inserting more than 100 blocks after a block now keeps them in order.

What's new in v0.4.0

  • Restore can no longer lose content. restore_page_from_snapshot writes the snapshot first and removes the old blocks only after that succeeds. A failed restore rolls back and leaves the page as it was. Subpages, inline databases and Notion-hosted files are never deleted.
  • move_page works. It uses Notion's move endpoint, so the page keeps its ID, content, comments and subpages.
  • copy_page_to_parent reports what it could not copy. Uncopyable block types are listed in skipped, and the original is archived only when everything was copied.
  • Large and deep content. Lists nested more than two levels, tables over 100 rows and text over 2,000 characters are split across requests automatically.
  • Mentions and equations survive edits. Find/replace, restore and copy keep user, page, database and date mentions and inline equations.
  • Better errors and rate-limit handling. Errors carry Notion's own code and message. Rate-limited requests are retried using Retry-After.
  • Database rows have titles. Search, page info and create return the title whatever the title column is called.
  • More block types. Equation, bookmark, embed and externally hosted media blocks round-trip through snapshot/restore and copy.
  • Optional file boundary. Set NOTION_MCP_FILE_ROOT to confine uploads, downloads and snapshots to one directory.

What's new in v0.3.0

  • Page restore from trash. restore_page explicitly unarchives a page by sending archived=False. This is the counterpart to delete_block on a page and works around the intentional safety guard in update_page that blocks archived=False. Cascaded child archives are restored automatically when the parent is restored.
  • Destructive page copy across parents. copy_page_to_parent is the workaround for Notion's public API not supporting parent changes. Recreates the page at the target parent with the same title, icon, and content, then archives the original. Handles paragraphs, headings, lists, tables, dividers, code blocks, and image/file blocks. Refuses to run if the source has nested child_page descendants (copy those manually).
  • move_page stopped pretending. Notion's PATCH /pages/{id} endpoint silently ignores parent changes, so the tool returned an error instead. (v0.4.0 implements a real move.)

What's new in v0.2.0

  • Notion file uploads. Upload images and files directly to Notion's own workspace storage instead of relying on an external image host. Works for PNG, JPEG, SVG, GIF, PDF, and any other Notion-supported attachment type.
  • Image block helpers. upload_image_as_block uploads a file and inserts it at a position in one call. replace_image_block swaps an existing image's content while preserving its position in the parent. download_image_block pulls any image block's file to disk.
  • Table row manipulation. insert_table_row adds a row to an existing table with automatic width validation. update_table_cell replaces the text of a single cell. No more rebuild-the-whole-table for small edits.

Install

pip install notion-full-mcp
# or
uv pip install notion-full-mcp

Quick Start

export NOTION_API_TOKEN="your-token-here"
notion-mcp

Claude Code Integration

Add to ~/.claude.json under mcpServers:

{
  "notion-full": {
    "type": "stdio",
    "command": "uvx",
    "args": ["notion-full-mcp"],
    "env": {
      "NOTION_API_TOKEN": "your-token-here"
    }
  }
}

Or for local development:

{
  "notion-full": {
    "type": "stdio",
    "command": "uv",
    "args": ["run", "--directory", "/path/to/notion-full-mcp", "notion-mcp"],
    "env": {
      "NOTION_API_TOKEN": "your-token-here"
    }
  }
}

Tools (33)

Search & Pages
ToolDescription
search_pagesSearch pages by title
searchSearch pages and/or databases
get_page_infoGet page metadata (title, parent, dates, URL)
create_pageCreate a new page under a parent page or database
update_pageUpdate a page's title, icon, or archive status
move_pageMove a page under a new parent page, keeping its ID and content
restore_pageRestore a page (and its cascade-archived children) from trash
copy_page_to_parentRecreate a page under a new parent page or database. Archives the original only when every block was copied
Reading
ToolDescription
read_page_deepRead page with all nested children (recursive)
list_block_childrenList direct children of a block or page
get_blockGet a single block by ID
Editing
ToolDescription
update_block_textReplace all text in a block
find_replace_in_blockFind/replace text preserving formatting
update_block_rich_textUpdate with full rich text specification
Inserting
ToolDescription
insert_text_afterInsert a text block after a specific block (paragraph, heading_1/2/3, bulleted_list_item, numbered_list_item, quote, callout, toggle, to_do, code, divider)
insert_blocks_afterInsert multiple blocks after a specific block
append_blocks_to_pageAppend blocks to the end of a page
Deleting
ToolDescription
delete_blockDelete a block by ID
Comments
ToolDescription
create_commentAdd a comment to a page
list_commentsList all comments on a page or block
Databases
ToolDescription
get_databaseGet database metadata and schema
query_databaseQuery a database with filters and sorts
Users
ToolDescription
get_selfGet the current authenticated user/bot
list_usersList all workspace users
Snapshot / Restore
ToolDescription
snapshot_pageSave complete page structure as JSON. include_files also saves Notion-hosted images and files
restore_page_from_snapshotRestore page content from a snapshot. Writes first, rolls back on failure, keeps subpages and databases in place, restores deleted ones from trash and re-uploads saved files
Media & Files
ToolDescription
upload_fileUpload a file to Notion's own workspace storage (returns file_upload_id)
upload_image_as_blockUpload an image and insert it as a new image block in one step (after a block or appended to a page)
replace_image_blockReplace an existing image block with a newly uploaded file, preserving its position
download_image_blockDownload the image file from an image block to disk — works for external URLs, Notion-hosted files, and file_upload references
upload_file_as_blockUpload any file (PDF, attachment) and insert it as a file block
Tables
ToolDescription
insert_table_rowInsert a new row into an existing table with automatic width validation
update_table_cellReplace the text of a single cell in a table row
Tool annotations

Every tool carries MCP annotations so a client can decide what is safe to run without asking:

  • Read-only (11): search, page and block reads, comments list, database reads and user lookups.
  • Adds without loss (13): inserts, appends, uploads, page and comment creation, move_page, restore_page, and the two tools that write local files (snapshot_page, download_image_block).
  • Marked destructive (9): update_block_text, update_block_rich_text, find_replace_in_block, update_table_cell, replace_image_block, delete_block, update_page, copy_page_to_parent and restore_page_from_snapshot. They overwrite, delete or archive existing content.

Block support and limits

  • Round-trip (snapshot/restore and copy): paragraph, headings (including toggleable), bulleted and numbered lists, to-do, quote, callout, toggle, code, divider, table, columns, table of contents, equation, bookmark, embed, and externally hosted image, file, video, PDF and audio blocks.
  • Never recreated from scratch: subpages, inline databases and synced blocks. Copy reports them as skipped.
  • Restore of those blocks, and of Notion-hosted files:
    • Still on the page: left untouched, with restored content written around them in snapshot order (preserved). One that was dragged out of snapshot order stays where it is (out_of_order).
    • File saved with the snapshot: uploaded again and recreated in place (uploaded). Files over 20 MB, or over the workspace upload limit, are not uploaded.
    • In Notion's trash: brought back as the same block (restored_from_trash). Notion returns it to the end of the page, so a block that is still on the page and came later in the snapshot ends up above it and is reported as out_of_order.
    • Gone from trash, with no saved file: cannot be restored (skipped).
    • Why out_of_order blocks are not moved (by design): the Notion API has no way to reposition a block. The only way to move a subpage or database is to trash it and restore it, which sends it to the end of the page and, if it failed midway, would leave it in trash. Restore never deletes something it cannot recreate, so it reports the block and leaves it for you to drag into place.
  • Snapshots: record subpages and inline databases as blocks, without their own content. Notion-hosted files are saved only with include_files; otherwise the snapshot holds links that expire within the hour.
  • Queries: query_database returns at most 500 rows and sets truncated when more matched.
  • Find/replace: matches within one formatting run. A phrase that spans a bold or link boundary is reported as not found.
  • API version: requests use Notion API version 2022-06-28.

Configuration

VariableRequiredPurpose
NOTION_API_TOKENYesIntegration secret
NOTION_MCP_FILE_ROOTNoWhen set, uploads, downloads and snapshot files must be inside this directory

Development

uv run pytest --cov=notion_mcp      # unit tests, no credentials needed

A live check runs every tool against a real workspace. It works inside one scratch page under the parent you name and moves it to trash afterwards:

export NOTION_API_TOKEN="your-token-here"
export NOTION_TEST_PARENT_PAGE="page-id-shared-with-the-integration"
uv run python scripts/live_check.py

Notion API Token

  1. Go to https://www.notion.so/my-integrations
  2. Create a new integration
  3. Copy the token (starts with ntn_)
  4. Share the pages/databases you want to access with the integration

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.