Skip to main content
Glama

Notion MCP Server

AI-friendly MCP server for the Notion API. It helps agents find, read, query, and update Notion workspaces while keeping responses compact enough for day-to-day AI workflows.

This server targets the Notion API 2026-03-11 and uses the current database/data source model. It exposes MCP tools, prompts, resources, structured tool results, and optional MCP Apps for interactive Notion workflows.

Highlights

  • Search and target discovery with notion_find.

  • Compact page reading with stable block IDs via notion_read_page.

  • Data source schema inspection with notion_inspect_data_source.

  • Schema-aware data source querying and item creation with simple values.

  • Simple page editing tools for paragraphs, headings, lists, todos, quotes, callouts, code blocks, dividers, and safe Markdown append.

  • Raw Notion API tools for advanced block, page, database, data source, comment, and user operations.

  • Optional MCP Apps: Data Source Explorer and Page Workbench.

Related MCP server: MCP Notion Server (@suncreation)

Quick Start

Add this server to an MCP host such as Claude Desktop:

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@suekou/mcp-notion-server"],
      "env": {
        "NOTION_API_TOKEN": "your-integration-token"
      }
    }
  }
}

Restart your MCP host after saving the configuration.

Setup Guide

1. Create a Notion integration

Open the Notion integrations dashboard, then create a new internal integration.

Internal connections New connections

2. Configure capabilities

Grant only the capabilities you need:

  • Read content: required for search, page reads, data source retrieval, and queries.

  • Insert content: required for creating pages/items and appending blocks.

  • Update content: required for updating pages, blocks, and data source schemas.

  • Read comments / Insert comments: required only for comment tools.

  • User information: required only when using user lookup tools.

For full functionality during setup, enable read, insert, and update content. Add comment or user capabilities only if you plan to use those tools.

Notion integration capabilities

3. Grant content access

Open the Content access tab for your integration, then select the pages or databases you want the MCP server to read or edit.

You can also grant access from the target Notion page or database: open the ... menu, choose Connections, then add your integration.

Notion only lets an integration access pages and databases that have been shared with it. A connection added to a page can also access that page's children.

Edit integration content access

4. Copy the internal integration token

Copy the integration secret. This value becomes NOTION_API_TOKEN in your MCP host config.

Copy internal integration token

5. Configure your MCP host

For Cursor, Claude Desktop, and other MCP hosts, add this server config to your MCP settings:

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@suekou/mcp-notion-server"],
      "env": {
        "NOTION_API_TOKEN": "secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

For a locally built checkout:

{
  "mcpServers": {
    "notion": {
      "command": "node",
      "args": ["/absolute/path/to/suekou-mcp-notion-server/build/index.js"],
      "env": {
        "NOTION_API_TOKEN": "secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
  1. Use notion_find to locate a page or data source.

  2. Use notion_read_page for page context and editable block IDs.

  3. Use notion_inspect_data_source before querying or creating data source items.

  4. Use notion_query_data_source_by_values and notion_create_data_source_item_from_values for common data source work.

  5. Use notion_append_markdown, notion_append_content, notion_update_content, or notion_update_content_batch for normal page edits.

  6. Fall back to raw JSON tools only when the simplified tools do not cover the Notion API shape you need.

For Developers

These references are mainly for development, customization, and advanced MCP workflows:

  • Configuration: environment variables, command-line arguments, MCP host examples, development commands, and troubleshooting.

  • Tools: complete tool reference grouped by workflow area.

  • Workflows: practical read, write, data source, migration, and error-handling guidance.

  • MCP Apps: interactive Data Source Explorer and Page Workbench details.

Development

This project uses Node.js 22 or newer and pnpm.

pnpm install --frozen-lockfile
pnpm run build
pnpm test

Use the MCP inspector during local development:

pnpm run inspector

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Available Tools

31 tools
notion_append_block_childrenAppend Block ChildrenA

Append new children blocks to a specified parent block in Notion. Requires insert content capabilities. Use the optional 'position' object to insert at the start, end, or after a specific block.

Inputs: block_id (required), children (required), format, position.

notion_append_contentAppend Simple ContentA

Append common Notion content without writing raw Notion block JSON. Use this for everyday page editing when the user wants to add paragraphs, headings, lists, todos, quotes, callouts, code blocks, or dividers. For unsupported block types or advanced rich text annotations, use notion_append_block_children with raw Notion block objects.

Inputs: items (required), block_id (required), format, position.

notion_append_markdownAppend Markdown ContentA

Append a safe subset of Markdown to a Notion page or block without writing raw Notion block JSON. Supports headings (#, ##, ###), paragraphs, bullet items, numbered items, todos (- [ ] / - [x]), quotes, dividers, and fenced code blocks. Use this when the user provides Markdown-like content and wants it appended; use raw block tools for tables, images, rich text annotations, nested lists, or advanced Notion blocks.

Inputs: block_id (required), markdown (required), format, position.

notion_create_commentCreate CommentA

Create a comment in Notion. This requires the integration to have 'insert comment' capabilities. You can either specify a page parent or a discussion_id, but not both.

Inputs: rich_text (required), format, parent, discussion_id.

notion_create_databaseCreate DatabaseA

Create a Notion database and its initial data source. Use this when the user wants a new database. For Notion API 2025-09-03+, put the initial schema under initial_data_source.properties.

Inputs: parent (required), initial_data_source (required), icon, cover, +4 more.

notion_create_data_sourceCreate Data SourceA

Add an additional Notion data source to an existing database. Do not use this to create a new database; use notion_create_database for that.

Inputs: parent (required), properties (required), title, format.

notion_create_data_source_itemCreate Data Source ItemB

Create a new page item in a Notion data source. Use the data_source_id, not the database_id, as the parent.

Inputs: properties (required), data_source_id (required), format.

notion_create_data_source_item_from_valuesCreate Item From ValuesA

Create a new page item in a Notion data source using simple property values instead of raw Notion property JSON. The server retrieves the data source schema and converts common property types for you: title, rich_text, number, checkbox, select, status, multi_select, date, url, email, phone_number, relation, and people. Use notion_inspect_data_source first when you need valid property names or option values.

Inputs: values (required), data_source_id (required), format.

notion_delete_blockDelete BlockB
DestructiveIdempotent

Delete a block in Notion

Inputs: block_id (required), format.

notion_findFind Notion TargetsA
Read-only

Find Notion pages or data sources and return compact, AI-friendly candidates with stable IDs and suggested next tools. Use this before low-level retrieve/query tools when the user gives a title, partial name, or vague target. Prefer this over raw notion_search for discovery because it trims noisy API fields and highlights the IDs needed for the next action.

Inputs: query, format, page_size, object_type, +1 more.

notion_inspect_data_sourceInspect Data SourceA
Read-only

Inspect a Notion data source schema and return a compact property summary for AI agents. Use this before creating or updating items so the model can choose valid property names, option values, and relation targets without reading the full Notion API object.

Inputs: data_source_id (required), format.

notion_list_all_usersList UsersA
Read-only

List all users in the Notion workspace. Note: This function requires upgrading to the Notion Enterprise plan and using an Organization API key to avoid permission errors.

Inputs: format, page_size, start_cursor, response_mode.

notion_open_data_source_appOpen Data Source ExplorerB

Open an interactive Notion Data Source Explorer MCP App for schema inspection, filter building, querying, and item creation from simple values.

Inputs: format, data_source_id.

notion_open_page_workbenchOpen Page WorkbenchB

Open an interactive Notion Page Workbench MCP App for reading page content, selecting block IDs, updating simple blocks, and appending Markdown.

Inputs: format, page_id.

notion_query_data_sourceQuery Data SourceA
Read-only

Query a Notion data source with filters, sorts, and pagination. Use notion_retrieve_database first when you only have a database ID and need to discover its data_source_id.

Inputs: data_source_id (required), sorts, filter, format, +3 more.

notion_query_data_source_by_valuesQuery Data Source By ValuesA
Read-only

Query a Notion data source using simple schema-aware filters and sorts instead of raw Notion filter JSON. Use this after notion_inspect_data_source when the user asks for common queries like Status equals Done, Tags contains AI, Due on or before a date, Estimate greater than 3, or Done equals false. The server validates property names, option names, value types, and supported operators before calling Notion.

Inputs: data_source_id (required), match, sorts, format, +4 more.

notion_read_pageRead Page ContentA
Read-only

Read a Notion page with compact page metadata plus block content in an AI-friendly outline or Markdown shape. Use this after notion_find when you need to understand or edit a page. It fetches child blocks with max_depth and max_blocks limits so large pages do not overwhelm the model. The outline includes stable block IDs that can be used with notion_append_content position.after_block.

Inputs: page_id (required), format, max_depth, page_size, +3 more.

notion_retrieve_blockRetrieve BlockB
Read-only

Retrieve a block from Notion

Inputs: block_id (required), format.

notion_retrieve_block_childrenRetrieve Block ChildrenB
Read-only

Retrieve the children of a block

Inputs: block_id (required), format, page_size, start_cursor, +1 more.

notion_retrieve_bot_userRetrieve Bot UserA
Read-only

Retrieve the bot user associated with the current token in Notion

Inputs: format.

notion_retrieve_commentsRetrieve CommentsA
Read-only

Retrieve a list of unresolved comments from a Notion page or block. Requires the integration to have 'read comment' capabilities.

Inputs: block_id (required), format, page_size, start_cursor, +1 more.

notion_retrieve_databaseRetrieve DatabaseA
Read-only

Retrieve a Notion database container and its child data_sources. Use this to discover which data_source_id should be used for query, schema, and item creation operations.

Inputs: database_id (required), format.

notion_retrieve_data_sourceRetrieve Data SourceA
Read-only

Retrieve metadata and property schema for a Notion data source.

Inputs: data_source_id (required), format.

notion_retrieve_pageRetrieve PageB
Read-only

Retrieve a page from Notion

Inputs: page_id (required), format.

notion_retrieve_userRetrieve UserA
Read-only

Retrieve a specific user by user_id in Notion. Note: This function requires upgrading to the Notion Enterprise plan and using an Organization API key to avoid permission errors.

Inputs: user_id (required), format.

notion_update_blockUpdate BlockA
Idempotent

Update the content of a block in Notion based on its type. The update replaces the entire value for a given field.

Inputs: block (required), block_id (required), format.

notion_update_contentUpdate Simple ContentA
Idempotent

Update an existing Notion block without writing raw Notion block JSON. Use this after notion_read_page gives you a block ID and you need to replace the text or simple fields of an existing paragraph, heading, list item, todo, quote, callout, or code block. The item.type must match the block's current type; this tool will reject mismatches so the model can correct itself.

Inputs: item (required), block_id (required), format.

notion_update_content_batchUpdate Simple Content BatchA
Idempotent

Update multiple existing Notion blocks without writing raw Notion block JSON. Use this after notion_read_page when the user wants several simple text edits at once. The server retrieves every target block and validates all item.type values before applying updates, so block type mistakes fail before any write is attempted.

Inputs: updates (required), format.

notion_update_data_sourceUpdate Data SourceA
Idempotent

Update a Notion data source title, description, or properties.

Inputs: data_source_id (required), title, format, properties, +1 more.

notion_update_page_propertiesUpdate Page PropertiesB
Idempotent

Update properties of a page or an item in a Notion database

Inputs: page_id (required), properties (required), format.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 31 tools

    Disambiguation3/5

    There is notable overlap among tools like notion_append_content, notion_append_markdown, notion_append_block_children, and also between notion_update_content and notion_update_block. While descriptions attempt to differentiate them, an agent might struggle to choose between raw and high-level versions, and between retrieve_block and read_page.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern using snake_case, e.g., notion_append_block_children, notion_retrieve_block, notion_create_data_source. The prefix 'notion_' is consistent, and verbs like retrieve, create, update, append, delete are used uniformly.

    Tool Count4/5

    With 31 tools, the server is on the heavier side but still within a manageable range because the domain (Notion) is broad and requires separate tools for pages, blocks, data sources, comments, users, and discovery. The count is slightly high but each tool handles a distinct resource or operation.

    Completeness5/5

    The tool set covers a comprehensive lifecycle for pages, blocks, data sources, comments, and users, including creation, retrieval, updating, deletion, and search. Higher-level convenience tools (e.g., notion_append_markdown, notion_query_data_source_by_values) are complemented by lower-level raw tools, providing no obvious dead ends for common workflows.

    Maintenance

    ActivityInactive
    ResponsivenessMixed handling

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      An 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.
      282,573 npm
      -
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables LLMs to interact with Notion workspaces via the Notion API, supporting page creation, database management, and content retrieval. It features markdown conversion to optimize token usage and enhanced error handling for more reliable workspace interactions.
      19
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for the Notion API, enabling management of pages, blocks, databases, data sources, comments, and users through natural language.
      12 npm
      3
      MIT