Notion

v0.1.3
com.foreverworks/notion Checked 8 hours ago Published 3 days ago

Search, read and write your Notion workspaces, with pages as Markdown and typed database queries.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

add_column Add a column

Add a column to a database: a name it does not have yet, a type, and that type's settings (options, a number's format, a formula's expression, a relation's target). Checked against the table as it is now before anything is sent; answers the column as Notion made it. Renaming and deleting columns are left to Notion's app.

ParameterTypeDescription
column *object
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.

add_comment Add a comment

A comment on a page, or a reply in one of its discussions, shown in Notion as the workspace's integration. Not resent after a lost answer (outcome_unknown): get_comments says whether it arrived.

ParameterTypeDescription
markdown *stringThe comment, in Markdown.
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
discussionstringA discussionId from get_comments, to reply in that thread. Default: a new comment on the page.

add_options Add options to a column

Add options to a select, multi-select or status column (a status option in a group: To-do, In progress, Complete). The options already there are kept and sent back by id, and the column is read back after: an option that went missing fails the call. Names already there are skipped and listed under alreadyThere. For one new option while writing a row, create_page's allow_new_options is enough.

ParameterTypeDescription
column *stringA select, multi-select or status column, by name.
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
options *arrayThe options to add; one already there is left as it is.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
groupstringStatus only: the group the new options go in. Default: To-do.
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.

append_content Add to a page

Markdown added to a page's body: at the end (default), at the start, or after a passage. Not resent after a lost answer: that is outcome_unknown, and read_page says whether it went through.

ParameterTypeDescription
markdown *stringNotion's Markdown: headings, lists, to-dos (- [ ]), quotes, code, tables, callouts.
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
afterstringOr after a passage, named "first words...last words" as it reads in the page.
atstringWhere it goes.

count_rows Count rows

How many rows match where, and with by, how many hold each value of one column ("how many tasks per status"), most first; an empty value counts as "(empty)", and a multi-select row counts once per option. Reads the matching rows without sending them, up to Notion's 10,000 per query.

ParameterTypeDescription
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
bystringA column to count by: rows per option, per value, per related page.
in_trashbooleanRows in Notion's trash instead of the live ones.
matchstringWhether a row must meet all the conditions in where, or any of them.
notion_filterobjectNotion's own filter object, for what where cannot say (nested and/or, rollups). ANDed with where when both are given.
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.
wherearrayConditions on the columns, exactly as query_database's where takes them.

create_database Create a database

Create a database under a page, with a title column and the other columns given, each checked against the others before anything is made (and a relation's target found in the same workspace). Answers its id, URL and table. A database is not created twice: if the answer is lost it is outcome_unknown, and search says whether it exists.

ParameterTypeDescription
parent *stringThe page it goes under: its id or Notion URL.
title *stringThe database's title.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
columnsarrayIts other columns, as add_column takes one.
inlinebooleanShown inside the page's body rather than as a page of its own.
title_columnstringThe name of its title column, which every row is known by. Default: Name.

create_page Create a page

A new row in a database, its properties checked against the columns first (an unknown column or option is refused with the ones that exist), a child page under a page, or with no parent a private page at the top of a workspace (a title and a body, no properties). The body is Notion's Markdown. A row can start from one of its database's templates (template): Notion applies it just after the page is made, so read_page a moment later shows what it filled in. Answers the new page's workspace, id and URL. A page is not created twice: if the answer is lost it is outcome_unknown, and search or query_…

ParameterTypeDescription
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
allow_new_optionsbooleanLet a select or multi-select value add an option the column does not have yet. A status can never be added.
iconstringAn emoji for the page's icon.
markdownstringThe body, in Notion's Markdown. Notion takes a leading '# ' heading as the title, so start the body below it.
parentstringWhere it goes: a database (id, URL or dataSourceId) for a new row, or a page for a child page. Leave it out for a private page at the top level of the workspace account names.
propertiesobjectColumn name -> value, checked against the database's columns (describe_database). Text and title: a string. Number: a number. Select and status: an existing option's name. Multi-select: a list of name…
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.
templatestringFor a row: "default" for the database's default template, or a template's name or id (list_database_templates). Notion fills the row's body and properties from it just after making it; properties give…
titlestringThe title. For a row, this fills the database's title column.

describe_database Describe a database

A database's columns: name, type, the options of a select, multi-select or status (with a status's groups), where a relation points, a formula's expression. Read it before writing where, sort or properties: every one of those names these columns. A database holding several tables (data sources) lists each.

ParameterTypeDescription
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.

download_files Download a page's files

Save the files Notion hosts for a page to this server's outbox: its files columns and the file blocks of its body (up to 50 MiB each). Answers each file's path, size and SHA-256, and where it was on the page. External links are listed, not fetched. A file that fails is listed with why, beside the others.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
bodybooleanAlso the files in the page's body: file, image, PDF, video and audio blocks, nested ones included.
columnstringOnly this files column; the body is then left alone.
save_dirstringA folder inside the outbox, e.g. "2026-10/contracts". Default: a folder named after the page's id.

edit_content Edit a page

Find and replace in a page's body, in its Markdown as read_page shows it. The smallest change that does the job: the rest of the page, its comments and its history stay as they were. Not resent after a lost answer: that is outcome_unknown, and read_page says whether it went through.

ParameterTypeDescription
edits *arrayFind-and-replace pairs, applied in order.
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
allow_deletingbooleanLet the change remove child pages or databases inside the page. Off, Notion refuses such a change.

get_comments Get comments

The open comments on a page, oldest first, each with its discussion, author, time and text. Resolved ones are not listed by Notion.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
cursorstringnextCursor from the previous call, exactly as it came back, to read on.
limitintegerComments per call.

health Health

Ask each workspace: is its integration token accepted, which workspace and integration it is, and whether it sees any page at all (a new integration sees nothing until pages are shared with it). One broken workspace never hides the others' answers. Run this before concluding the server is broken.

ParameterTypeDescription
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.

list_accounts List accounts

The Notion workspaces this server reaches, by label (one per token file), from the token files alone: no request to Notion. Every other tool finds an id's workspace by itself, so a label is needed only to narrow a search. Says nothing about whether a token works; that is health.

list_database_templates List database templates

The page templates of a database or data source, with their page ids, names and default flags. Use this catalog to distinguish templates from ordinary rows; search can return both. Inspect their pages before editing recurring content. Follow nextCursor when hasMore is true.

ParameterTypeDescription
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
cursorstringnextCursor from the previous call, exactly as it came back, to read on.
limitinteger
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.

list_users List users

The people (and bots) of every workspace, or of the one account names: each one's id, name, and email when the token may read it. A person column's where takes a name or an email directly, so this is for checking who is who, or for the id when two people share a name.

ParameterTypeDescription
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
querystringWords in a name or an email. Leave it out to list everyone.

list_views List a database's views

A database's saved views (table, board, calendar, ...): each one's id, name, type, the table it shows, and the filter and sorts saved in it, in Notion's query grammar with columns by name. Use it to find the view a person means ("my Open tasks"), then query_view to read its rows exactly as Notion shows them.

ParameterTypeDescription
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.

move_page Move a page

Under another page, or into a database as a row. Only within the page's own workspace: Notion cannot move a page between workspaces.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
to *stringThe new parent: a page, or a database (the page becomes a row). Same workspace only.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.

query_database Query a database

Rows of a database, filtered by where (checked against the columns first), sorted, with the columns asked for. Each row is its id, its title and its non-empty columns as plain values. A relation lists its first 25 pages here (truncated names it); read_page lists them all. nextCursor reads on; Notion stops one query at 10,000 rows (incomplete says so). Works on the Free plan, unlike the hosted connector's SQL query.

ParameterTypeDescription
database *stringThe database: its id, its Notion URL, or the dataSourceId search returned for it.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
cursorstringnextCursor from the previous call, exactly as it came back, to read on.
in_trashbooleanRows in Notion's trash instead of the live ones.
limitintegerRows to return; more than 100 are read 100 at a time.
matchstringWhether a row must meet all the conditions in where, or any of them.
notion_filterobjectNotion's own filter object, for what where cannot say (nested and/or, rollups). ANDed with where when both are given.
propertiesarrayThe columns to return, by name; the title always comes back. Default: all.
sortarrayThe order, first key first. Default: Notion's (the database's own order).
sourcestringWhich table, only when the database holds several (describe_database lists them): its name or id.
wherearrayConditions on the columns, e.g. [{"property": "Status", "op": "equals", "value": "In progress"}]. The column type comes from the schema.

query_view Query a saved view

The rows a saved view shows, in its order, filtered and sorted exactly as Notion applies the view (quick filters and 'me' included), with total, the number of rows the view holds. Each row is its id, title and non-empty columns as query_database answers them. Notion keeps a view's result about 15 minutes: nextCursor reads on in that same result, and after that a new call without cursor starts again. A view takes no extra filter: for that, query_database with where.

ParameterTypeDescription
view *stringThe view: its id from list_views, or the view's own Notion link (it carries ?v=).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
cursorstringnextCursor from the previous call, exactly as it came back, to read on.
limitintegerRows to return. Each row is one more request, so read a long view in pages.
propertiesarrayThe columns to keep in each row, by name; the title always comes back. Default: all.

read_blocks Read blocks

The blocks directly inside a page or a block, in order, one level down: each one's id, type and plain text, and hasChildren when it holds more (read those by its id). An AI meeting-notes block answers its title, status, recording and calendar times, and the ids of the blocks that hold its summary, notes and transcript, each readable here in turn. A type the API does not support says its Notion name under unsupported. For a page's body as one text, read_page is cheaper.

ParameterTypeDescription
block *stringThe page or block: its id, or a Notion URL. A URL's #fragment names a block inside the page, and that block is the one read.
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
cursorstringnextCursor from the previous call, exactly as it came back, to read on.
limitintegerBlocks to return; more than 100 are read 100 at a time.

read_page Read a page

One page by id or URL, in whichever workspace has it: its title, parent and properties as plain values (a select is its option's name, a relation its page ids, all of them), and its body as Notion's Markdown. Empty properties are left out. A body past Notion's limit (~20,000 blocks) comes back cut, with contentTruncated and the ids of the parts left out, each readable as a page. A database's id is refused: use describe_database.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
contentbooleanInclude the body as Markdown. false reads the properties alone, which is cheaper.
include_transcriptbooleanFor a meeting-notes page, include the transcript.

replace_content Replace a page's body

A page's whole body, replaced by this Markdown. Properties are untouched. Child pages and databases in the body are kept unless allow_deleting. An empty body needs clear: true. Answers with the page's title and how many blocks its body held before and after; check both. Prefer edit_content for a change to part of a page.

ParameterTypeDescription
markdown *stringNotion's Markdown: headings, lists, to-dos (- [ ]), quotes, code, tables, callouts. The page's new body; empty only with clear.
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
allow_deletingbooleanLet the change remove child pages or databases inside the page. Off, Notion refuses such a change.
clearbooleanEmpty the body on purpose, with markdown "". Without it an empty markdown is refused, since it would erase the page.

restore_page Restore a page

Out of Notion's trash, back where it was. Notion's API cannot restore a page from the top level of a workspace (it answers a validation error); that one is restored from the Trash in Notion.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.

trash_page Trash a page

Into Notion's trash, with everything under it. Direct deletion of database templates is refused unless allow_template is explicit. Notion keeps trash 30 days; restore_page brings it back.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
allow_templatebooleanExplicitly allow removing a database template after checking its role in list_database_templates.

update_page Update a page

Change a page's properties (a row's columns, checked against the database's schema; a page's title as properties: {title: ...}) and its icon. Only the columns named change. Answers the page as read_page does, without the body. The body is changed with append_content, edit_content and replace_content.

ParameterTypeDescription
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
allow_new_optionsbooleanLet a select or multi-select value add an option the column does not have yet. A status can never be added.
iconAn emoji for the page's icon; null removes it.
propertiesobjectColumn name -> value, as create_page's properties take them; only the columns named change. A page under a page: {title: ...}.

upload_file Upload a file to a page

Upload a file to Notion and attach it to a page: to one of a row's files columns, or as a block at the end of the page's body (an image, PDF, video or sound shows as such). The file goes by path, never as text you type. Answers with its size and SHA-256 as sent: compare them with the source. A column's own Notion-hosted files are kept unless the API cannot write them back, which is refused unless replace says so; nothing is uploaded before every check passes.

ParameterTypeDescription
file *objectThe file, up to 20 MiB (Notion's Free plan takes 5 MiB a file). Never type or paste a file's base64 yourself: a retyped file can arrive changed. Give the path of a file in your workspace folders (the…
page *stringThe page: its id, or its Notion URL (a row of a database is a page too).
accountstringWorkspace: a label list_accounts names ("*": every one). Rarely needed: an id or URL finds its own.
columnstringA files column of the row to add it to, after the files already there. Leave it out to put it in a block at the end of the page's body.
namestringThe name Notion shows. Default: the file's own name.
replacebooleanWith column: drop the column's Notion-hosted files, which the API cannot write back. Its external links are always kept.