Notion MCP Server
The Notion MCP Server allows AI models to interact with Notion workspaces through a Model Context Protocol (MCP) server, providing tools for:
Search: Find pages or databases by query, page size, and object type
Databases: Query, retrieve, and manage database entries
Pages: Create, retrieve, update, and delete pages
Blocks: Manage content blocks (append, retrieve, update, delete)
Users: List users, retrieve user information, and get the current user
Comments: Create and list comments on pages or blocks
Link Previews: Create link previews for URLs
Exposes the official Notion SDK, allowing interaction with Notion workspaces. Provides tools for searching, querying databases, creating and updating pages, managing content blocks, working with users, adding comments, and creating link previews.
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., "@Notion MCP Server search for pages about project planning"
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.
Notion MCP Server
A Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.
Quick Start
1. Set up your Notion integration
Create a new integration
Copy the API key
2. Connect your Notion pages to the integration
For your integration to access Notion content, you need to explicitly share your pages or databases with it:
Navigate to the Notion page or database you want to access through the integration
Click the "Share" button in the top-right corner
In the "Add people, groups, or integrations" field, select your integration from the dropdown list
Click "Invite"
Repeat for each page or database you want to make accessible
Note: An integration only has access to pages and databases that have been explicitly shared with it. Child pages automatically inherit access from parent pages.
3. Add to your AI assistant
You can add this MCP server to Claude Desktop, Cursor AI, or Claude.ai using either of these configuration formats:
Command Line Format
npx @ramidecodes/mcp-server-notion@latest -y --api-key=your-notion-integration-keyJSON Configuration Format
{
"mcpServers": {
"Notion": {
"command": "npx",
"args": [
"@ramidecodes/mcp-server-notion@latest",
"-y",
"--api-key=your-notion-integration-key"
]
}
}
}Replace your-notion-integration-key with the API key from step 1.
Setup Instructions
Claude Desktop: Settings > Advanced > Model Context Protocol
Cursor AI: Settings > AI > MCP Servers
Claude.ai (Web): Profile > Settings > API & Integrations > Model Context Protocol
Related MCP server: Notion MCP Server
Available Tools
The server provides tools for interacting with Notion:
Search: Find pages or databases
Databases: Query and retrieve database entries
Pages: Create, retrieve, and update pages
Blocks: Manage content blocks (paragraphs, lists, etc.)
Users: List users and get user information
Comments: Create and list comments
Link Previews: Create link previews for URLs
Alternative Setup Methods
Using Environment Variables
Instead of passing the API key directly, you can use a .env file:
Create a
.envfile with:
NOTION_API_KEY=your-notion-integration-keyRun the server:
npx @ramidecodes/mcp-server-notion@latest -yJSON Configuration with Environment Variables (for Claude Desktop)
You can also use environment variables in the JSON configuration format:
{
"mcpServers": {
"Notion": {
"command": "npx",
"args": [
"@ramidecodes/mcp-server-notion@latest",
"-y",
"--api-key=your-notion-integration-key"
]
}
}
}Command Line Options
OPTIONS:
-h, --help Show help message
-v, --version Show version information
--verbose Enable verbose logging
--env-path <path> Path to .env file
--api-key <key> Notion API key
-y Skip confirmation promptsTroubleshooting
If you encounter "Failed to create client" errors:
On Windows, try using
cmd /cbefore the npx commandOn macOS/Linux, try using the full path to npx
Test the command in a terminal before adding it to your AI assistant
Common Issues
"No access to resource" errors: Make sure you've shared the specific Notion page or database with your integration (see step 2)
Integration not appearing in share menu: Try refreshing the page or restarting your browser
Limited capabilities: Check that your integration has the appropriate capabilities enabled in the Notion integration settings
Features
Full Notion API support through the official SDK
MCP compliant for seamless AI integration
Comprehensive tools for all Notion operations
Robust error handling with detailed messages
Easy configuration with environment variables
For detailed documentation on each tool, see the Tools Documentation.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Available Tools
17 toolsappend-blocksD
Inputs: block_id (required), children (required).
create-commentD
Inputs: page_id (required), text (required), discussion_id.
create-link-previewD
Inputs: url (required), page_id.
create-pageD
Inputs: parent_type (required), parent_id (required), properties (required), children.
delete-blockD
Inputs: block_id (required).
get-blockD
Inputs: block_id (required).
get-block-childrenD
Inputs: block_id (required), page_size, start_cursor.
get-databaseD
Inputs: database_id (required).
get-meD
Inputs: no named parameters.
get-pageD
Inputs: page_id (required).
get-userD
Inputs: user_id (required).
list-commentsD
Inputs: page_id, block_id, start_cursor, page_size.
list-usersD
Inputs: no named parameters.
query-databaseD
Inputs: database_id (required), filter, sorts, page_size, +1 more.
searchD
Inputs: query, filter_object_type, page_size.
update-blockD
Inputs: block_id (required), properties (required).
update-pageD
Inputs: page_id (required), properties (required), archived.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool has a clearly distinct purpose targeting specific Notion resources and actions. For example, get-block vs get-block-children vs update-block are clearly differentiated, and there's no overlap between operations like create-page, update-page, and get-page.
All tools follow a consistent verb-noun pattern with kebab-case naming throughout (e.g., create-page, get-block, query-database). The naming convention is perfectly uniform across all 17 tools.
17 tools is slightly high but reasonable for a comprehensive Notion API integration. It covers multiple resource types (pages, blocks, databases, users, comments) with appropriate operations, though it might feel slightly heavy compared to more minimal implementations.
The tool set provides excellent coverage of Notion's core functionality including CRUD operations for pages, blocks, and comments, plus database querying, user management, and search. Minor gaps might include missing operations like deleting pages or databases, but agents can work around these limitations.
Maintenance
Related MCP Connectors
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that enables Claude and other LLMs to interact with Notion workspaces, providing capabilities like searching, retrieving, creating and updating pages, as well as managing databases.105,643 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides a standardized interface for interacting with Notion's API, enabling users to list databases, create pages, and search across their Notion workspace.111MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.125,643 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides a standardized interface for AI models to access, query, and modify content in Notion workspaces.5,643 npm4MIT