A local MCP server can give Claude or Cursor two narrowly scoped Notion tools: read a page title and create a child page. The client launches Node and communicates with it over standard input and output. The server calls the hosted Notion API, and the MCP client receives the returned title or new page ID. Running the bridge locally does not make the workspace or the model session offline.
Choose the pages first
Create an internal Notion integration with read-content capabilities. Enable insert-content capabilities only if you intend to create pages. Share the relevant pages with the integration in Notion. Use a disposable parent for your first write. Format the 32-character page IDs as hyphenated UUIDs rather than pasting full URLs. The server applies two independent lists: permission to read a title never grants permission to write under that page.
Install and configure
Use Node 22 or newer. In an empty directory run:
npm init -y npm install --save-exact @modelcontextprotocol/sdk@1.32.2 zod@3.25.76 Supply NOTION_TOKEN through the local process environment using your existing secret manager. Set NOTION_READ_PAGES to a comma-separated list of page UUIDs. Leave NOTION_WRITE_PARENTS empty initially. A malformed ID stops startup. For clients launched from a desktop shortcut, verify that the launched server inherits these variables. Keep the token out of shared client configuration and source control.
Implement the server
Save the following as server.js in that directory. The parent ID is checked before the server builds the outbound POST. Callers can supply a title and parent ID only. They cannot choose the destination URL, integration token, or arbitrary page properties.
const { McpServer } = require("@modelcontextprotocol/sdk/server/mcp.js"); const { StdioServerTransport } = require("@modelcontextprotocol/sdk/server/stdio.js"); const { z } = require("zod"); const id = z.string().uuid().transform(value => value.toLowerCase()); const title = z.string().trim().min(1).max(200); function allowedPages(variable) { const raw = process.env[variable]; if (!raw || !raw.trim()) return new Set(); return new Set(raw.split(",").map(value => id.parse(value.trim()))); } async function main() { const reads = allowedPages("NOTION_READ_PAGES"); const writes = allowedPages("NOTION_WRITE_PARENTS"); const token = process.env.NOTION_TOKEN; if (!token) throw new Error("Set NOTION_TOKEN"); const server = new McpServer({ name: "local-notion", version: "1.0.0" }); async function notion(path, options = {}) { const response = await fetch("https://api.notion.com/v1/" + path, { ...options, headers: { Authorization: "Bearer " + token, "Notion-Version": "2025-09-03", "Content-Type": "application/json" }, redirect: "error", signal: AbortSignal.timeout(10000) }); if (!response.ok) throw new Error("Notion returned HTTP " + response.status); return response.json(); } function result(text) { return { content: [{ type: "text", text }] }; } server.registerTool("read_title", { description: "Read the title of an allowed page", inputSchema: { page_id: id } }, async ({ page_id }) => { if (!reads.has(page_id)) throw new Error("Page is outside the read allowlist"); const page = await notion("pages/" + page_id); const property = Object.values(page.properties).find(p => p.type === "title"); return result((property?.title || []).map(t => t.plain_text).join("")); }); server.registerTool("create_child", { description: "Create one child page under an allowed parent", inputSchema: { parent_id: id, title } }, async ({ parent_id, title }) => { if (!writes.has(parent_id)) throw new Error("Parent is outside the write allowlist"); const page = await notion("pages", { method: "POST", body: JSON.stringify({ parent: { type: "page_id", page_id: parent_id }, properties: { title: { type: "title", title: [{ type: "text", text: { content: title } }] } } }) }); return result(page.id); }); await server.connect(new StdioServerTransport()); } main().catch(error => { console.error(error.message); process.exitCode = 1; }); Connect and exercise the boundary
Configure your MCP client's local stdio server entry with the absolute path to the Node executable as the command and the absolute path to server.js as its sole argument. Restart the server after changing its environment. Tool discovery should show read_title and create_child. Because it uses stdio transport, no HTTP listener or background daemon is required.
First call read_title with an ID from the read list. Then request create_child with that same ID while the write list is empty. Expect an allowlist error and no outbound write. To enable one write destination, put the disposable parent UUID in NOTION_WRITE_PARENTS, restart the server and request a child titled “MCP smoke test”. Check the returned ID against the child in Notion. Another parent must still be denied. A successful local allowlist check cannot override Notion's own page-sharing rules or integration capabilities.
Handle an uncertain write
If a create request times out, inspect the intended parent before retrying. Notion may have created the page before the response was lost. The server makes one request and has no idempotency ledger. A caller that needs automatic retries must reconcile the first attempt.
The example was tested with a real MCP client and server over stdio and a fixture in place of the Notion API. The checks covered tool discovery, allowed reads, malformed input, denied destinations, an empty write list and the exact outgoing parent and title for an allowed write. Live workspace writes and desktop-client setup were outside that test.

