Notion MCP Server
A Model Context Protocol (MCP) server for Notion integration. This server provides tools for interacting with Notion, including querying pages, databases, and blocks.
Features
- Page Management: Get, create, and update Notion pages
- Database Operations: Query, filter, and sort Notion databases
- Block Operations: Get and append blocks to pages
- Search: Query for Notion content
- Resources: Access metadata about Notion objects
- Prompts: Templates for common Notion workflows
Installation
pip install mcp-notion
Configuration
Set the following environment variables:
export NOTION_API_KEY="your_notion_integration_token"
export NOTION_VERSION="2022-06-28" # Optional, will use default if not specified
You can get your Notion API key by creating an integration at https://www.notion.so/my-integrations
Usage
Starting the server directly
mcp-notion
Using with uvx
uvx mcp-notion
Using with Claude Desktop
Add the following to your claude_desktop_config.json file:
"mcp-notion": {
"command": "uvx",
"args": [
"mcp-notion"
],
"env": {
"NOTION_API_KEY": "your_notion_integration_token",
"NOTION_VERSION": "2022-06-28"
}
}
Replace the environment variables with your actual Notion credentials.
Available Tools
- search_notion: Search Notion content with optional filters
- get_page: Get details of a specific Notion page
- get_block_children: Get children blocks of a block or page
- get_database: Get details of a specific Notion database
- query_database: Query a Notion database with optional filters and sorting
- create_page: Create a new page in a database or as a child of another page
- update_page: Update properties of an existing Notion page
- append_blocks: Append new blocks to an existing block or page
Available Resources
- notion://search: Search all Notion content
- notion://databases: List of all Notion databases the user has access to
- notion://users: List of all users in the workspace
Available Prompts
- create_database_entry: Template for creating a new entry in a database
- search_and_summarize: Template for searching and summarizing Notion content
- database_query_builder: Template for building Notion database queries
Notes on Authentication
- You need to create a Notion integration at https://www.notion.so/my-integrations
- You must share specific pages/databases with your integration
- Make sure your integration has the appropriate capabilities (Read, Update, etc.)
Version
0.0.1
Metadata
Release files for mcp-notion 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_notion-0.0.2.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_notion-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / mcp_notion-0.0.2.tar.gz
| Download URL | mcp_notion-0.0.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76518bdb72dcb7f63c8bb2fefb655b9be7de9885c1041e0b35f52094d7d3957a
|
|
BLAKE2b-256 checksum How to use checksums |
15f21cbbd00b7b9180291ef2465cbc8d3dba9f459df97a3c657c011968021f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Release files / mcp_notion-0.0.2-py3-none-any.whl
| Download URL | mcp_notion-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a6e220a34c5b7384b9c77790c3cf752e77d0ada4e409b44ea3d607028425d21
|
|
BLAKE2b-256 checksum How to use checksums |
89e418f30ec93df920e754e6c3004284509b7615ccb9e33f8755c6f97b2b795b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|