Notion Mcp Skill

👤 jolestar 📦 v1.0.1 ⭐ 4.4 ⬇️ 884 下載
🤖 AI-Agent 免費

📖 技能介紹


name: notion-mcp-skill description: Operate Notion workspace content through Notion MCP using the UXC CLI, including search, fetch, users/teams lookup, page/database creation and updates, and comments. Use when tasks require calling Notion tools over MCP with OAuth (authorization_code + PKCE), especially when safe write controls and JSON-envelope parsing are required.


Notion MCP Skill

Use this skill to run Notion MCP operations through uxc with OAuth and guarded write behavior.

Reuse the uxc skill guidance for discovery, schema inspection, OAuth lifecycle, and error recovery. Do not assume another skill is auto-triggered in every runtime. Keep this skill executable on its own.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://mcp.notion.com/mcp.
  • OAuth callback listener is reachable (default examples use http://127.0.0.1:8788/callback).
  • uxc skill is available for generic discovery/describe/execute patterns.

Core Workflow (Notion-Specific)

Endpoint argument style in this skill: - Prefer shorthand mcp.notion.com/mcp (scheme omitted). - Full URL https://mcp.notion.com/mcp is also valid.

  1. Ensure endpoint mapping exists:
  2. uxc auth binding match mcp.notion.com/mcp
  3. If mapping/auth is not ready, start OAuth login:
  4. uxc auth oauth start notion-mcp --endpoint mcp.notion.com/mcp --redirect-uri http://127.0.0.1:8788/callback --scope read --scope write
  5. Prompt user to open the printed authorization URL.
  6. Ask user to paste the full callback URL after consent.
  7. Complete login with uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>'
  8. Bind endpoint to the credential:
  9. uxc auth binding add --id notion-mcp --host mcp.notion.com --path-prefix /mcp --scheme https --credential notion-mcp --priority 100
  10. Use fixed link command by default:
  11. command -v notion-mcp-cli
  12. If missing, create it: uxc link notion-mcp-cli mcp.notion.com/mcp
  13. notion-mcp-cli -h
  14. If command conflict is detected and cannot be safely reused, stop and ask skill maintainers to pick a different fixed command name.
  15. Discover tools and inspect schema before execution:
  16. notion-mcp-cli -h
  17. notion-mcp-cli notion-fetch -h
  18. notion-fetch requires id (URL or UUID). Examples:
    • notion-mcp-cli notion-fetch id="https://notion.so/your-page-url"
    • notion-mcp-cli notion-fetch id="12345678-90ab-cdef-1234-567890abcdef"
  19. Common operations include notion-search, notion-fetch, and notion-update-page.
  20. Prefer read path first:
  21. Search/fetch current state before any write.
  22. Execute writes only after explicit user confirmation:
  23. For notion-update-page operations that may delete content, always confirm intent first.

OAuth Interaction Template

Use this exact operator-facing flow:

  1. Start login command and wait for authorization URL output.
  2. Tell user:
  3. Open this URL in browser and approve Notion access.
  4. Copy the full callback URL from browser address bar.
  5. Paste the callback URL back in chat.
  6. Run uxc auth oauth complete notion-mcp --session-id <session_id> --authorization-response '<callback-url>'.
  7. Optionally confirm success with:
  8. uxc auth oauth info <credential_id>

Do not ask user to manually extract or copy bearer tokens. Token exchange is handled by uxc. Use uxc auth oauth login ... --flow authorization_code only for a single-process interactive fallback.

Guardrails

  • Keep automation on JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Use notion-mcp-cli as the default command path for all Notion MCP calls in this skill.
  • notion-mcp-cli <operation> ... is equivalent to uxc mcp.notion.com/mcp <operation> ....
  • Use direct uxc mcp.notion.com/mcp ... only as a temporary fallback when link setup is unavailable.

    推薦訪問7w4.net獲取更多AI技能。

  • Call notion-fetch before notion-create-pages or notion-update-page when targeting database-backed content to obtain exact schema/property names.
  • Treat operations as high impact by default:
  • Require explicit user confirmation before create/update/move/delete-style actions.
  • If OAuth/auth fails, use uxc skill OAuth/error playbooks first, then apply Notion-specific checks in this skill's references.

References

  • Notion-specific auth notes (thin wrapper over uxc skill OAuth guidance):
  • references/oauth-and-binding.md
  • Invocation patterns by task:
  • references/usage-patterns.md
  • Notion-specific failure notes (thin wrapper over uxc skill error guidance):
  • references/error-handling.md

🤖 AI 評測

這是一份編寫規範的 Notion 操作技能文件,質量可靠。主要優點是流程清晰、安全防護到位、文件結構合理。不足之處在於示例較少,缺乏實際執行效果的展示,新手可能難以快速上手。另外錯誤處理和故障排查方面的內容可以更豐富一些。總體來說適合有經驗的使用者使用,新手可能需要額外查閱資料輔助理解。

📊 多維度評分

適應性4.4
規範性4.5
有效性4.7
可靠性4.2
可信度4.3

📁 包含檔案 (7 個)

📄 SKILL.md 4.6 KB
📄 _meta.json 135 B
📄 agents/openai.yaml 264 B
📄 references/error-handling.md 972 B
📄 references/oauth-and-binding.md 2.5 KB
📄 references/usage-patterns.md 1.9 KB
📄 scripts/validate.sh 4 KB