Enables searching, creating, and managing Notion workspace content, including pages and databases, with support for querying databases using complex filters, updating properties, and appending content blocks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Notion MCP ServerCreate a new task called 'Review project proposal' due this Friday"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π Notion MCP Server
A powerful Model Context Protocol (MCP) server that connects AI assistants like Claude to your Notion workspace. Seamlessly search, create, and manage your Notion content through natural language conversations!
β¨ What This Does
Transform your AI assistant into a Notion powerhouse! With this MCP server, you can:
π Search through all your Notion pages and databases
π Create new pages, databases, and content
βοΈ Update existing pages and properties
π Query databases with complex filters
π Manage your entire Notion workspace through conversation
π― Quick Start
1. Prerequisites
Python 3.8 or higher
A Notion workspace
Nango account (for OAuth authentication)
Claude Desktop app (for AI integration)
2. Installation
# Clone or download the files
git clone <your-repo-url>
cd notion-mcp-server
# Install dependencies
uv sync3. Notion Setup
Create a Notion Integration:
Click "New integration"
Name it (e.g., "Claude MCP Integration")
Select your workspace
Set capabilities:
β Read content
β Insert content
β Update content
Save and copy your integration token
Share Pages with Integration:
Open any Notion page you want to access
Click "Share" β "Invite"
Select your integration
Repeat for all pages/databases you want to use
4. Nango Setup (OAuth)
Create Nango Account: https://nango.dev
Add Notion Integration in your Nango dashboard
Configure OAuth with your Notion integration credentials
Get your Nango credentials (Base URL, Secret Key, Connection ID)
5. Environment Configuration
Create a .env file with your credentials:
# Nango OAuth Configuration
NANGO_BASE_URL=https://api.nango.dev
NANGO_SECRET_KEY=your_nango_secret_key_here
NANGO_CONNECTION_ID=your_connection_id_here
NANGO_INTEGRATION_ID=notion
# Optional: Direct Notion Token (if not using Nango)
# NOTION_TOKEN=your_direct_notion_token_here6. Claude Desktop Configuration
Add this to your Claude Desktop configuration file:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"notion": {
"command": "uvx",
"args": ["git+https://github.com/Shameerpc5029/notion-mcp.git"],
"env": {
"NANGO_BASE_URL": "https://api.nango.dev",
"NANGO_SECRET_KEY": "your_nango_secret_key",
"NANGO_CONNECTION_ID": "your_connection_id",
"NANGO_INTEGRATION_ID": "notion"
}
}
}
}7. Test the Connection
# Test the server directly
python notion-mcp-server.py
# Or restart Claude Desktop and try asking:
# "Search my Notion for meeting notes"
# "Create a new task in my project database"π οΈ Available Tools
Tool | Description | Example Use |
| Search across all content | "Find pages about project planning" |
| Get database info | "Show me my tasks database structure" |
| Query with filters | "Show incomplete tasks due this week" |
| Create new databases | "Create a CRM database with contacts" |
| Get page details | "Show me the content of my meeting notes" |
| Create new pages | "Add a new task to my project database" |
| Update existing pages | "Mark this task as completed" |
| Get page content | "Read the content of this page" |
| Add content to pages | "Add meeting notes to this page" |
| Get integration info | "Check my Notion connection status" |
π¬ Example Conversations with Claude
Once configured, you can have natural conversations like:
Task Management
You: "Show me all my incomplete tasks"
Claude: [Queries your tasks database and shows open items]
You: "Create a new task called 'Review MCP integration' due next Friday"
Claude: [Creates the task with proper due date]
You: "Mark the first task as completed"
Claude: [Updates the task status to Done]Content Creation
You: "Create a meeting notes page for today's standup"
Claude: [Creates a new page with meeting template]
You: "Add action items from our discussion to that page"
Claude: [Appends bullet points with the action items]Research & Organization
You: "Search for all pages mentioning 'API documentation'"
Claude: [Finds and lists relevant pages]
You: "Create a new database to track our API endpoints"
Claude: [Creates a structured database with relevant properties]π§ Troubleshooting
Common Issues
"Authentication Error"
Check your
.envfile has correct Nango credentialsVerify your Nango integration is active
Ensure your Notion integration has proper capabilities
"Page not found" errors
Make sure you've shared the page/database with your integration
Check the page/database ID is correct
Verify the integration has read access
Claude can't find the server
Check the absolute path in
claude_desktop_config.jsonis correctEnsure Python is in your system PATH
Try running the server manually first to test
"No access token found"
Verify Nango connection is working
Check your
NANGO_CONNECTION_IDmatches your actual connectionTry refreshing your Nango integration
Debug Mode
Run with verbose logging:
python notion-mcp-server.py --debugManual Testing
Test individual functions:
from notion_mcp_server import NotionClient
client = NotionClient()
user = client.get_current_user()
print(f"Connected as: {user.get('name')}")π Security Notes
Never commit your to version control
Keep your Nango secret key secure
Only share Notion pages that the integration needs access to
Regularly review your integration's access in Notion settings
π File Structure
notion-mcp/
βββ main.py # Main MCP server
βββ pyproject.toml # Python dependencies
βββ .env.example
βββ .env # Your credentials (don't commit!)
βββ README.md # This fileπ Getting Help
Check the logs - Look for error messages in Claude Desktop or terminal
Verify permissions - Ensure your integration can access the pages
Test manually - Run the server directly to isolate issues
Check Notion status - Sometimes Notion API has outages
π What's Next?
Once you're up and running:
Try creating complex database queries
Set up automated content creation workflows
Use Claude to help organize and restructure your Notion workspace
Explore advanced filtering and sorting options
π License
This project is open source. Feel free to modify and adapt for your needs!
Happy Notion-ing with Claude! π
Made with β€οΈ for the AI-powered productivity enthusiasts