Import from Notion
vault_import_notionImport Notion pages and databases into a LoreDocs vault. Avoids re-imports via deduplication and supports resuming interrupted imports with a continuation token.
Instructions
Import Notion pages and databases into a LoreDocs vault.
Uses the import-once-and-own model: pages are fetched once and stored as LoreDocs documents. No live sync dependency.
Token is read from the NOTION_TOKEN environment variable or OS keychain -- it is NEVER passed as a parameter, so it never appears in MCP tool-call logs.
vault accepts a vault ID (stable across renames, preferred for automation) or a vault name (case-insensitive, for interactive use).
page_ids and database_ids accept Notion UUIDs (32 hex chars without dashes or 36 chars with dashes). Both null/omitted = rejected (at least one required).
continuation_token: opaque token from a prior call's return value. When provided, omit page_ids/database_ids/vault/checkpoint_file to resume. The token encodes the vault's primary-key UUID -- recreation under the same name invalidates the token.
Block depth is capped at LOREDOCS_NOTION_MAX_BLOCK_DEPTH (default 10). Pages hitting the cap are listed in truncated_pages in the return value.
MCP host cancellation may leave a partial checkpoint. Use the continuation_token from the last successful response to resume, or run a fresh import (deduplication prevents re-import of already-committed pages).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| vault | Yes | ||
| resume | No | ||
| category | No | reference | |
| page_ids | No | ||
| max_pages | No | ||
| database_ids | No | ||
| checkpoint_file | No | ||
| continuation_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |