Provides comprehensive access to the Notion API, allowing for the management of pages, databases, blocks, and comments, as well as searching workspaces and retrieving user information.
Click on "Install 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 Server (@suncreation)search for 'Project Roadmap' and summarize the content"
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.
@suncreation/mcp-notion-server
MCP Server for the Notion API, enabling LLM to interact with Notion workspaces.
Fork Notice: This is a fork of @suekou/mcp-notion-server with enhancements including improved error handling, additional features, and better environment variable support.
Features
Full Notion API integration via MCP (Model Context Protocol)
Markdown conversion to reduce token usage
Page creation (
notion_create_page) - Create new pages under existing pagesSupports both
NOTION_API_TOKENandNOTION_API_KEYenvironment variablesEnhanced error handling with detailed HTTP status code messages
Installation
Quick Start
1. Create a Notion Integration
Visit the Notion Integrations page
Click "New Integration"
Name your integration and select permissions:
✅ Read content
✅ Update content
✅ Insert content
Copy the "Internal Integration Token" (starts with
ntn_orsecret_)
2. Connect Integration to Pages
Open the Notion page you want to access
Click "···" (top right) → "Connections"
Add your integration
3. Configure Your MCP Client
OpenCode
Add to ~/.config/opencode/opencode.json:
Claude Desktop
Add to claude_desktop_config.json:
Multiple Workspaces
You can connect multiple Notion workspaces by using different names:
Environment Variables
Variable | Required | Description |
| Yes* | Your Notion API integration token |
| Yes* | Alternative name for the token (either works) |
| No | Set to |
*One of NOTION_API_TOKEN or NOTION_API_KEY is required.
Available Tools
Pages
Tool | Description |
| Get page information |
| Update page properties |
| Create a new page (enhanced feature) |
Blocks
Tool | Description |
| Get block information |
| Get child blocks |
| Add blocks to a page/block |
| Delete a block |
Databases
Tool | Description |
| Create a new database |
| Query database entries |
| Get database schema |
| Update database properties |
| Add item to database |
Search & Users
Tool | Description |
| Search pages/databases by title |
| List workspace users (Enterprise) |
| Get user details (Enterprise) |
| Get bot user info |
Comments
Tool | Description |
| Add a comment |
| Get comments on a page/block |
Command Line Options
Markdown Conversion
Enable Markdown conversion for reduced token usage:
Use
format: "markdown"for readable output (viewing)Use
format: "json"for structured data (editing)
Troubleshooting
Issue | Solution |
Permission denied | Ensure integration is added to the page via "Connections" |
401 Unauthorized | Check your API token is correct |
404 Not Found | Verify the page/database ID is correct |
Rate limited | Add delays between requests |
Development
Changes from Original
This fork includes the following enhancements over @suekou/mcp-notion-server:
notion_create_page- Create new pages under existing pagesDual environment variable support - Both
NOTION_API_TOKENandNOTION_API_KEYworkEnhanced error handling - Detailed HTTP status code messages for easier debugging
setApiVersion()- Dynamically change API version if needed
License
MIT License - see LICENSE file.
Credits
Original project: @suekou/mcp-notion-server