buildwithdew
Tutorials·8 min read·August 13, 2026

Notion MCP tutorial for Claude Code and Cursor

TL;DR

This tutorial shows how to connect Notion MCP to Claude Code or Cursor in 2026, using Notion’s hosted remote MCP server and OAuth-based authorisation. It walks through setup, scope checks, and safe read/write testing so you can use a real Notion knowledge base without overexposing content or jumping straight to risky edits.

two luminous dew-orbs linked by a narrow pulse — asymmetric bridge — calm precise — cover for: Notion MCP tutorial for Claude Code and Cursor

Key takeaways

  • Notion MCP uses a hosted remote server, so the common 2026 flow is OAuth-based, not API-key plumbing.
  • Claude Code setup is `claude mcp add` plus `/mcp`; Cursor usually uses `mcp.json` or MCP settings.
  • Access is permission-scoped to the pages and databases the user authorises, not the whole workspace.
  • Start with read-only prompts, then test small edits in a controlled page before touching production content.
  • Use a project-scoped config when you want a tighter, more auditable Notion integration.

Notion MCP tutorial: connect Notion to Claude Code or Cursor, authorise access with OAuth, then verify the tools before you let an agent read or edit a real knowledge base. The current low-friction setup uses Notion’s hosted remote MCP server at https://mcp.notion.com/mcp, so you do not need to manage a local API-key flow for the common 2026 workflow.1

What is Notion MCP, and why use it in 2026?

Notion MCP is a hosted remote MCP server that lets MCP-capable clients talk to Notion through OAuth, instead of a separate manual API-key integration.1 That matters because it gives you a cleaner setup path in Claude Code and Cursor, while keeping access tied to the pages and databases the signed-in user has actually authorised.2

For professionals and solopreneurs, the practical use case is straightforward: let the model search a knowledge base, draft updates, and make controlled edits without leaving your editor or terminal.23 The point is not to “AI-enable everything”; it is to connect only the Notion content you already trust, then use that access for retrieval, drafting, and small operational updates.38

How does the access model work?

The key security model is permission inheritance: the AI can only access the Notion pages and databases that the signed-in user has granted, rather than the whole workspace by default.2 That is why the safest workflow is to start with a narrow set of pages or databases, confirm the client shows the tools, and only then ask the agent to touch production content.313

How do you set up Notion MCP in Claude Code?

Claude Code setup is usually a two-step flow: register the remote server, then complete browser-based OAuth from the MCP panel.12

The current command shown in setup guidance is:

claude mcp add --transport http notion https://mcp.notion.com/mcp

After that, open /mcp in Claude Code and finish the authorisation prompt in the browser.12 Official connector guidance describes this as a one-click OAuth flow where the client links to Notion and the user approves the workspace connection in the browser.28

Step-by-step Claude Code setup

  1. Open a terminal in the environment where you use Claude Code.
  2. Register the remote Notion MCP server with the claude mcp add command above.12
  3. Launch Claude Code and open /mcp.
  4. Approve the browser OAuth prompt for the Notion workspace you want to connect.28
  5. Confirm the Notion tools appear before sending any read or write prompt.3

What should you test first in Claude Code?

Start with a read-only validation prompt. Ask Claude Code to list the available Notion tools, describe the connected workspace scope, or summarise a known page you explicitly authorised.313 Once that works, test a small controlled edit in a staging page before asking it to update anything user-facing.

How do you set up Notion MCP in Cursor?

Cursor setup usually means adding a global or project MCP server entry in ~/.cursor/mcp.json or .cursor/mcp.json, pointing at https://mcp.notion.com/mcp, then restarting Cursor and approving OAuth on first use.1212

That difference matters: Claude Code uses the claude mcp add flow and /mcp, while Cursor typically uses mcp.json or its MCP settings UI.1212 If you switch between them, do not assume the configuration is interchangeable.

Cursor setup checklist

  • Add the Notion MCP server to the relevant mcp.json file or use Cursor’s MCP settings UI.12
  • Use https://mcp.notion.com/mcp as the remote endpoint.12
  • Restart Cursor so the server entry is loaded.12
  • Approve the OAuth prompt when Cursor first connects to Notion.28
  • Confirm the Notion tools are visible before asking for reads or edits.3

Global or project scope: which is better?

Use a project-scoped config when you want a narrow, auditable setup tied to one knowledge base or repo. Use a global config when you need the same Notion connection across multiple projects, but only if you are comfortable with that broader convenience.512 In either case, the permission boundary still comes from Notion OAuth and the pages you authorise, not from the file location alone.213

What is the safest workflow for reading and writing a Notion knowledge base?

The safest workflow is: connect, authorise, verify, then automate.138 That sequence keeps you from granting access too early, and it reduces the chance of an agent editing the wrong database or producing confident but unverified changes.

A sensible operating pattern looks like this:

  • Connect the remote server.
  • Authorise only the specific Notion pages or databases you need.313
  • Verify the tools appear in Claude Code or Cursor.
  • Ask for a read-only check first.
  • Test a tiny update in a sandbox page.
  • Move to production content only after the results are consistent.813

Why start read-only?

Read-only prompts let you validate the integration without risking content drift. You can ask the agent to find a page, summarise a knowledge base entry, or check whether a database schema is accessible before it writes anything.313 If the retrieval is wrong, the correction is cheap; if a write goes wrong, the cleanup is not.

What does a controlled write test look like?

Use a single test page or a small database record and ask for one narrow change, such as updating a title, adding a short summary, or appending one approved paragraph.813 Then inspect the result manually in Notion before allowing broader updates.

How do Claude Code and Cursor compare for Notion MCP?

