How It Works
During OAuth 2.1 sign-in, Notion lets you choose the exact workspace and pages your agent is allowed to access. Tokens are saved locally in~/.praisonai/mcp-auth.json (0600) and shared across Python, CLI, and Dashboard.
Step-by-Step Setup
1
Prerequisites
- A Notion account with permission to authorize integrations in your workspace
- Know which top-level pages or databases you want to grant access to during consent
2
Install PraisonAI with MCP support
3
Add and authenticate Notion
- CLI (Interactive OAuth)
- Headless / SSH (--manual)
- PraisonAI Dashboard
4
Verify and list available tools
5
Use Notion with your agent
Scope Tools for Safety
Limit knowledge-lookup agents to search/fetch tools and require approval before editing or creating pages:Common Workflows
- Meeting Notes Action Items:
"Search Notion for this week's standup notes and extract every owner and due date." - Drafting Spec Pages:
"Fetch the Product Spec template in Notion and draft a new spec for our webhook retry feature."
Troubleshooting
Best Practices
Grant access only to specific Notion folders
Grant access only to specific Notion folders
During OAuth consent, share only the project or wiki parent pages the agent needs rather than your entire company workspace.
Check exact tool names with praisonai mcp sync notion
Check exact tool names with praisonai mcp sync notion
Notionโs remote MCP tool names can evolve โ run
praisonai mcp sync notion to inspect exact tool names before configuring allowed_tools.Use approval='always' before enabling page writes
Use approval='always' before enabling page writes
Set
approval="always" on MCP(...) whenever an agent is allowed to create or overwrite shared Notion documentation.Related
List of Connectors
Browse all popular connectors and step-by-step guides
Remote MCP Connectors
CLI commands, โmanual sign-in, and Dashboard setup
Notion Tool (Python)
Local Python wrapper using NOTION_API_KEY
MCP OAuth Authentication
OAuth 2.1 PKCE flow and token management

