Full-featured Notion MCP server with deep page reading, surgical editing, snapshot/restore, file uploads (Notion-hosted images/PDFs), table row manipulation, and all block types
Project description
notion-full-mcp
Full-featured Notion MCP server with deep page reading, surgical block editing, snapshot/restore, file uploads (Notion-hosted images and PDFs), table row manipulation, page restore from trash, destructive page copy across parents, and all block types including tables.
What's new in v0.3.0
- Page restore from trash.
restore_pageexplicitly unarchives a page by sendingarchived=False. This is the counterpart todelete_blockon a page and works around the intentional safety guard inupdate_pagethat blocksarchived=False. Cascaded child archives are restored automatically when the parent is restored. - Destructive page copy across parents.
copy_page_to_parentis 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 nestedchild_pagedescendants (copy those manually). move_pagedeprecated and now raises. Notion'sPATCH /pages/{id}endpoint silently ignores parent field changes -- calls return HTTP 200 but do nothing. Themove_pagetool now returns a clear error pointing callers tocopy_page_to_parentor manual drag-and-drop in the Notion sidebar.
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 external hosts like imgur. Works for PNG, JPEG, SVG, GIF, PDF, and any other Notion-supported attachment type.
- Image block helpers.
upload_image_as_blockuploads a file and inserts it at a position in one call.replace_image_blockswaps an existing image's content while preserving its position in the parent.download_image_blockpulls any image block's file to disk. - Table row manipulation.
insert_table_rowadds a row to an existing table with automatic width validation.update_table_cellreplaces 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
| Tool | Description |
|---|---|
search_pages |
Search pages by title |
search |
Search pages and/or databases |
get_page_info |
Get page metadata (title, parent, dates, URL) |
create_page |
Create a new page under a parent page or database |
update_page |
Update a page's title, icon, or archive status |
move_page |
DEPRECATED -- Notion's public API does not support moving pages. Returns a clear error pointing to copy_page_to_parent |
restore_page |
Restore a page (and its cascade-archived children) from trash |
copy_page_to_parent |
Recreate a page under a new parent (destructive workaround for the missing move capability; archives the original by default) |
Reading
| Tool | Description |
|---|---|
read_page_deep |
Read page with all nested children (recursive) |
list_block_children |
List direct children of a block or page |
get_block |
Get a single block by ID |
Editing
| Tool | Description |
|---|---|
update_block_text |
Replace all text in a block |
find_replace_in_block |
Find/replace text preserving formatting |
update_block_rich_text |
Update with full rich text specification |
Inserting
| Tool | Description |
|---|---|
insert_text_after |
Insert a text block after a specific block (supports all block types: paragraph, heading_1/2/3, bulleted_list_item, numbered_list_item, quote, etc.) |
insert_blocks_after |
Insert multiple blocks after a specific block |
append_blocks_to_page |
Append blocks to the end of a page |
Deleting
| Tool | Description |
|---|---|
delete_block |
Delete a block by ID |
Comments
| Tool | Description |
|---|---|
create_comment |
Add a comment to a page |
list_comments |
List all comments on a page or block |
Databases
| Tool | Description |
|---|---|
get_database |
Get database metadata and schema |
query_database |
Query a database with filters and sorts |
Users
| Tool | Description |
|---|---|
get_self |
Get the current authenticated user/bot |
list_users |
List all workspace users |
Snapshot / Restore
| Tool | Description |
|---|---|
snapshot_page |
Save complete page structure as JSON |
restore_page_from_snapshot |
Restore page from a snapshot (destructive) |
Media & Files
| Tool | Description |
|---|---|
upload_file |
Upload a file to Notion's own workspace storage (returns file_upload_id) |
upload_image_as_block |
Upload an image and insert it as a new image block in one step (after a block or appended to a page) |
replace_image_block |
Swap an existing image block's content with a newly uploaded file, preserving its position |
download_image_block |
Download the image file from an image block to disk — works for external URLs, Notion-hosted files, and file_upload references |
upload_file_as_block |
Upload any file (PDF, attachment) and insert it as a file block |
Tables
| Tool | Description |
|---|---|
insert_table_row |
Insert a new row into an existing table with automatic width validation |
update_table_cell |
Replace the text of a single cell in a table row |
Notion API Token
- Go to https://www.notion.so/my-integrations
- Create a new integration
- Copy the token (starts with
ntn_) - Share the pages/databases you want to access with the integration
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notion_full_mcp-0.3.1.tar.gz.
File metadata
- Download URL: notion_full_mcp-0.3.1.tar.gz
- Upload date:
- Size: 94.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
585440a1f998b91cb93b23eb001ce41163fe0d61dc8cd5017689624d8dd38fe5
|
|
| MD5 |
17e86a0b25bd8f489193dcb93c3c8f89
|
|
| BLAKE2b-256 |
d946b2bbfcb87aaacf07e528e9bc9406b4146e8f08a7258c73c6644313f37d03
|
Provenance
The following attestation bundles were made for notion_full_mcp-0.3.1.tar.gz:
Publisher:
publish.yml on cphoskins/notion-full-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
notion_full_mcp-0.3.1.tar.gz -
Subject digest:
585440a1f998b91cb93b23eb001ce41163fe0d61dc8cd5017689624d8dd38fe5 - Sigstore transparency entry: 1259460523
- Sigstore integration time:
-
Permalink:
cphoskins/notion-full-mcp@ee619f4b832199ce086cc83e918f151ed0039f61 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cphoskins
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ee619f4b832199ce086cc83e918f151ed0039f61 -
Trigger Event:
release
-
Statement type:
File details
Details for the file notion_full_mcp-0.3.1-py3-none-any.whl.
File metadata
- Download URL: notion_full_mcp-0.3.1-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79e17de2280d88d553057c0eab4ed7aff74552e523d76bcbae48bb1456b3e0fb
|
|
| MD5 |
cb0add586ee357b18c0d9a86aede4915
|
|
| BLAKE2b-256 |
057519f0ce83fb13d9f87b9ad2a7958ec77c984e90af7c842221ad1aaae501ac
|
Provenance
The following attestation bundles were made for notion_full_mcp-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on cphoskins/notion-full-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
notion_full_mcp-0.3.1-py3-none-any.whl -
Subject digest:
79e17de2280d88d553057c0eab4ed7aff74552e523d76bcbae48bb1456b3e0fb - Sigstore transparency entry: 1259460646
- Sigstore integration time:
-
Permalink:
cphoskins/notion-full-mcp@ee619f4b832199ce086cc83e918f151ed0039f61 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/cphoskins
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ee619f4b832199ce086cc83e918f151ed0039f61 -
Trigger Event:
release
-
Statement type: