Notion MCP Server 讓 AI 可以直接操作 Notion 工作區:
搜尋、建立、編輯 Notion 頁面內容。
查詢資料庫、新增資料列、更新欄位。
在頁面上新增留言和評論。
全域搜尋工作區內的所有內容。
點選 Create new integration
| 欄位 | 建議值 |
|---|---|
| Name | Antigravity MCP |
| Capabilities | ✔ Read content ✔ Insert content(可選) ✔ Update content(可選) |
根據你的需求,選擇適合的權限:
讓 MCP 可以讀取頁面和資料庫內容
讓 MCP 可以新增頁面和資料
讓 MCP 可以更新現有內容
建立完成後,複製 Token(格式:ntn_xxxxxx)
重要!Notion 要求你必須手動將 Integration 加入每個要存取的頁面。
例如:你的課程筆記、專案資料庫等
找到 Connections(連線)選項
點選 Add connections → 選擇你的 Integration(Antigravity MCP)
Tools → MCP → Notion → 按 Install
NOTION_TOKEN = ntn_xxxxxxxxxxxxxxxxxxxxx
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@notionhq/notion-mcp-server"],
"env": {
"NOTION_TOKEN": "ntn_xxxxxx"
}
}
}
}
安裝成功後,在 Antigravity 輸入:
notion.list_data_sources
或
列出我的 Notion 資料庫
object = "data_source"data_source_iddatabase_parent在 Antigravity 中,用自然語言操作 Notion:
搜尋所有包含「課程」的 Notion 頁面
取得頁面 1a6b35e6e67f802fa7e1d27686f017f2 的內容
在「開發」頁面下新增一個標題為「Notion MCP」的頁面
在「Getting started」頁面新增留言「Hello MCP」
原因:Integration 沒有被加入該頁面
解決:到該頁面 → ⋯ → Connections → 新增你的 Integration
答案:不用填!
MCP 使用的是 Internal Integration,不需要 OAuth,所以 Redirect URI 保持空白
正確格式:ntn_ 開頭,例如 ntn_abc123xyz...