Claude Code is better if you want terminal-first control; Cursor is better if you want the connection inside an editor you already use for coding and documentation.112 Both can connect to the same hosted Notion MCP endpoint, but their setup and day-to-day ergonomics are different.

AspectClaude CodeCursor
Setup styleclaude mcp add plus /mcpmcp.json or MCP settings UI
Endpointhttps://mcp.notion.com/mcphttps://mcp.notion.com/mcp
First approvalBrowser OAuth in Claude Code flowOAuth prompt on first use
Best fitTerminal-based workflowsEditor-based workflows
Main risk to manageOver-broad prompts after authForgetting which project config is active

Claude Code tends to feel more explicit because the MCP registration is visible in the terminal workflow.16 Cursor tends to feel more convenient if your notes, code, and content live in the same workspace, but it rewards discipline around project scope and configuration hygiene.12

What should you avoid when connecting Notion MCP?

You should avoid assuming that OAuth means full workspace access, and you should avoid sending write prompts before verifying the connected scope.21315 You should also avoid treating Claude Code and Cursor as if they share the same setup mechanics, because they do not.1212

Common mistakes to avoid

  • Assuming you need a Notion API key first. The hosted Notion MCP flow is built around OAuth to the remote server, not a manual API-key wiring step for the common setup.128
  • Connecting the whole workspace by default. Access is scoped to the pages and databases the user authorises.213
  • Skipping the tool check. Verify the Notion tools appear in the client before asking for reads or edits.3
  • Testing production content first. Use a controlled page or database before touching live knowledge base pages.813

What does “one-click OAuth” really mean?

It means the client opens a browser-based authorisation flow, and the user approves the workspace connection there.2815 The phrase is easy to overread; it does not mean “one click, full access,” but rather a simplified consent step with permission-scoped access.

What is the practical workflow for a real knowledge base?

The practical workflow is to use Notion MCP as a controlled bridge between your agent and your documentation system, not as an all-purpose automation layer.313 For a team wiki, content hub, or solopreneur operating manual, that usually means three things: search, summarise, and update with review.

A good first project is a small knowledge base with clear structure:

  • A policies page for stable instructions.
  • A tasks database for items the agent can update.
  • A notes area for draft content the agent can prepare but not publish.

Example prompt sequence

  1. “List the Notion pages and databases available in this connection.”
  2. “Summarise the page titled ‘Publishing Checklist’.”
  3. “Draft an update to the ‘Client FAQ’ page based on these notes.”
  4. “Apply this one-line change only to the test page.”
  5. “Show me the final diff before any broader update.”

That sequence reflects the official guidance to use scoped access and to test small edits before letting the agent touch production knowledge base content.313 It is slower than hand-waving a full automation, but it is the version that tends to survive real work.

Is Notion MCP only for Claude Code and Cursor?

No. Notion’s hosted MCP endpoint is positioned as compatible with multiple MCP-capable clients that support remote HTTP servers.1213 Claude Code and Cursor are the most practical examples in current setup guidance, but the underlying pattern is the same: register the remote server, authorise with OAuth, and verify the tools before use.512

That compatibility is useful if your stack changes over time. A setup built on the Model Context Protocol is easier to move between clients than a one-off, client-specific integration, which is exactly why the protocol exists.16 The trade-off is that you still need to understand each client’s registration and approval flow, because those details are not identical.

Frequently asked questions

How do I connect Notion MCP to Claude Code?+

Use the hosted remote server at `https://mcp.notion.com/mcp`. For Claude Code, register it with `claude mcp add --transport http notion https://mcp.notion.com/mcp`, then open `/mcp` and complete OAuth. For Cursor, add the server in `mcp.json` or the MCP settings UI, restart, and approve access on first use.

How do I connect Notion MCP to Cursor?+

Cursor usually uses a global or project MCP configuration file such as `~/.cursor/mcp.json` or `.cursor/mcp.json`, pointing to `https://mcp.notion.com/mcp`. Restart Cursor after saving, then approve the OAuth prompt when the connection is first used. The exact UI can vary by version, but the endpoint and permission flow stay the same.

Do I need a Notion API key for Notion MCP?+

No. The common hosted Notion MCP workflow is OAuth-based, so you authorise the connection in the browser rather than manually wiring a local API key. That is one reason the setup is lower friction than older Notion integrations. You still need to limit what pages and databases the signed-in user authorises.

Does Notion MCP give AI full workspace access?+

No. The access model is permission-scoped to the pages and databases the signed-in Notion user authorises. Connecting does not automatically expose your whole workspace. The safest practice is to connect only the content you intend the agent to read or edit, then verify the scope in the client before using write actions.

What is the safest way to test writes with Notion MCP?+

Start with read-only validation prompts, then test a tiny edit in a sandbox page or database record. Confirm the result manually in Notion before moving to production content. This approach follows the safest current pattern: connect, authorise, verify, then automate gradually.

Sources

  1. Notion MCP: Connect Notion to Claude Code and Cursor - Unblockedgetunblocked.com
  2. Notion MCP: The Complete Guide — Setup, Tools, Security ...ivgraph.com
  3. NotionとClaude Codeを連携する方法|MCP設定と使い方codequest.work
  4. Notion MCP integration for AI agents | Unblockedgetunblocked.com
  5. How to set up MCP servers in Claude Code and Cursordevaireviews.com
  6. How to integrate Notion MCP with Claude Codecomposio.dev
  7. Cursor MCP Servers: Complete Setup Guide for 2026claudefa.st
  8. Notion MCP: The Official Server and How to Use It - usecarly.comusecarly.com
  9. What is the Model Context Protocol (MCP)?modelcontextprotocol.io
#notion-mcp#claude-code#cursor#tutorials#ai-automation

Keep reading