Notion(MCP)集成
Notion 提供了托管 MCP 端点:https://mcp.notion.com/mcp。 OPL 数据空间可以直接通过 MCP Streamable HTTP 接入它,并用 Notion OAuth 完成认证。
前提
危险
必须设置持久化的 WEBUI_SECRET_KEY,否则容器重启后 OAuth session 会失效。
添加工具
在 管理员面板 → 设置 → External Tools 中新增:
| Field | Value |
|---|---|
| Type | MCP Streamable HTTP |
| URL | https://mcp.notion.com/mcp |
| Auth | OAuth 2.1 |
| ID | ntn |
| Name | Notion |
保存后,在任意聊天里通过 + → Integrations → Tools 打开 Notion,即可触发 OAuth 授权。
常见问题
Failed to connect to MCP server 'ntn':OAuth 过期,重新 toggle 工具mismatching_state:访问地址与WEBUI_URL不一致Object not found:目标页面没在 Notion 中授权给集成