mcp-notion
Provides tools for reading Notion pages and databases, querying and updating database rows, and creating or appending to pages with markdown support.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-notion What are the incomplete tasks in my tasks database?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-notion
An MCP server exposing eight narrow Notion tools. Reads pages and databases, writes additively. Nothing is deleted, archived, or overwritten.
Setup
Create an internal integration at https://www.notion.com/my-integrations and copy its token.
cp .env.example .envand setNOTION_API_KEY.Share each page or database with the integration. In Notion, open it, then ••• > Connections > your integration. Without this, every call returns a 404 — the token alone grants no access.
Install:
python3 -m venv .venv && .venv/bin/pip install -e ".[dev]"
Optional aliases, so a database can be named rather than pasted:
NOTION_ALIAS_TASKS=https://www.notion.so/workspace/0123456789abcdef0123456789abcdeflist_databases reports configured aliases.
Related MCP server: Notion MCP Server
Registering with Claude Code
claude mcp add notion -- /absolute/path/to/mcp-notion/.venv/bin/mcp-notionRefs
Every tool takes a ref, resolved in this order: configured alias, notion.so
URL, page or database id, exact title. An ambiguous title is an error listing
candidate URLs — the server never guesses.
Tools
Tool | Purpose |
| Databases visible to the integration, with aliases |
| Property names, types, and select options |
| Rows, filtered and sorted by property name |
| Page properties plus the body as markdown |
| Title search across shared pages and databases |
| New database row or subpage, with an optional markdown body |
| Append markdown to the end of a page |
| Set properties on a database row |
Markdown subset
Both directions: headings 1-3, paragraphs, bulleted and numbered lists, to-dos,
fenced code, quotes, dividers. Reading an unsupported block yields
<!-- unsupported: TYPE -->. Writing an unsupported construct — tables, images,
raw HTML — fails the whole call, naming the construct and the line.
Inline markup is one-way. Bold, italic, code, and links are rendered as
markdown when reading, but written back as literal characters: appending
**bold** writes those eight characters, not bold text. A half-correct inline
parser would silently corrupt text, which is worse than a visible asterisk.
Tests
.venv/bin/pytestNo network, no API key required.
Available Tools
8 toolsappend_to_pageA
Append markdown to the end of a page, as {appended, url}. Existing content is never modified or removed. ref: an alias, a notion.so URL, an id, or an exact page title. markdown: same supported subset as create_page. Empty or whitespace-only markdown is rejected without contacting Notion.
Inputs: ref (required), markdown (required).
create_pageA
Create a page, either as a row in a database or as a subpage of another page, as {title, url, properties}. parent_ref: an alias, a notion.so URL, an id, or an exact title. title: the new page's title. For a database parent, set the title this way, not through properties. markdown: optional page body. Headings 1-3, paragraphs, bulleted and numbered lists, to-dos, fenced code, quotes, and dividers are supported; anything else fails the call before Notion is touched. properties: for a database parent only, property name -> value, excluding the title property. Call get_database_schema first for the valid names.
Inputs: title (required), parent_ref (required), markdown, properties.
get_database_schemaA
Property names and types for a database, as {title, url, properties}. Call this before filtering with query_database or writing with update_row. ref: an alias, a notion.so URL, an id, or an exact database title.
Inputs: ref (required).
get_pageA
A Notion page, as {title, url, properties, markdown}. The body is markdown;
block types outside the supported subset appear as
<!-- unsupported: TYPE -->.
ref: an alias, a notion.so URL, an id, or an exact page title.
Inputs: ref (required).
list_databasesA
List Notion databases visible to this integration, as {title, url, alias}.
alias is the name configured via NOTION_ALIAS_*, or null. Aliases that
match no visible database are listed with a null title — they are still
usable as a ref, but the integration may not have access yet.
Inputs: no named parameters. Returns: result
query_databaseA
Rows of a Notion database, as {title, url, properties}. ref: an alias, a notion.so URL, an id, or an exact database title. filter: property name -> value, combined with AND. Text properties match by substring, everything else by equality. Names must come from get_database_schema. sort: {"property": name, "direction": "asc" | "desc"}. limit: maximum rows to return.
Inputs: ref (required), sort, limit, filter. Returns: result
searchA
Search titles of pages and databases shared with this integration, as
{title, url, kind}. Use it to find the URL to pass as a ref.
Returns at most 25 matches; narrow the query if you expect more.
kind: "page", "database", or omitted for both.
Inputs: query (required), kind. Returns: result
update_rowB
Set properties on a database row, as {title, url, properties}. Only the named properties change; the page body is untouched. ref: an alias, a notion.so URL, an id, or an exact row title. properties: property name -> value. Call get_database_schema first for the valid names and, for select and status properties, the valid options.
Inputs: ref (required), properties (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The tools cleanly separate database operations (schema, query, row update) from page operations (get, create, append), with search covering discovery. The only mild overlap is between search and list_databases for finding databases, but the descriptions clarify their different scopes.
Most names follow a consistent verb_noun snake_case pattern such as get_database_schema, query_database, append_to_page, and update_row. The sole exception is the bare verb 'search', which is a minor deviation rather than a systemic inconsistency.
Eight tools is a well-scoped size for a Notion integration. Each tool covers a distinct core operation—listing, schema inspection, querying, page reading, creation, appending, and row updating—without redundant or unnecessary entries.
The set covers core read, create, append, and update workflows for pages and database rows, and includes schema discovery. However, there is no delete/archive operation and no way to edit a page body beyond appending, which are notable lifecycle gaps for the stated domain.
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.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables natural language interaction with the Notion API, allowing users to search, comment, create pages, and access content within their Notion workspace.320,999 npm-
- AlicenseNot gradedqualityDmaintenanceStateless MCP server exposing the full Notion API as 33 tools, enabling users to manage pages, databases, blocks, comments, users, and file uploads using their own integration token.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for the Notion API, enabling management of pages, blocks, databases, data sources, comments, and users through natural language.15 npm3MIT
- AlicenseNot gradedqualityDmaintenanceComprehensive MCP server for the Notion API. Provides 22 tools for full CRUD operations on pages, databases, blocks, users, and comments.7 npmMIT