BiteFoundry Notion MCP Server
Provides tools for reading and editing Notion pages, appending and toggling blocks, querying and creating database records, managing comments, searching a synced workspace, and exporting pages as Markdown.
@bitefoundry/notion
Read and edit Notion pages, work with database records, and search a synced workspace from the terminal.
BiteFoundry · Latest release notes

Highlights
Pillar | Capabilities |
Minimal-Chrome TUI | Authentic Notion editorial aesthetic ( |
High-Res Terminal Images | Native inline image previews for Notion-hosted & external media via Kitty Graphics, iTerm2, Sixel, and 24-bit Truecolor Half-Block ( |
Local SQLite FTS5 + IPC Daemon | Workspace-scoped SQLite WAL + FTS5 cache ( |
4-in-1 Agent Interface | Same binary powers the Interactive TUI, scriptable |
Related MCP server: notion-full-mcp
Quick Start
Upgrading from 0.1.x? Change nt to notion in shell scripts and set the MCP server’s command to notion.
# 1. Install globally (installs the native `notion` command)
npm i -g @bitefoundry/notion
# 2. Authenticate — Internal Integration Token (30-second setup) or Public OAuth 2.0
notion login --token ntn_...
# Or Public OAuth 2.0 loopback:
notion login --oauth --client-id "$NOTION_CLIENT_ID" --client-secret "$NOTION_CLIENT_SECRET"
# 3. Sync your workspace & launch the Notion-native TUI
notion sync
notionnotion pages get PAGE_ID --jsonRead page Markdown and see which blocks or comments were loaded. A compact read skips the comments request. Use notion comments list PAGE_ID --json to fetch comments separately. For full detail, add --full in the CLI or pass compact: false to get_page in MCP.
Keybindings Cheat Sheet
Key | Action | Context |
| Toggle collapsible Workspace Sidebar | Global |
| Cycle focus across Sidebar, Canvas, and Comments Drawer | Global |
| Move across sidebar tree, page blocks, or database rows | Global |
| Check/uncheck live | Page Canvas |
| Toggle Centered vs Full Width / Favorite star / Copy code block | Page Canvas |
| Slash Quick Append ( | Page / Database |
| Toggle right-split Comments Peek Drawer & reply inline | Page Canvas |
| Switch Database views: Table / Board (Kanban) / List | Database |
| Filter rows / Cycle sort / Move Kanban card to another Status column | Database |
| Quick Find & Command Palette (FTS5 search + workspace commands) | Global |
| Link Extractor / File Picker ( | Global |
| Switch Workspace / Settings & Palettes / Keyboard Shortcuts Help | Global |
CLI, HTTP API & MCP
CLI (--json ready)
# Search, read, append & export Notion pages
notion search "Q4 Roadmap" --json
notion pages list --json
notion pages get "Q4 Launch Plan"
notion pages get "Q4 Launch Plan" --json
notion pages get "Q4 Launch Plan" --json --full
notion pages edit "Q4 Launch Plan" --editor
notion pages append "Q4 Launch Plan" "/todo Tag v1.0 release"
notion pages export "Q4 Launch Plan" --out launch-plan.md
notion blocks edit <block-id> --text "Release **verified**" --json
notion blocks toggle <block-id>
# Query & create Notion database items, list workspace users
notion db list --json
notion db query "Q4 Roadmap" --json
notion db create-item "Q4 Roadmap" --title "Ship v1.0" --status "In Progress"
notion users list --json
notion comments list "Q4 Launch Plan" --json --limit 50 --cursor <next_cursor>
notion comments add "Q4 Launch Plan" "Green light for launch!"
notion download <url-or-block-id> --json
# Multi-workspace profiles & background sync daemon
notion workspaces list
notion workspaces add work --token ntn_...
notion workspaces use work
notion daemon startIdentifier resolution & --json exit contract: UUIDs and Notion URLs pass through directly with zero extra lookups. Read commands accept exact or partial titles (preferring active pages), while write commands require a single exact title match among active pages (use --unarchive with a page ID or URL if an archived page is not in the local cache; pass a page ID or URL whenever duplicate or newly-created external titles may exist). Runtime failures under --json exit 1 and print {"ok":false,"error":{"code":"...","message":"..."}} to stdout (with details.candidates for ambiguous/missing titles); argument usage errors exit 2 with stderr usage text and empty stdout. On --json, treat exit 0 (and not ok: false) as success—some commands omit a top-level ok field, and doctor --online --json reports probe failures inside online_probe.ok.
Corporate proxies and custom root certificates
HTTPS connections trust the bundled Mozilla roots and the operating system's trust store. On a network that inspects HTTPS, also trust the proxy's root CA by pointing NOTION_EXTRA_CA_PEM at a PEM file (one certificate or a chain), or by setting it to the PEM text itself:
export NOTION_EXTRA_CA_PEM=/etc/ssl/corp-root-ca.pem
notion doctor --online # lists each CA source and how many certificates it addedSSL_CERT_FILE and NODE_EXTRA_CA_CERTS are read as well, as PEM file paths. Every variable that is set is loaded. A NOTION_EXTRA_CA_PEM that cannot be loaded is an error; a bad SSL_CERT_FILE or NODE_EXTRA_CA_CERTS is skipped with a warning on stderr. Certificate verification cannot be turned off.
Local HTTP JSON API (notion serve)
notion serve --host 127.0.0.1 --port 8791 --api-key "$API_TOKEN"
curl -H "Authorization: Bearer $API_TOKEN" "http://127.0.0.1:8791/api/v1/search?q=Roadmap"/api/v1/* always needs a key: pass --api-key or set NOTION_SERVE_API_KEY, otherwise a random key is generated for the run and printed once to stderr (--allow-keyless turns it off on loopback binds). Browsers are locked out by default: there are no CORS headers unless you pass --cors-origin <origin>, and requests with a foreign Host header are rejected (--allowed-host <name> adds one).
Full endpoint catalog and OpenAPI schema: docs/API.md · docs/openapi.yaml.
MCP Server (notion mcp — 20 Tools)
{
"mcpServers": {
"notion": {
"command": "notion",
"args": ["mcp"]
}
}
}Full tool catalog and argument schemas: docs/MCP.md · npm packaging details: docs/NPM.md.
@bitefoundry Enterprise Terminal Suite
Package | Commands | Workspace | Interfaces |
| Microsoft Teams (Chats, Channels, Meetings & Threads) | TUI · CLI · HTTP · MCP | |
| Microsoft Outlook (Mail, Calendar & Contacts) | TUI · CLI · HTTP · MCP | |
| Microsoft OneNote (Notebooks, Sections & Pages) | TUI · CLI · HTTP · MCP | |
| Microsoft SharePoint & OneDrive (Sites, Libraries & Lists) | TUI · CLI · HTTP · MCP | |
| Atlassian Jira (Kanban, Sprints, JQL) & Confluence Wiki | TUI · CLI · HTTP · MCP | |
|
| Notion (Editorial Pages, Interactive Blocks & Databases) | TUI · CLI · HTTP · MCP |
Disclaimer: Unofficial terminal client for Notion. Not affiliated with, endorsed by, or sponsored by Notion Labs, Inc.
Available Tools
20 toolsadd_commentC
Add a comment to a Notion page or reply to an existing discussion thread.
Inputs: page (required), text (required), discussion_id.
append_blocksA
Append Markdown or slash-style blocks (/h1, /todo, /callout, /code, /quote, /toggle) to a Notion page or block. Returns compact {ok, appended, block_ids} by default; pass compact:false for full block objects. Cost: one write request per 100 blocks, then a read of the target's block tree to refresh the cache.
Inputs: page (required), markdown (required), compact.
archive_pageB
Archive (or unarchive) a Notion page. Destructive archive requires confirm=true.
Inputs: page (required), confirm (required), archived.
create_database_itemC
Create a new row page inside a Notion database with title, optional status, custom properties, and Markdown body.
Inputs: title (required), database (required), body, status, +1 more.
create_pageA
Create a new Notion page under a parent page or database from Markdown content. Cost: one write request per 100 blocks.
Inputs: title (required), parent_id (required), icon, markdown, +1 more.
download_mediaA
Download a Notion-hosted or external media URL or image/file/pdf block ID to local disk. Cost: downloads the whole file to disk; large files take proportionally longer.
Inputs: target (required), out_dir.
get_pageA
Fetch a Notion page. Compact by default (never requests comments) with id, title, Markdown, omitted counts/properties, and a hint. Pass fields:[...] for specific standard fields or dynamic page properties (case-insensitive); skips comments unless "comments" is requested. Pass compact:false for full detail (up to 2000 comments). Cost: 1 page request; blocks on change/cache miss/refresh; comments only for compact:false or fields containing "comments".
Inputs: page (required), fields, compact, offline, +1 more.
get_page_blocksA
List the recursive block tree for a Notion page or block ID. Offline reads report a cache miss when no children have been fetched. Returns has_more/next_cursor and incomplete_blocks. Cost: one request per 100 blocks plus one per block with children; use limit and cursor on long pages. offline:true makes none.
Inputs: page (required), limit, cursor, offline.
list_commentsB
List comments on a Notion page. With offline:true, comments that were never fetched are a tool error. Cost: one request per 100 comments unless offline:true.
Inputs: page (required), limit, cursor, offline.
list_databasesB
List accessible Notion databases with schemas. Cost: served from the cache once the workspace has synced; refresh:true or an unsynced cache runs a workspace sync.
Inputs: limit, cursor, offline, refresh.
list_usersA
List Notion workspace users with their IDs, names, types, and emails. Cost: reads every user on each call, one request per 100 users.
Inputs: limit, cursor.
list_workspacesA
List all configured Notion workspace profiles and the currently active workspace.
Inputs: no named parameters.
query_databaseA
Query rows of a Notion database with optional Notion API JSON filter and sorts. filter and sorts are rejected with offline:true. Cost: one request per 100 rows up to limit; offline:true makes none.
Inputs: database (required), limit, sorts, cursor, +2 more.
search_pagesA
Search Notion pages and databases using local SQLite FTS5 (with Korean <3 char LIKE fallback) or remote Notion Search API. Cost: no network request when the synced local cache has hits; remote:true, or an empty or unsynced cache, calls Notion search.
Inputs: query (required), limit, remote, offline.
sync_nowA
Synchronize Notion workspace pages and databases into the local SQLite WAL + FTS5 cache immediately. Streams every search batch into the cache; returns fetched_count, complete and full. Cost: one Notion search request per 100 objects. Incremental by default and usually 1-2 requests; full:true rescans the whole workspace and can take minutes on large workspaces.
Inputs: full.
toggle_todoA
Toggle or explicitly set a Notion to_do block's checkbox state.
Inputs: block_id (required), checked.
update_blockA
Update a block's rich text. Use toggle_todo when changing only the checkbox.
Inputs: text (required), block_id (required), checked, block_type.
update_database_itemC
Update title, status, or arbitrary Notion properties on a database row page.
Inputs: page_id (required), title, status, properties.
update_pageA
Change a Notion page's title, emoji icon, or both. Omit a field to keep it or send null to clear it.
Inputs: page (required), icon, title.
whoamiA
Return the currently authenticated Notion user/bot and active workspace metadata.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct resource+action pair (pages vs blocks vs databases vs comments vs media), and descriptions clarify the boundaries, e.g. get_page vs get_page_blocks and update_page vs update_block. Minor overlap remains between update_block and toggle_todo, and between whoami and list_users, but the descriptions explicitly disambiguate these cases.
Nearly all tools follow a snake_case verb_noun pattern (list_comments, create_page, update_database_item, query_database). The only deviations are sync_now and whoami, which are minor and still readable rather than conflicting conventions.
At 20 tools this is on the heavy side of the 3-15 sweet spot, but the Notion domain is genuinely broad (pages, blocks, comments, databases, items, users, sync, media), and each tool maps to a real operation. No obvious filler tools pad the count.
Coverage is strong: page/block CRUD, comment read/write, database listing and row CRUD, search, sync, users, and media download are all present. Gaps exist for database schema creation/alteration (no create_database/update_database) and block deletion or reordering, plus media upload, but these are workaroundable or narrower use cases.
Maintenance
Related MCP Connectors
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP Server in Rust for creating Notion pages & mdBooks with LLMs 🦀24MIT
- AlicenseAqualityBmaintenanceFull-featured Notion MCP server enabling deep page reading, block editing, snapshot/restore, file uploads, table manipulation, page restore, and destructive page copying.3348 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceA lightweight, read-only MCP server for Notion that enables searching, reading pages, and querying databases with token-efficient output and smart caching.26 npm5MIT
- AlicenseNot gradedqualityDmaintenanceFast, read-only MCP server for Notion that reads directly from local SQLite cache, enabling instant access to Notion pages, databases, and users without API calls or rate limits.2MIT