Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Notion CLI

$ notion Community Med Risk
Community (4ier) · Workspace & SaaS · MIT · macos / linux / windows

Notion CLI (notion, 4ier/notion-cli) provides a fast single Go binary covering Notion pages, databases, blocks, comments, and search. It automatically outputs clean --json for scripts/agents while supporting native Markdown reading/writing and shorthand --filter syntax.

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install 4ier/tap/notion-cli
CLI vs MCP Decision Hybrid (CLI + MCP)

Use notion CLI for deterministic --json piping, Markdown block export, and shell database queries; use Notion's official hosted MCP when OAuth user-level workspace permissions are preferred over an integration token.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Built specifically with agents and pipes in mind: --json output, Markdown block conversion, shorthand filters, and NOTION_TOKEN env auth.

  • --json supported consistently across search, page, db, and block
  • Non-interactive NOTION_TOKEN and --with-token auth
Trust & Safety 20 / 25

Notion integration tokens can only access pages/databases explicitly shared with the integration, creating a natural RBAC boundary.

  • Integration-level page sharing restricts workspace exposure
  • Supports read-only Notion integration capabilities
Setup & Portability 14 / 15

Single Go binary distributed via Homebrew tap, npm wrapper (@4ier/notion-cli), go install, Scoop, and Docker.

  • brew install 4ier/tap/notion-cli and npm install -g @4ier/notion-cli
Utility & Efficiency 13 / 15

Saves agents from writing verbose Notion block-JSON payloads thanks to built-in Markdown support and shorthand --filter.

  • Markdown-to-block and block-to-Markdown conversion
Maintenance & Lineage 7 / 10

Community-maintained MIT project (4ier/notion-cli), not an official Notion Labs binary.

  • Third-party maintainer rather than official Notion organization
Docs & Verifiability 7 / 10

Clear README and built-in --help, though third-party docs are less standardized than official SDKs.

  • GitHub README and command help pages

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads NOTION_TOKEN from environment variables or stores integration tokens locally via notion auth login --with-token.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

CLI is free (MIT); Notion integration tokens work on all Notion plans including Free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Notion CLI Agent Rules
- Share only specific target pages/databases with the `NOTION_TOKEN` integration so the blast radius is scoped by Notion permissions.
- Always pass `--json` on read/search commands and check parent IDs before creating pages.
- Require explicit human approval before archiving, deleting blocks, or bulk-updating database properties.

Agent-Ready Command Recipes

Safe Read-Only Queries

Search Notion pages and databases as JSON
notion search "architecture" --json

Searches pages and databases shared with the integration token and returns JSON metadata.

Read a Notion page's blocks as JSON
notion page get <PAGE_ID> --json

Fetches page properties and metadata cleanly without modifying workspace content.

Controlled Writes & Previews

Create a draft subpage under a known parent
notion page create --parent <PARENT_PAGE_ID> --title "Agent Research Notes" --json

Creates a single child page under an explicitly approved parent page ID.

Strengths for Agents

  • + Clean --json output and NOTION_TOKEN auth designed for agent pipelines.
  • + Native Markdown conversion avoids verbose Notion block JSON construction.
  • + Notion integration sharing naturally limits access to approved pages and databases.

Caveats & Pitfalls

  • ! Community project (4ier/notion-cli), not an official Notion Labs CLI.
  • ! Requires creating a Notion Internal Integration and manually sharing target pages with it.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI