MCP server for Notion integration
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_notion-0.0.1.tar.gz.
File metadata
- Download URL: mcp_notion-0.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d67ef1591b16ab8e0deb0101713b76bfb407e66d950f00fd940cbf27530d7cc0
|
|
| MD5 |
3d36a82bca0bfc876d879e690aa3782d
|
|
| BLAKE2b-256 |
56e316a2a85913f2a7cf160bbe00cdbd89c5f46dcad846a8cfaf95fe20de9d90
|
File details
Details for the file mcp_notion-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mcp_notion-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfd6512b94242ab6e9b69ae5941390e727b879a98ecd0fe0d31958bb0f21fd72
|
|
| MD5 |
0efd8e99c19add0c5bdc55cbe57be8ce
|
|
| BLAKE2b-256 |
7fa112dcfdad2619997df8d295619c01b399e6e6e35cf2b34fd514b0003899c7
|