Notion MCP Server
OfficialСервер Notion MCP
В этом проекте реализован MCP-сервер для Notion API .
Установка
1. Настройка интеграции в Notion:
Перейдите по ссылке https://www.notion.so/profile/integrations и создайте новую внутреннюю интеграцию или выберите существующую.

Хотя мы ограничиваем область действия Notion API (например, вы не сможете удалять базы данных через MCP), существует ненулевой риск для данных рабочей области, если они будут раскрыты LLM. Пользователи, заботящиеся о безопасности, могут захотеть дополнительно настроить возможности интеграции.
Например, вы можете создать токен интеграции, доступный только для чтения, предоставив доступ только «Чтение содержимого» на вкладке «Конфигурация»:

2. Подключение контента к интеграции:
Убедитесь, что к вашей интеграции подключены соответствующие страницы и базы данных.
Для этого вам необходимо зайти на эту страницу, нажать на три точки и выбрать «Подключиться к интеграции».

3. Добавление конфигурации MCP в ваш клиент:
Использование npm:
Добавьте следующее в ваш .cursor/mcp.json или claude_desktop_config.json (MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json )
{
"mcpServers": {
"notionApi": {
"command": "npx",
"args": ["-y", "@notionhq/notion-mcp-server"],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\": \"Bearer ntn_****\", \"Notion-Version\": \"2022-06-28\" }"
}
}
}
}Использование Докера:
Существует два варианта запуска сервера MCP с Docker:
Вариант 1: Использование официального образа Docker Hub:
Добавьте следующее в ваш .cursor/mcp.json или claude_desktop_config.json :
{
"mcpServers": {
"notionApi": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "OPENAPI_MCP_HEADERS",
"mcp/notion"
],
"env": {
"OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer ntn_****\",\"Notion-Version\":\"2022-06-28\"}"
}
}
}
}Этот подход:
Использует официальный образ Docker Hub
Правильно обрабатывает экранирование JSON через переменные среды.
Обеспечивает более надежный метод настройки
Вариант 2: Локальная сборка образа Docker:
Вы также можете создать и запустить образ Docker локально. Сначала создайте образ Docker:
docker-compose buildЗатем добавьте следующее в ваш .cursor/mcp.json или claude_desktop_config.json :
{
"mcpServers": {
"notionApi": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"OPENAPI_MCP_HEADERS={\"Authorization\": \"Bearer ntn_****\", \"Notion-Version\": \"2022-06-28\"}",
"notion-mcp-server"
]
}
}
}Не забудьте заменить ntn_**** на ваш секрет интеграции. Найдите его на вкладке конфигурации интеграции:
Примеры
Используя следующую инструкцию
Comment "Hello MCP" on page "Getting started"ИИ правильно спланирует два вызова API, v1/search и v1/comments , для выполнения задачи
Аналогично, следующая инструкция приведет к созданию новой страницы с именем «Notion MCP», добавленной к родительской странице «Разработка».
Add a page titled "Notion MCP" to page "Development"Вы также можете ссылаться на идентификатор контента напрямую.
Get the content of page 1a6b35e6e67f802fa7e1d27686f017f2Разработка
Строить
npm run buildВыполнять
npx -y --prefix /path/to/local/notion-mcp-server @notionhq/notion-mcp-serverПубликовать
npm publish --access publicAvailable Tools
19 toolsAPI-create-a-commentC
Notion | Create comment
Inputs: parent (required), rich_text (required).
API-create-a-databaseC
Notion | Create a database
Inputs: parent (required), properties (required), title.
API-delete-a-blockC
Notion | Delete a block
Inputs: block_id (required).
API-get-block-childrenC
Notion | Retrieve block children
Inputs: block_id (required), page_size, start_cursor.
API-get-selfB
Notion | Retrieve your token's bot user
Inputs: no named parameters.
API-get-userC
Notion | Retrieve a user
Inputs: user_id (required).
API-get-usersC
Notion | List all users
Inputs: page_size, start_cursor.
API-patch-block-childrenC
Notion | Append block children
Inputs: block_id (required), children (required), after.
API-patch-pageC
Notion | Update page properties
Inputs: page_id (required), archived, cover, icon, +2 more.
API-post-database-queryC
Notion | Query a database
Inputs: database_id (required), archived, filter, filter_properties, +4 more.
API-post-pageC
Notion | Create a page
Inputs: parent (required), properties (required), children, cover, +1 more.
API-post-searchC
Notion | Search by title
Inputs: filter, page_size, query, sort, +1 more.
API-retrieve-a-blockC
Notion | Retrieve a block
Inputs: block_id (required).
API-retrieve-a-commentC
Notion | Retrieve comments
Inputs: block_id (required), page_size, start_cursor.
API-retrieve-a-databaseC
Notion | Retrieve a database
Inputs: database_id (required).
API-retrieve-a-pageC
Notion | Retrieve a page
Inputs: page_id (required), filter_properties.
API-retrieve-a-page-propertyC
Notion | Retrieve a page property item
Inputs: page_id (required), property_id (required), page_size, start_cursor.
API-update-a-blockC
Notion | Update a block
Inputs: block_id (required), archived, type.
API-update-a-databaseC
Notion | Update a database
Inputs: database_id (required), description, properties, title.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have distinct purposes targeting specific Notion resources and actions, with clear separation between operations like create, retrieve, update, and delete. However, some potential overlap exists between 'API-retrieve-a-block' and 'API-get-block-children', as both involve block retrieval but with different scopes, which could cause minor confusion.
Tool names follow a highly consistent pattern throughout, using a structured 'API-verb-a-resource' format with hyphens separating components. All tools maintain this convention, making them predictable and easy to parse, with no deviations in style or structure.
With 19 tools, the count is slightly high but reasonable for a comprehensive Notion API server, covering a wide range of operations. It might feel a bit heavy, but each tool appears to serve a specific function in the Notion domain, justifying its inclusion without being excessive.
The tool set provides excellent coverage of the Notion API domain, including full CRUD operations for key resources like pages, databases, blocks, and comments, along with search, query, and user management. No obvious gaps are present, enabling agents to handle complete workflows without dead ends.
Maintenance
Related MCP Connectors
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseAqualityAmaintenanceNotion MCP Server is a MCP server implementation that enables AI assistants to interact with Notion's API.35,360 npm182MIT
- -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-
- AlicenseAqualityDmaintenanceAn MCP server for Notion API with optimized token efficiency and full database property filtering, enabling AI assistants to manage pages, databases, and blocks.3257 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for the Notion API, enabling management of pages, blocks, databases, data sources, comments, and users through natural language.15 npm3MIT