Skip to main content
Glama

@bitefoundry/notion

Read and edit Notion pages, work with database records, and search a synced workspace from the terminal.

npm version platforms Rust & Ratatui License: MIT

BiteFoundry · Latest release notes

Notion TUI Demo


Highlights

Pillar

Capabilities

Minimal-Chrome TUI

Authentic Notion editorial aesthetic (notion): 1-line Breadcrumb Bar, collapsible Workspace Sidebar ([) with Favorites & nested tree, Centered (~88 col) / Full Width (w) Page Canvas, 10 canonical Notion pill colors, live interactive to_do checkboxes (Space/x) & toggle blocks, Database Table (1) / Board Kanban (2) / List (3) views, Comments Peek Drawer (C), Quick Find (Ctrl+K), Multi-Workspace Switcher (Ctrl+S), and 5 curated palettes (Clean Dark, Warm Paper, Tokyo Night, Catppuccin, Nord).

High-Res Terminal Images

Native inline image previews for Notion-hosted & external media via Kitty Graphics, iTerm2, Sixel, and 24-bit Truecolor Half-Block (▀) fallback (v HD modal & notion download).

Local SQLite FTS5 + IPC Daemon

Workspace-scoped SQLite WAL + FTS5 cache (pages, databases, blocks, comments, pages_fts) with automatic <3-char Korean/CJK LIKE fallback, plus single-instance background sync IPC daemon (notion daemon start).

4-in-1 Agent Interface

Same binary powers the Interactive TUI, scriptable --json CLI, local HTTP JSON API (notion serve, :8791), and stdio MCP server (notion mcp, 20 typed tools with confirm: true archive guard).


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
notion
notion pages get PAGE_ID --json

Read 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

[ / Ctrl+B

Toggle collapsible Workspace Sidebar

Global

Tab / Shift+Tab

Cycle focus across Sidebar, Canvas, and Comments Drawer

Global

j k / ↑ ↓

Move across sidebar tree, page blocks, or database rows

Global

Space / x

Check/uncheck live to_do block or expand/collapse toggle block

Page Canvas

w / f / y

Toggle Centered vs Full Width / Favorite star / Copy code block

Page Canvas

a / n / e

Slash Quick Append (/h1, /todo, /callout) / New Page / $EDITOR

Page / Database

C

Toggle right-split Comments Peek Drawer & reply inline

Page Canvas

1 / 2 / 3

Switch Database views: Table / Board (Kanban) / List

Database

f / s / m

Filter rows / Cycle sort / Move Kanban card to another Status column

Database

Ctrl+K / Ctrl+P

Quick Find & Command Palette (FTS5 search + workspace commands)

Global

u / Ctrl+F / v

Link Extractor / File Picker (z zoxide) / HD Image Preview

Global

Ctrl+S / Ctrl+, / ?

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 start

Identifier 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 added

SSL_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

@bitefoundry/teams

teams

Microsoft Teams (Chats, Channels, Meetings & Threads)

TUI · CLI · HTTP · MCP

@bitefoundry/outlook

outlook

Microsoft Outlook (Mail, Calendar & Contacts)

TUI · CLI · HTTP · MCP

@bitefoundry/onenote

onenote

Microsoft OneNote (Notebooks, Sections & Pages)

TUI · CLI · HTTP · MCP

@bitefoundry/sharepoint

sharepoint, bitefoundry-onedrive

Microsoft SharePoint & OneDrive (Sites, Libraries & Lists)

TUI · CLI · HTTP · MCP

@bitefoundry/atlassian

atlassian, confluence, conf

Atlassian Jira (Kanban, Sprints, JQL) & Confluence Wiki

TUI · CLI · HTTP · MCP

@bitefoundry/notion

notion

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 tools
add_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

    A3.5/5.0

    Scored across 20 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Full-featured Notion MCP server enabling deep page reading, block editing, snapshot/restore, file uploads, table manipulation, page restore, and destructive page copying.
      33
      48 PyPI
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A lightweight, read-only MCP server for Notion that enables searching, reading pages, and querying databases with token-efficient output and smart caching.
      26 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Fast, 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.
      2
      MIT