OAuth And Binding
Scope
This file keeps Notion-specific OAuth notes only.
For canonical OAuth and binding workflow, use uxc skill:
- section:
OAuth and credential/binding lifecycle - file name in
$uxc:references/oauth-and-binding.md
Notion Endpoint Defaults
- endpoint:
mcp.notion.com/mcp - endpoint input accepts both
mcp.notion.com/mcpandhttps://mcp.notion.com/mcp - suggested scopes:
read,write - callback example:
http://127.0.0.1:8788/callback
Recommended Notion Login
uxc auth oauth start notion-mcp \
--endpoint mcp.notion.com/mcp \
--redirect-uri http://127.0.0.1:8788/callback \
--scope read \
--scope write
After the user approves access, finish with:
uxc auth oauth complete notion-mcp \
--session-id <session_id> \
--authorization-response 'http://127.0.0.1:8788/callback?code=...&state=...'
Notes:
- Omit
--client-idby default.uxcwill try dynamic client registration. - If provider/workspace policy rejects dynamic registration, rerun with explicit
--client-id. uxc auth oauth login notion-mcp ... --flow authorization_coderemains available as a single-process interactive fallback.
Interactive Callback Handoff
For agent-driven/manual runs:
- Run the start command and capture the authorization URL plus
session_idprinted byuxc. - Ask the user to open the URL and approve access.
- Ask the user to paste the full callback URL (for example:
http://127.0.0.1:8788/callback?code=...&state=...). - Run
uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>'. - Optionally verify with
uxc auth oauth info <credential_id>when you know the credential id.
Notion Binding Example
uxc auth binding add \
--id notion-mcp \
--host mcp.notion.com \
--path-prefix /mcp \
--scheme https \
--credential notion-mcp \
--priority 100
Validate match:
uxc auth binding match mcp.notion.com/mcp
Notion Duplicate-Binding Tip
If multiple bindings match Notion endpoint, verify with explicit credential against the same read call before removing stale bindings. Do not remove duplicates blindly based on names only.
Default fixed link command for this skill:
command -v notion-mcp-cli
uxc link notion-mcp-cli mcp.notion.com/mcp
If a conflicting command name exists and cannot be safely reused, stop and ask skill maintainers to update the fixed command name.
Then run operation discovery/calls:
uxc mcp.notion.com/mcp -h
notion-mcp-cli -h
notion-mcp-cli notion-fetch -h