Key takeaways
- Move the team wiki (procedures, policies, onboarding, how-tos), not every personal note and project board.
- Export from Notion as Markdown & CSV, run the free script below, and import the zip under Settings › Import & export.
- Every page arrives as a draft, so nothing is published until someone has checked it.
- Notion databases don’t move as databases; the script lists them, with every image, subpage and page link to check.
- Claude can do much of the clean-up through CompassDocs’ built-in MCP server, and we walk new customers through it.
What moves, and what changes
CompassDocs stores every document as Markdown, and Notion can export Markdown, so the text comes across cleanly. There is no one-click Notion importer: you export from Notion, run a short script that adds the header CompassDocs’ importer reads, and import the zip.
| In Notion | In CompassDocs | How it moves |
|---|---|---|
| Teamspace or top-level page | Space | Created by the import from the space name you give the script |
| Page text, headings, lists, tables, links | Document | Exported as Markdown; the script keeps the page title |
| Subpages | Parent page on each document | Pages import flat; the script lists each page’s parent so you can nest them again |
| Images and files | Images in the document | Re-added after import; the script lists every one |
| To-do lists and toggles | Checklists and accordions | Arrive as Markdown lists; turn the ones people follow into checklists or accordions |
| Callouts | Callouts | Arrive as plain text; turn the important ones back into callouts |
| Databases | A page, a filterable table, or the helpdesk | Exported as CSV and not imported; the script lists them so you can decide each one |
| Page history and comments | Version history and comments | Not carried over; history starts fresh at import |
| Page sharing | Roles per space | Set again in CompassDocs (step 6) |
Notion is a flexible workspace for docs, databases and projects; CompassDocs is a knowledge base with approvals, policy sign-off and a helpdesk. Move the documents people rely on, and leave project boards and task databases where they work best. Our Notion comparison says plainly when Notion is the better fit.
Plan the move
- Find the wiki inside your workspace. Most teams have a handful of top-level pages that hold the real reference material: the handbook, IT how-tos, onboarding, policies, runbooks.
- Give each area an owner who decides what moves and checks the imported drafts.
- Sort pages into move, archive and drop. Personal notes, meeting notes and old project pages usually stay behind.
- Decide what happens to each database. A small reference table becomes a filterable table in a document; a request tracker is often better as a helpdesk request type; a project tracker usually stays in Notion.
- Pick a pilot area, such as the IT how-tos, and run the whole process on it before the rest.
Step 1: Install CompassDocs
The Community edition is free and open source with unlimited users. On a Linux server with Docker, one command starts CompassDocs and PostgreSQL, and a setup wizard creates your admin account in the browser:
curl -fsSL https://raw.githubusercontent.com/Felix-AZ-Solutions-LLC/CompassDocs/main/install.sh | bash
Requirements, other platforms and the Node.js install path are on the self-hosting page. You need an admin account to import.
Step 2: Export from Notion
Open the top-level page you’re moving, open its ••• menu, choose Export, pick Markdown & CSV, and include subpages. Workspace owners can also export everything at once from the workspace settings, but exporting one area at a time keeps each import small and easy to check. Menu names can change as Notion updates its app.
Notion gives you a zip. Unzip it: you’ll find one .md file per page, folders for subpages and images, and a .csv file for each database. Notion adds a long ID to every file and folder name; the script removes it.
Step 3: Convert the export
This free script needs only Python 3.8 or later. It reads every page in the export, takes the title from the page’s first heading, adds the header CompassDocs’ importer reads, and packs the result into a zip.
python3 notion2compassdocs.py ./IT-export it "IT"
The three arguments are the unzipped export folder, a short name for the CompassDocs space (letters, numbers and dashes), and the space’s display name. It writes two files:
it-import.zip: one Markdown document per page, each marked as a draft and taggedfrom-notion.it-checklist.csv: your clean-up list for step 5, with each page’s parent page, every image, every link to another page, every database, and any titles it had to make unique.
Show the script (notion2compassdocs.py)
#!/usr/bin/env python3
"""Turn a Notion "Markdown & CSV" export into a CompassDocs import zip.
Usage: python3 notion2compassdocs.py EXPORT_FOLDER SPACE_SLUG "Space name"
Needs Python 3.8+ only. Writes SPACE_SLUG-import.zip and SPACE_SLUG-checklist.csv.
Every page is imported as a draft so you can review it before publishing.
"""
import csv, json, re, sys, zipfile
from pathlib import Path
from urllib.parse import unquote
NOTION_ID = re.compile(r"\s+[0-9a-f]{32}$") # Notion adds " <32-character id>" to every name
def clean(name):
return NOTION_ID.sub("", name).strip()
def main(folder, space, space_name):
root = Path(folder)
space = re.sub(r"[^a-z0-9]+", "-", space.lower()).strip("-") or "imported"
out, report = Path(f"{space}-import.zip"), Path(f"{space}-checklist.csv")
seen, pages = {}, 0
with zipfile.ZipFile(out, "w", zipfile.ZIP_DEFLATED) as z, report.open("w", newline="") as r:
todo = csv.writer(r)
todo.writerow(["document", "what to check", "detail"])
for page in sorted(root.rglob("*.md"), key=lambda p: (len(p.relative_to(root).parts), str(p))):
text = page.read_text(encoding="utf-8", errors="replace").lstrip("")
lines = text.splitlines()
# Notion starts each page with "# Title"; use it, else the file name.
if lines and lines[0].startswith("# "):
title, body = lines[0][2:].strip(), "\n".join(lines[1:]).lstrip("\n")
else:
title, body = clean(page.stem), text
title = title or "Untitled"
# The importer matches pages by title within a space, so keep titles unique.
n = seen.get(title.lower(), 0) + 1
seen[title.lower()] = n
if n > 1:
todo.writerow([title, "duplicate title", f"imported as \"{title} ({n})\"; rename or merge it"])
title = f"{title} ({n})"
parent = " / ".join(clean(p) for p in page.relative_to(root).parent.parts)
if parent:
todo.writerow([title, "parent page", parent])
for src in re.findall(r"!\[[^\]]*\]\(([^)\s]+)", body):
if not src.startswith(("http://", "https://")):
todo.writerow([title, "image", unquote(src)])
for src in re.findall(r"(?<!!)\[[^\]]*\]\(([^)\s]+\.md)\)", body):
todo.writerow([title, "link to another page", clean(Path(unquote(src)).stem)])
front = {"title": title, "space": space, "space_name": space_name,
"type": "knowledge", "status": "draft", "tags": ["from-notion"]}
head = "\n".join(f"{k}: {json.dumps(v, ensure_ascii=False)}" for k, v in front.items())
z.writestr(f"documents/{space}/{pages:04d}.md", f"---\n{head}\n---\n\n{body}")
pages += 1
for table in sorted(root.rglob("*.csv")):
todo.writerow([clean(table.stem), "database (CSV)", "not imported; rebuild as a table or a page"])
z.writestr("manifest.json", json.dumps({"spaces": [{"slug": space, "name": space_name}]}, indent=2))
print(f"{pages} pages -> {out}; things to check listed in {report}")
if __name__ == "__main__":
if len(sys.argv) != 4:
sys.exit(__doc__)
main(*sys.argv[1:])
CompassDocs matches documents by title within a space, so the script keeps titles unique: if two pages share a title, the second becomes “Title (2)” and is listed in the checklist. You can change type to sop, technical or policy in a file before importing, or set it in CompassDocs afterwards.
Step 4: Import into CompassDocs
- Sign in as an admin and open Settings › Import & export (or type “import” in the command palette).
- Under Import, choose the zip and select Import. A zip can be up to 50 MB; split a large workspace into several exports.
- Read the result: how many documents were created, updated and skipped, and why any were skipped.
The space is created for you if it doesn’t exist yet, and every page lands as a draft. Importing is safe to repeat: a document with the same title in the same space is updated in place rather than duplicated.
Already have policies with read confirmations? An import never overwrites a published document that requires read confirmation unless you tick Also overwrite documents that require read confirmation, so a re-import can’t quietly ask everyone to confirm a policy again.
Step 5: Clean up images, subpages and databases
Work down it-checklist.csv with the area’s owner.
- Images. Open each image from the export folder and paste it into the step it illustrates; the editor sizes it in place. Remove the old image line.
- Subpages. For each “parent page” row, set the Parent page on the document so the hierarchy matches Notion where it matters.
- Links between pages. Links to other exported pages point at file names that no longer exist. Repoint them to the new documents, then run Content health under Settings to catch any broken links left.
- Databases. For each “database” row, decide: paste a small table into a document as a filterable table, set up a helpdesk request type for a request tracker, or leave it in Notion.
- Lists, toggles and callouts. Turn procedures people follow into interactive checklists, long detail into accordions, and important notes back into callouts.
- Document type. Mark procedures as SOPs, runbooks as Technical and policies as Policy, and add tags people will filter by.
Step 6: Set up spaces, roles and approvals
Notion’s page sharing doesn’t export, so set access in CompassDocs before you publish.
- Roles per space. Give people Viewer, Editor, Approver or Admin on each space, or build custom roles from individual permissions.
- Approvals. Choose open mode, where editors publish directly, or strict mode, where an approver reviews every change. This is the biggest change from Notion for most teams: policies and SOPs stop changing without anyone noticing.
- Sign-in. With Enterprise, connect SSO (SAML or OIDC) so access follows your directory.
- AI answers. Turn on AI search with your own Anthropic API key so people get answers that cite your documents.
Step 7: Publish and switch people over
- Publish the checked drafts, or send them through approval if the space uses strict mode.
- Mark the old Notion pages as moved. Add a line at the top of each top-level page pointing to CompassDocs, and stop editing them there.
- Announce it with the links people use most. An announcement in CompassDocs works well once people are signed in.
- Watch what people search for. Analytics shows searches that came up empty; each one is a page that was missed or is named differently from what people expect.
- Repeat for the next area.
Using Claude to speed it up
CompassDocs is built for MCP. Once an admin connects Claude to your workspace, Claude works within your permissions and can take on much of step 5:
- Search the imported drafts, then revise, retitle, retag and move them, rewriting a page into your SOP or runbook template with callouts and checklists.
- Place an image from a URL, reuse one already in the workspace, or give you a one-time drop link for a screenshot.
- Draft a policy handbook from imported policies, and draft helpdesk request types for trackers that used to be Notion databases, for a person to review and publish.
Approvals still apply to everything Claude changes. When you start with CompassDocs, we walk you through this setup; talk to us if you’d like help planning a migration.
Troubleshooting
- A page has a strange title: it had no heading at the top in Notion, so the script used the file name. Fix the title in CompassDocs.
- “Title (2)” in the import: two pages shared a title. Rename or merge them; the checklist names both.
- “File is too large”: the zip is over 50 MB. Export one top-level page at a time, or run the script on part of the export folder.
- Lines like “Owner: IT” at the top of a page: those are database properties Notion writes into the page. Keep them as text, move them into tags, or delete them.
- A policy wasn’t updated: it requires read confirmation and is protected. Tick the overwrite box if you mean to replace it.