notion-mcp
Provides comprehensive tools to interact with the Notion API, including managing pages, databases, blocks, and comments via OAuth2 authentication. It enables users to search content, create workspace entries, and manage metadata through the Dedalus framework.
README
notion-mcp
A Notion MCP server using OAuth2 bearer token auth via the Dedalus framework.
Features
This MCP server provides tools to interact with the Notion API:
User Tools
notion_get_user- Retrieve a specific user by IDnotion_list_users- List all users in the workspacenotion_get_self- Get the authenticated bot user's information
Search Tools
notion_search- Search pages and databases by title
Block Tools
notion_get_block- Retrieve a block by IDnotion_get_block_children- Get child blocks of a parentnotion_append_block_children- Append new blocks to a parentnotion_update_block- Update a block's contentnotion_delete_block- Delete (archive) a block
Page Tools
notion_get_page- Get a page's metadata and propertiesnotion_get_page_property- Get a specific property from a pagenotion_create_page- Create a new pagenotion_update_page- Update a page's properties
Comment Tools
notion_get_comments- Retrieve comments from a page or blocknotion_create_comment- Create a comment on a page
Database Tools
notion_query_database- Query a database with filters and sortsnotion_get_database- Get database metadata and schemanotion_update_database- Update database propertiesnotion_create_database- Create a new database
Installation
# Clone the repository
git clone https://github.com/dedalus-labs/notion-mcp.git
cd notion-mcp
# Install dependencies with uv
uv sync
Configuration
Copy .env.example to .env and configure:
cp .env.example .env
OAuth Configuration
The Notion API requires OAuth2 authentication. The access token is provided at runtime via Dedalus credential exchange.
Required OAuth scopes depend on your use case:
- Read content: Basic integration capabilities
- Insert content: Create pages and blocks
- Update content: Modify existing content
- Read user information (without email): List users
Usage
Running Locally
cd notion-mcp
uv sync
uv run python src/main.py
The server will start on port 8080.
With Dedalus Platform
In your chat, reference the server with @notion-mcp followed by your instructions:
@notion-mcp Search for all pages containing "meeting notes"
@notion-mcp Create a new page titled "Project Plan" in my workspace
Development
Running Tests
uv run pytest
Linting
uv run ruff check src/
uv run ruff format src/
License
MIT License - see LICENSE for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.