
Notion Mcp
io.github.shck-dev由 GitHub 帳號 shck-dev 發布v0.5.2更新於 Oct 24, 2026
Notion MCP server — search, export, and import pages as markdown
發布方自己的服務:Notion
概覽
讓助理搜尋 Notion 工作區,並以 Markdown 匯出、匯入、附加與建立頁面,還能管理留言與圖片。
- 可以做什麼
- 透過 Notion 內部網頁 API 搜尋帳號可見的所有頁面,將頁面匯出為 Markdown,並把 Markdown 字串或本機檔案寫回頁面。匯入會取代頁面原有內容,附加則只在尾端加入、不動既有內容。也可建立子頁面、上傳本機圖片或引用外部圖片網址,以及列出、新增與回覆留言討論。
- 適用情境
- 適合希望助理以 Markdown 讀寫 Notion 頁面、又不想建立 Notion 整合或等待工作區管理員審核的情境。適用於帳號本身已有相關頁面存取權限的個人或小型團隊工作流程。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 18 以上版本(或 Bun)。需要從瀏覽器取得三個值:NOTION_TOKEN(token_v2 cookie)、NOTION_USER_ID 與 NOTION_SPACE_ID,以環境變數提供或由 init 指令儲存。需要連線至 Notion 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Notion Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@shck-dev/notion-mcp
Notion MCP Server — search, export, and import pages as markdown
[npm version] [npm downloads] [license]
No workspace admin. No OAuth. No page sharing.
Just paste 3 values from your browser and go.
Features
- Search — full-text search across your entire workspace
- Export — download any page as clean markdown (headings, lists, to-do, code blocks, tables, links, images with viewable URLs)
- Import — write markdown back to Notion pages (replaces content), from a string or local file
- Append — add markdown to the end of a page without touching existing content
- Create — spin up new child pages, optionally prefilled from a markdown string or file
- Images — upload a local image to a page, or reference an external URL
- Comments — list open discussions, add new comments, reply to threads
- One-command setup —
npx @shck-dev/notion-mcp init: paste a browser "Copy as cURL" and it extracts + saves your credentials - Prompts & resources — a
notion_setupprompt and anotion://guideresource for in-client onboarding - Zero setup friction — uses the same internal API as the Notion web app; if you can see it in your browser, this server can access it
Tools
Why not the official Notion API?
Trade-off: The internal API is undocumented and may change. Token expires periodically (re-grab from browser).
Quick start
Easiest: interactive setup
Open Notion in Chrome → DevTools (F12) → Network → click any request to notion.so/api/v3/… → right-click → Copy as cURL, then paste it and press Ctrl-D. Your token, user id, and workspace id are extracted and saved to ~/.notion-mcp/config.json. Then register the server — no env block needed:
Prefer to set the three values by hand? Steps below.
1. Get credentials from your browser
- Open notion.so in Chrome
- Press F12 → Application → Cookies →
www.notion.so - Copy the
token_v2cookie value →NOTION_TOKEN - Press F12 → Network tab, do any action in Notion
- Find a POST request to
api/v3/*, click it - From Request Headers: copy
x-notion-active-user-header→NOTION_USER_ID - From Request Body (Payload): find
spaceId→NOTION_SPACE_ID
2. Configure your MCP client
Claude Code
Claude Desktop / Cursor / any MCP client
Add to your MCP config (claude_desktop_config.json, .cursor/mcp.json, etc.):
Requirements
- Node.js ≥ 18 (for
npx) — or Bun. The published server is compiled to node-compatible JS, so Bun is no longer required to run it.
Limitations
- Internal API — undocumented, may break with Notion updates
- Token expiry —
token_v2expires periodically; re-grab from browser when auth fails - Databases — database/collection pages don't export rows yet; sub-pages render as links and such pages return an explanatory note instead of empty output
- Block granularity — import replaces all content, append adds to the end (no in-place editing of individual blocks)
- Lossy markdown — some complex formatting may simplify during conversion (e.g. nested lists flatten on import)
- External images — http(s) image URLs added via
notion_add_image(or embedded in markdown) are referenced as-is and not re-uploaded to Notion
License
MIT
來源:README.md,提交 736e785
工具
0版本歷史
1- v0.5.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Notion 整合
Notion
com.notion官方發布者
Notion 的託管 MCP 服務,由 notion.com 發布;需要憑證;Streamable HTTP。

Notion Large File Upload
由 GitHub 帳號 shoubhiksaha 發布
本機 MCP 伺服器,將磁碟上的大型檔案(最大 5 GB)上傳到 Notion 並附加為頁面上的區塊。
Notion
com.foreverworks
本機 MCP 伺服器,讓助理搜尋、讀取與寫入多個 Notion 工作區,頁面以 Markdown 呈現,資料庫可依型別查詢。

Notion MCP by InsightfulPipe
com.insightfulpipe
託管的 Notion MCP 伺服器,讓 AI 助理搜尋、讀取 Notion 頁面、資料庫、資料來源與區塊,並在具備寫入權限時建立或更新內容。

Notion Arena
由 GitHub 帳號 imgul 發布
Notion Arena 元件登錄表的本機 MCP 伺服器,讓助理搜尋、檢視並規劃安裝 Notion 小工具與原生配方。