MostafaSwaisy/notion-mcp-server
3.2
If you are the rightful owner of notion-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server designed to integrate with Notion workspaces, providing a RESTful API for managing pages.
Notion MCP Server
A Model Context Protocol (MCP) server for Notion integration, providing AI assistants with secure access to Notion workspaces.
Features
- Page Management: Create, read, update, and archive Notion pages
- Search: Search across your Notion workspace
- Block Operations: Append blocks and manage page content
- User Management: Access workspace users and permissions
- Resource Providers: Expose Notion content as MCP resources
Setup
-
Install dependencies:
npm install
-
Set up Notion API:
- Go to Notion Developers
- Create a new integration
- Copy the integration token
-
Configure environment:
cp .env.example .env # Edit .env with your Notion API key
-
Share pages with integration:
- Go to your Notion pages
- Share → Add people → Find your integration → Invite
Usage
Development
npm run dev
Production
npm run build
npm start
Testing with MCP Inspector
npx @modelcontextprotocol/inspector
Tools Available
notion_get_page
: Retrieve a page by IDnotion_create_page
: Create a new pagenotion_update_page
: Update an existing pagenotion_search
: Search workspace contentnotion_append_blocks
: Add blocks to a pagenotion_get_users
: Get workspace usersnotion_archive_page
: Archive a page
Resources
notion://pages
: Recent pages in workspacenotion://page/{id}
: Specific page content
Integration with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["path/to/notion-mcp-server/dist/index.js"],
"env": {
"NOTION_API_KEY": "your_token_here"
}
}
}
}