Skip to content

notion

Query and write to a Notion workspace.

The notion command can search accessible pages, inspect databases, create pages, append Markdown as blocks, update database rows, and answer natural-language questions with clanker notion ask.

Usage

bash
clanker notion [command]

Alias: nt

Authentication

yaml
notion:
  integration_token: ""
  default_database_id: ""

Environment variables:

VariableDescription
NOTION_API_KEYInternal integration token
NOTION_DATABASE_IDOptional default database ID

Notion integrations start with no page access. Share each page or database with the integration from the Notion UI under ... > Connections before expecting search or database results.

Commands

CommandDescription
askAsk natural-language questions about accessible pages and databases
listList pages, databases, or users
getGet a page, database, blocks, or user
searchSearch page and database titles across accessible workspace content
page createCreate a page under a parent page or database
page appendAppend Markdown content to an existing page
db row createCreate a row in a database using Notion property JSON
db row updatePatch a row's properties

Examples

bash
clanker notion search "prod runbook"
clanker notion list databases
clanker notion get page <page-id>
clanker notion page create --parent <page-id> --title "Incident Notes" --text "## Summary"
clanker notion page append --page <page-id> --markdown incident.md

Natural-language knowledge-base queries:

bash
clanker notion ask "where is the prod-RDS-snapshot policy?"
clanker notion ask "what databases track incidents?"
clanker notion ask "summarize our last 5 runbooks"

MCP

The MCP server exposes Notion tools for ask, search, page/block reads, database queries, page creation, appends, page property updates, and database row creation. See mcp.