notion-full-mcp

v0.5.1
io.github.cphoskins/notion-full-mcp Checked 23 hours ago Published 22 days ago

Notion MCP server: deep reads, block editing, safe snapshot/restore, file uploads, page move/copy

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_pages Search Pages

Search Notion pages by title. Returns page IDs, titles, and URLs.

ParameterTypeDescription
query *string
max_resultsinteger

get_page_info Get Page Info

Get metadata for a Notion page (title, parent, dates, URL).

ParameterTypeDescription
page_id *string

read_page_deep Read Page Deep

Read a Notion page with all nested children recursively.

ParameterTypeDescription
page_id *stringThe Notion page ID.
formatstringOutput format - 'markdown' for readable text, 'json' for full block tree.
max_depthintegerMaximum nesting depth to fetch (default 5).

list_block_children List Block Children

List direct children of a block or page (shallow, no recursion). Returns block IDs, types, and optionally their text content. Useful for finding specific block IDs before surgical edits.

ParameterTypeDescription
block_id *string
include_textboolean

update_block_text Update Block Text

Replace all text in a specific block with new plain text. Preserves the block type but replaces all rich text content. Use find_replace_in_block for targeted text changes that preserve formatting.

ParameterTypeDescription
block_id *string
new_text *string

find_replace_in_block Find Replace In Block

Find and replace text within a block, preserving all formatting. Replaces occurrences of old_text with new_text in each rich text segment while keeping bold, italic, links, and other annotations intact. Returns an error (not a silent no-op) if old_text does not appear in the block. The error message includes the block's current plain text so the caller can diagnose Unicode / whitespace / formatting mismatches (e.g., en-dash U+2013 vs hyphen-minus U+002D, curly vs straight quotes, non-breaking space U+00A0 vs regular space). Use update_block_text or update_table_cell for full-text replacement…

ParameterTypeDescription
block_id *string
new_text *string
old_text *string

update_block_rich_text Update Block Rich Text

Update a block's rich text with fully specified formatting. rich_text_json should be a JSON array of rich text objects, e.g.: [{"type":"text","text":{"content":"Bold text"},"annotations":{"bold":true}}]

ParameterTypeDescription
block_id *string
rich_text_json *string

insert_blocks_after Insert Blocks After

Insert new blocks after a specific block. blocks_json should be a JSON array of block objects. Use make_block format: [{"type":"paragraph","paragraph":{"rich_text":[{"type":"text","text":{"content":"Hello"}}]}}] For simple cases, use insert_text_after instead.

ParameterTypeDescription
block_id *string
blocks_json *string

insert_text_after Insert Text After

Insert a simple text block after a specific block.

ParameterTypeDescription
block_id *stringThe block to insert after.
text *stringThe text content.
block_typestringBlock type (paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, quote, etc.)

append_blocks_to_page Append Blocks To Page

Append blocks to the end of a page. blocks_json should be a JSON array of block objects.

ParameterTypeDescription
blocks_json *string
page_id *string

upload_file Upload File

Upload a file to Notion's own storage. Returns a ``file_upload_id`` that can be referenced in image, file, pdf, or video blocks via ``{"type": "file_upload", "file_upload": {"id": ...}}``. For the common case of uploading an image and creating a block in one step, use ``upload_image_as_block`` instead.

ParameterTypeDescription
file_path *stringLocal path to the file (PNG, JPEG, GIF, SVG, PDF, etc.), up to 20 MiB.

upload_image_as_block Upload Image As Block

Upload an image file to Notion and insert it as a new image block. The image is stored in Notion's own workspace storage, so no external image host is needed.

ParameterTypeDescription
file_path *stringLocal path to the image (PNG, JPEG, GIF, SVG, WEBP, etc.)
after_block_idstringIf provided, insert immediately after this block (siblings).
captionstringOptional caption text for the image.
parent_idstringIf after_block_id is empty, append to this page/block instead.

replace_image_block Replace Image Block

Replace an existing image block's content with a newly uploaded image. Preserves the block's position in the parent: the new image is inserted where the old one was and the old block is deleted. The block ID changes.

ParameterTypeDescription
block_id *stringThe existing image block to replace.
file_path *stringLocal path to the new image.
captionstringOptional caption for the new image (omit to drop the old one).

download_image_block Download Image Block

Download the image file from an image block to a local path. Works for all three image source types: external URL, Notion-hosted file, and file_upload references. Notion-hosted URLs are signed and short-lived, so this tool re-fetches them at call time.

ParameterTypeDescription
block_id *stringThe image block to download from.
output_path *stringLocal path to write the image to.

upload_file_as_block Upload File As Block

Upload a file (PDF, doc, any attachment) to Notion and insert as a file block. Analogous to upload_image_as_block but for non-image files. Use this for PDFs, spreadsheets, archives, etc.

ParameterTypeDescription
file_path *stringLocal path to the file.
after_block_idstringIf provided, insert after this block (siblings).
captionstringOptional caption.
namestringOptional display name override (defaults to the filename).
parent_idstringIf after_block_id is empty, append to this page/block.

insert_table_row Insert Table Row

Insert a new row into an existing table. The number of cells must match the table's existing width.

ParameterTypeDescription
cells_json *stringJSON array. Each element is either: - a plain string (single text segment) - a list of strings (multi-segment plain text in one cell) Example for a 3-column table: '["Widget", "In stock", "42"]'
table_id *stringThe table block ID.
after_row_idstringOptional row ID to insert after. If empty, append to end.

update_table_cell Update Table Cell

Replace the text of a single cell in a table row.

ParameterTypeDescription
cell_index *integerZero-based index of the cell within the row.
new_text *stringNew plain-text content for the cell. Overwrites all existing rich text segments in that cell.
row_id *stringThe table_row block ID.

delete_block Delete Block

Delete a specific block by ID.

ParameterTypeDescription
block_id *string

snapshot_page Snapshot Page

Create a complete snapshot of a page with all nested children. Saves to a JSON file if output_path is provided. The snapshot includes the full block tree with recursive children, suitable for restore. Subpages and inline databases are recorded as blocks but their own content is not captured. Set include_files to also download Notion-hosted images and files into a ``<snapshot name>.files`` folder beside the JSON. A restore can then upload them again even after they have left Notion's trash. Without it, the snapshot holds only links that expire within the hour. Default path: ~/notion-snapshot…

ParameterTypeDescription
page_id *string
include_filesboolean
output_pathstring

restore_page_from_snapshot Restore Page From Snapshot

Restore a page from a previously saved snapshot. Replaces the page's content with the snapshot. The snapshot is written first and the previous blocks are removed only after that succeeds, so a failed restore leaves the page as it was. Blocks the API cannot recreate (subpages, inline databases, Notion-hosted files) are never deleted. For each one in the snapshot: - Still on the page: left untouched, with the restored content written around it in snapshot order (``preserved``). If it was moved so the order cannot be kept, it stays put (``out_of_order``). - Saved with the snapshot (include…

ParameterTypeDescription
page_id *stringThe page to restore into.
snapshot_path *stringPath to the snapshot JSON file.

create_page Create Page

Create a new Notion page under a parent page or database.

ParameterTypeDescription
parent_id *stringID of the parent page or database.
title *stringTitle for the new page.
children_jsonstringOptional JSON array of block objects for initial content.
icon_emojistringOptional emoji character to use as the page icon.
parent_typestring"page_id" (default) or "database_id".
properties_jsonstringOptional JSON object of additional database properties to set. Example for setting Status: {"Status": {"status": {"name": "Done"}}} Example for setting Date: {"Due date": {"date": {"start": "2026-04-1…

update_page Update Page

Update a page's title, icon, or archive status. Only fields with non-default values are sent in the PATCH body. This tool can archive a page (archived=True) but never unarchives one; use restore_page to bring a page back from trash.

ParameterTypeDescription
page_id *stringThe page to update.
archivedbooleanPass True to archive the page. Defaults to False (no change sent).
icon_emojistringNew icon emoji. Omit or pass "" to leave unchanged.
properties_jsonstringOptional JSON object of database properties to set. Example: {"Status": {"status": {"name": "Done"}}} Example: {"Due date": {"date": {"start": "2026-04-15"}}} Can be combined with title — both will…
titlestringNew title text. Omit or pass "" to leave unchanged.

move_page Move Page

Move a page under a new parent page. The page keeps its ID, content, comments and subpages. Only page parents are supported; to place a page in a database use copy_page_to_parent.

ParameterTypeDescription
new_parent_id *stringThe page that becomes the new parent.
page_id *stringThe page to move.
parent_typestringMust be "page_id".

restore_page Restore Page

Restore a page (and its children) from trash. This is the explicit counterpart to delete_block on a page. ``update_page`` has a safety guard that blocks archived=False; this dedicated tool is the supported way to unarchive. When called on a page that was archived via a cascade (for example, a section container that was deleted along with its subpages), restoring the parent container automatically restores the cascaded descendants.

ParameterTypeDescription
page_id *stringThe page to restore from trash.

copy_page_to_parent Copy Page To Parent

Recreate a page under a new parent. Prefer move_page for plain moves. Creates a new page at the target with the same title, emoji icon and content, then archives the original. Use it to duplicate a page or to place a page in a database. LIMITATIONS (read carefully): * Block IDs of the new page differ from the original, so links to the original blocks will point at the archived page. * Notion-hosted images and files are copied as external references to signed URLs that expire within about an hour. Re-upload the source files for a permanent copy. * Nested subpages…

ParameterTypeDescription
new_parent_id *stringThe target parent page or database ID.
page_id *stringThe source page to copy.
archive_originalbooleanIf True (default), archive the source page after the copy completes. Set False to keep both copies side-by-side.
parent_typestring"page_id" (default) or "database_id".

create_comment Create Comment

Add a comment to a Notion page.

ParameterTypeDescription
page_id *string
text *string

list_comments List Comments

List all comments on a page or block.

ParameterTypeDescription
block_id *string

get_database Get Database

Get metadata and schema for a Notion database.

ParameterTypeDescription
database_id *string

query_database Query Database

Query a Notion database with optional filters and sorts.

ParameterTypeDescription
database_id *stringThe database to query.
filter_jsonstringJSON string for a Notion filter object. Leave empty for no filter.
page_sizeintegerMaximum rows per page fetch (max 100).
sorts_jsonstringJSON string for a Notion sorts array. Leave empty for no sorting.

get_self Get Self

Get the current authenticated Notion user or bot info.

list_users List Users

List all users in the workspace.

get_block Get Block

Get a single block by ID, including its type, content, and metadata.

ParameterTypeDescription
block_id *string