Notion MCP Server
🚀 Powerful Notion integration for Claude — read, create, search, and manage your entire Notion workspace through natural language.
✨ Features
- 🔍 Smart Search — Find pages and databases instantly
- 📄 Page Management — Create, read, update, archive, duplicate pages
- 🎨 Full Markdown Support — Seamless markdown ↔ Notion blocks conversion
- 🗂 Database Operations — Query with filters, sort, bulk add rows
- ⚡ Productivity Shortcuts — Quick notes, daily journal, task management
- 🧱 Block-Level Control — Read, update, delete individual blocks
- 💬 Comments Support — Add and read page comments
- 🎓 Learning Dashboard — Track AI/ML or any learning database progress
- 🔒 Privacy First — All pages private by default
- ⚡ Fast & Async — Built with FastMCP, schema caching, auto-retry
🎬 What You Can Do
Ask Claude things like:
- "Search my Notion for 'machine learning'"
- "Create a page called 'Project Plan' with a roadmap"
- "Add 20 AI/ML topics to my Topics database"
- "Show me all tasks marked Critical priority"
- "What's on my schedule today?"
- "Add a quick note: meeting was great"
- "Show my learning dashboard"
📦 Installation
Prerequisites
- Python 3.10 or higher
- A Notion account
- Claude Desktop, Claude Code, or any MCP-compatible client
Install with uv (recommended)
```bash uv tool install notion-mcp-server ```
Install with pip
```bash pip install notion-mcp-server ```
🔧 Setup (5 minutes)
Step 1: Create a Notion Integration
- Go to notion.so/my-integrations
- Click "+ New integration"
- Name it (e.g., "Claude MCP")
- Select your workspace
- Click Submit
- Copy the Internal Integration Secret (starts with
secret_orntn_)
Step 2: Share Pages with Integration
For each page or database you want Claude to access:
- Open the page in Notion
- Click "..." menu (top right)
- Click "Connections" → "Connect to"
- Select your integration
💡 Pro tip: Sharing a parent page automatically gives access to all sub-pages. Create one "Workspace Hub" page and share that.
Step 3: Configure Claude Desktop
Mac/Linux: ```bash ~/Library/Application\ Support/Claude/claude_desktop_config.json ```
Windows: ``` %APPDATA%\Claude\claude_desktop_config.json ```
Add this configuration:
```json { "mcpServers": { "notion": { "command": "uvx", "args": ["notion-mcp-server"], "env": { "NOTION_TOKEN": "secret_your_token_here", "DEFAULT_PRIVACY": "private", "DEFAULT_PARENT_PAGE_ID": "optional_parent_page_id" } } } } ```
Step 4: Restart Claude Desktop
Fully quit (including system tray) and reopen.
Step 5: Test It!
Ask Claude:
"Check my Notion connection"
If you see ✅ Connected — you're all set!
🛠 Available Tools (22 Total)
🔍 Search & Connection
search_notion(query, filter_type, limit)— Search pages/databasescheck_connection()— Verify integration works
📄 Page Operations
get_page(page_id_or_url)— Read page as markdowncreate_page(title, parent_id, content, privacy)— Create new pageappend_to_page(page_id_or_url, content)— Append contentupdate_page_title(page_id_or_url, new_title)— Rename pagearchive_page(page_id_or_url)— Soft-delete pagerestore_page(page_id_or_url)— Restore archived pageduplicate_page(page_id_or_url, new_title)— Clone page
🗂 Database Operations
list_databases()— List all databasesget_database_schema(database_id_or_url)— See columns and typesquery_database(database_id_or_url, filters, sort_by, ...)— Query rowsadd_database_row(database_id_or_url, properties, content)— Add rowupdate_database_row(page_id_or_url, properties)— Update rowbulk_add_rows(database_id_or_url, rows)— Add many rows at once
🧱 Block Operations
get_block_children(block_id_or_url)— Read all blocksupdate_block(block_id_or_url, new_content)— Edit a blockdelete_block(block_id_or_url)— Delete a block
💬 Comments
add_comment(page_id_or_url, comment_text)— Add a commentget_comments(page_id_or_url)— Read comments
⚡ Productivity Shortcuts
quick_note(content, title)— Quick note to default parentdaily_journal(entry)— Append timestamped entry to journaladd_task(title, due_date, priority, status, tags)— Smart-add taskget_today_tasks()— Tasks due today or overduecomplete_task(task_name_or_id)— Mark task doneget_recent_pages(limit)— Recently edited pageslearning_dashboard()— Learning progress overview
🎨 Markdown Support
Full bidirectional conversion:
| Markdown | Notion Block |
|---|---|
# Heading 1 |
Heading 1 |
## Heading 2 |
Heading 2 |
### Heading 3 |
Heading 3 |
- bullet |
Bulleted list |
1. numbered |
Numbered list |
- [ ] todo |
To-do (unchecked) |
- [x] done |
To-do (checked) |
> quote |
Quote block |
```code``` |
Code block |
--- |
Divider |
**bold** |
Bold text |
*italic* |
Italic text |
`inline code` |
Inline code |
[link](url) |
Link |
⚙️ Configuration
| Environment Variable | Required | Description |
|---|---|---|
| `NOTION_TOKEN` | ✅ Yes | Your integration secret |
| `DEFAULT_PRIVACY` | ❌ No | `private` (default) or `public` |
| `DEFAULT_PARENT_PAGE_ID` | ❌ No | Default parent for new pages |
💡 Examples
Example 1: Bulk Create Database Entries
"Add 20 AI/ML topics to my Topics database with appropriate categories and priorities"
Claude uses `bulk_add_rows` to create all 20 entries with one command.
Example 2: Daily Workflow
``` You: "What tasks do I have today?" Claude: [shows your today_tasks]
You: "Mark 'Review PR #123' as done" Claude: [calls complete_task]
You: "Add a journal entry: Productive day, finished 5 tasks" Claude: [appends to journal page] ```
Example 3: Smart Querying
"Show me high-priority topics that aren't started yet, sorted by category"
Claude builds a complex filter and returns organized results.
🐛 Troubleshooting
"Object not found" errors
The page/database isn't shared with your integration. Fix: Open page → ... → Connections → Connect to your integration.
Empty search results
You haven't shared any pages with the integration yet. Fix: Share at least one page (and its sub-pages will inherit access).
"Cannot create workspace-level page"
Internal integrations can't create pages at workspace root. Fix: Set `DEFAULT_PARENT_PAGE_ID` in your config to a parent page.
Rate limit errors
Notion API allows ~3 requests/second. Fix: Server has built-in auto-retry with exponential backoff.
🤝 Contributing
Pull requests welcome! For major changes, please open an issue first.
```bash git clone https://github.com/KuldeepJha5176/notion-mcp-server cd notion-mcp-server uv sync uv run pytest ```
🔒 Security
- Each user provides their own Notion token
- Tokens stored locally in user's environment
- Server never collects, stores, or transmits user data
- All communication is direct: User → Notion API
- See SECURITY.md for vulnerability reporting
📄 License
MIT — see LICENSE file.
🙏 Acknowledgments
Built with:
- FastMCP — Excellent MCP framework
- notion-client — Notion Python SDK
- Anthropic MCP — The protocol that makes it possible
⭐ Show Your Support
If this server helps you, please:
- ⭐ Star this repo
- 🐦 Tweet about it
- 📝 Blog about how you use it
- 🐛 Report bugs to make it better
Made with ❤️ for the Claude community by Kuldeep Jha
Metadata
Release files for notion-mcp-server 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| notion_mcp_server-0.1.1.tar.gz | 22.1 kB | Without provenance | Details for notion_mcp_server-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notion_mcp_server-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for notion_mcp_server-0.1.1-py3-none-any.whl |
Total release size: 51.1 kB
Release files / notion_mcp_server-0.1.1.tar.gz
| Download URL | notion_mcp_server-0.1.1.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88720d089d4c1be8266202cc6bffbb5af5ed19f7f3f7c55f4177491949a1ad53
|
|
BLAKE2b-256 checksum How to use checksums |
2d65958e1975bb86d5e8359c8024125b9a3233226038f1a44094942b4cccb156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / notion_mcp_server-0.1.1-py3-none-any.whl
| Download URL | notion_mcp_server-0.1.1-py3-none-any.whl |
|---|---|
| Size | 28.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8efbcf8a0f48f672f2fe5ad194582d4c505e11cf7d0e780f9fa16aca007bb380
|
|
BLAKE2b-256 checksum How to use checksums |
894452d8ff77e70b997356dcf655dcc0f921316c4653942baf46a2d0118b21fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for notion-mcp-server 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.