Notion Large File Upload

v1.0.0
io.github.shoubhiksaha/notion-large-file-upload Checked 1 day ago Published 1 month ago

Upload local files up to 5 GB to Notion and attach them to pages, read from disk, not the chat.

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

upload_large_file_to_notion

Uploads a local file (especially > 20 MiB up to 5 GB) to Notion using streaming multipart chunking. Bypasses Notion MCP's 20 MiB limit. Returns the Notion file_upload ID, which must be attached to a page or block before it expires.

ParameterTypeDescription
filePath *stringAbsolute path to the local file (e.g., /path/to/large-video.mp4).
mimeTypestringOptional MIME type (e.g., video/mp4, application/pdf). If omitted, inferred from file extension.

upload_and_attach_to_notion

Uploads a large local file (> 20 MiB up to 5 GB) and immediately attaches it as a block to a Notion page or parent block.

ParameterTypeDescription
blockId *stringThe Notion page ID or parent block ID where the file should be appended.
filePath *stringAbsolute path to the local file to upload.
blockTypestringOptional block type. If omitted, inferred from MIME type.
captionstringOptional text caption to display beneath the file block in Notion.
mimeTypestringOptional MIME type. If omitted, inferred from file extension.

attach_file_upload_to_notion

Attaches a file that was already uploaded (a Notion file_upload ID) as a block to a Notion page or parent block. Use it after upload_large_file_to_notion, or to retry a failed attachment without uploading again.

ParameterTypeDescription
blockId *stringThe Notion page ID or parent block ID where the file should be appended.
blockType *stringThe block type to create for the file.
fileUploadId *stringThe Notion file_upload ID returned by an upload tool.
captionstringOptional text caption to display beneath the file block in Notion.