Announcing CIMD support for MCP Client registration
Learn more

Notion MCP Server vs Notion API for AI Agents (2026)

Diagram: Claude Code, Cursor and Codex connect to Notion's hosted MCP server; a product's agent reaches Notion per user through a Scalekit Virtual MCP server

Notion MCP is Notion's hosted MCP server at https://mcp.notion.com/mcp. Each user signs in with OAuth and the client acts with that user's Notion permissions, which suits one person in Claude, Cursor or Codex. To connect Notion to an agent that serves many users, each user authorizes your app with OAuth and your back end stores one token per user and workspace, through Notion MCP or a public connection on the Notion REST API.

That per-user layer is the work behind most MCP integrations. For the general difference between the two approaches, see MCP vs API explained.

TL;DR

  • Notion MCP is a remote server that Notion hosts and maintains. It works on every Notion plan, and connecting Claude Code, Cursor or Codex takes one URL and a sign-in.
  • The REST API still owns webhooks, edits to a single block by ID, and connections that see only the pages a user picks. An MCP access token works only with Notion MCP, so a product that uses both paths holds two grants per user.
  • For a product, both paths mean per-user token storage, refresh and revocation. Scalekit AgentKit has a Notion connector for the REST API and a Notion MCP connector that routes to Notion's server. It runs each user's sign-in, stores and refreshes their tokens, and serves the tools from one MCP server URL.

What Notion MCP and Notion API actually are

Notion MCP

Notion MCP is a remote MCP server hosted by Notion. After a user authorizes a connection with OAuth, the client can read and update the content that user can access. The recommended transport is Streamable HTTP at https://mcp.notion.com/mcp, with an SSE endpoint at https://mcp.notion.com/sse for clients that need it.

Authorization is OAuth 2.0 with PKCE. The server supports dynamic client registration, and its authorization server metadata also advertises client ID metadata documents. Access tokens expire, so a client has to handle refresh.

Notion's supported tools page documents more than 60 tools. They cover search, fetching pages as Markdown, creating, updating, moving and duplicating pages, moving pages and databases to Trash and restoring them, databases, data sources and views, SQL queries over data sources, comments, file uploads up to 20 MiB, users and teamspaces, calendar events and Custom Agent sessions. On Business and Enterprise plans with Notion AI, search also reaches connected sources such as Slack, Google Drive and GitHub.

Workspace owners manage MCP clients under Settings, Notion MCP, Manage workspace clients. Limiting which clients members can connect needs the Enterprise plan, and organization owners can list and revoke members' MCP connections through the Admin API. Workspace guests cannot connect.

The open-source notion-mcp-server

Notion's earlier notion-mcp-server package still exists, but Notion says it is no longer actively maintained, issues and pull requests are not monitored, and the repository may be sunset. It authenticates with a connection token, and you host it yourself. Notion points to it only for cases such as bearer-token automation or reusing an existing connection. For a client that speaks only stdio, Notion documents the mcp-remote bridge to the hosted server instead.

Notion API

The Notion REST API at api.notion.com/v1 covers pages, blocks, databases and data sources, views, comments, users, file uploads, search, page content as Markdown and webhooks. Every request sends a Notion-Version header, and the latest version is 2026-03-11.

The API accepts three kinds of credentials, which Notion now calls connections:

  • Internal connections use a static token for one workspace and act as their own bot user. Members share pages with the bot through Add connections.
  • Public connections use OAuth 2.0. Each user who authorizes gets their own access and refresh token, scoped to their workspace and to the pages they choose.
  • Personal access tokens act as the user who created them. Notion says not to use them to authenticate a product used by many Notion users.

How to connect Notion MCP to Claude, Claude Code, Cursor and Codex

Every client below connects to the same URL and signs each user in through Notion's own consent screen. Notion's connection guide also covers VS Code, Devin, Hermes and Antigravity.

Claude.ai and Claude Desktop

Notion is an Anthropic-verified connector, made by Notion, in Claude's Connectors directory. Go to Customize, Connectors, select Discover, search for Notion, select Connect to Claude, then sign in to Notion and approve access. On Team and Enterprise plans, an Owner adds the connector for the organization and each member connects their own account.

Claude Code

Add the server, then run /mcp inside Claude Code and follow the browser sign-in:

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

Add --scope project to share the server with your team through .mcp.json, or run claude mcp login notion to sign in from your shell. If you added Notion as a connector in claude.ai, Claude Code lists it automatically when you sign in with a claude.ai subscription. For sign-in loops and 401s, see Claude Code MCP OAuth.

Cursor

Create .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project:

{ "mcpServers": { "notion": { "url": "https://mcp.notion.com/mcp" } } }

Open Customize in Cursor's sidebar, enable Notion and complete the OAuth flow. Cursor registers itself through dynamic client registration, so no client ID is needed.

Codex

Add the server to ~/.codex/config.toml, or to .codex/config.toml in a trusted project to share it:

[mcp_servers.notion] url = "https://mcp.notion.com/mcp"

Then sign in:

codex mcp login notion

Codex also adds the same server from the CLI with codex mcp add and its --url flag.

ChatGPT

ChatGPT connects to remote MCP servers. You can add a custom MCP server from ChatGPT's Plugins page, subject to your account and workspace policies. Notion lists ChatGPT among the AI apps that connect through Notion MCP. For ChatGPT connections, Notion MCP exposes its search and fetch tools as search and fetch and returns the result shape that ChatGPT's company knowledge and deep research expect.

Comparing them where it matters for agents

What your agent can actually do

Capability
Notion MCP (hosted)
Notion REST API
Search the workspace
Yes: notion-search
Yes: POST /v1/search
Search connected sources (Slack, Google Drive, GitHub)
Business or Enterprise with Notion AI: notion-connector-search
No
Read a page
Yes: notion-fetch, as Markdown
Yes: block children, or GET /v1/pages/:id/markdown
Create, move and duplicate pages
Yes: notion-create-pages, notion-move-pages, notion-duplicate-page
Create and move: yes. Duplicate: no single endpoint
Create databases and views
Yes: notion-create-database, notion-create-view, notion-update-view
Yes: create a database, create and update views
Targeted edits
Search-and-replace on page text: notion-update-page
Search-and-replace on page Markdown, or update, append or delete one block by ID
Move to Trash and restore
Yes: notion-delete-pages, notion-restore-pages
Yes: in_trash on pages and blocks
Query a database
Saved views on every plan; SQL unlimited on Business or Enterprise with Notion AI, limited on other plans
Yes: query a data source, on every plan
Upload files
Yes: notion-create-file-upload, up to 20 MiB
Yes: file upload API, larger files in parts
Comments
Create and read on every plan; edit, delete and resolve on Business or Enterprise
Yes: create, read, update and delete
Webhooks
No
Yes: page, database and comment events
Page access
Everything the user can access
Pages the user shares with the connection

The block-level gap has narrowed. notion-update-page now edits content with search-and-replace operations through its update_content command, so an agent can change one passage without rewriting the page. It still works on page text, not block IDs. On very large pages, about 20,000 records, an edit that touches content the tool could not load fails and leaves the page unchanged. The REST API offers the same update_content command on its page Markdown endpoint, and also lets an agent retrieve, update or delete a single block by ID and append children at a set position.

Webhooks are the larger gap. If your agent must react when a page changes, a property is updated or a comment is added, you need a webhook subscription on a connection. Notion MCP has no event surface.

The auth path each one puts you on

On the MCP path, each user completes an OAuth flow in a browser. The connection then acts with that user's full Notion permissions: there is no page picker, and Notion's own guidance is that the client can access everything the user can. A client that stores the refresh token can keep working after that first sign-in without the user present.

Notion has added two ways to skip the browser. On Business and Enterprise plans, a workspace owner can create an MCP token in the Developer portal, and the client sends it as a bearer token with no browser sign-in. Enterprise workspaces with SAML SSO can also use enterprise-managed authorization, where the company's identity provider issues an assertion that the client trades for a Notion MCP access token, with no consent screen and no refresh token. Both suit a team's own workspace better than a product that serves other companies.

On the REST path, a product uses a public connection. Each user opens your authorization URL, sees the capabilities you request and picks the pages to share, and your server exchanges the code for an access token and a refresh token. Refreshing returns a new pair. After one user authorizes, only that user can use the connection in their workspace, so every teammate who wants it completes the flow too.

What you own in production

Notion hosts the MCP server and maintains its tool schemas, so new tools reach your agent without a release. Those schemas are not versioned, and Notion warns that tool responses can gain fields at any time. The REST API is pinned by Notion-Version, although additive changes reach every version at once.

Rate limits are shared. Notion MCP uses the standard API request limits: 180 requests per minute per connection, or 600 on Business and Enterprise, plus a per-workspace limit shared by every connection and about 3 requests per second for data source queries. Notion MCP retries a rate-limited call once when the wait is two seconds or less and otherwise returns the error with retry_after_seconds. On the REST path you write that retry logic, plus request construction, pagination and schema updates.

When to use MCP, when to use the API

Use Notion MCP when:

  • A person is present to sign in, in Claude, Claude Code, Cursor, Codex or another client.
  • The job is search, reading, writing and organizing pages and databases.
  • You want Notion to maintain the tools, including Markdown reading and editing and SQL over data sources.
  • The agent serves you or your own workspace.

Use the Notion API directly when:

  • The agent reacts to changes through webhooks.
  • It edits specific blocks by ID or builds pages block by block.
  • Users should share only the pages they pick, rather than everything they can see.
  • You serve many customers' workspaces and want your own OAuth app and brand on the consent screen.
  • You need a pinned, versioned contract for a deterministic pipeline.

The credential problem that exists on both paths

Connecting Notion for many users

A product that connects many users' Notion workspaces holds one grant per user, per workspace. On the REST path, the token response carries a workspace_id, a bot_id and the owner, and Notion advises storing the token pair from every authorization, including re-authorizations. Users can change which pages they share later, so a request for a page they no longer share returns an error your agent has to handle.

On the MCP path, your product acts as an MCP client. It registers through dynamic client registration, runs OAuth with PKCE for each user, and stores the access and refresh tokens. The first token exchange returns user_id and workspace_id and refresh responses do not, so store them the first time. Notion's MCP client guide also notes that an MCP access token works only with Notion MCP. If your agent needs webhooks or block edits as well, each user authorizes both paths.

Whichever path issues them, the tokens must be encrypted at rest, isolated per tenant and revocable. When a user revokes access in Notion, the next call fails, and your agent should ask the user to reconnect rather than fail silently.

The N-credential reality

Fifty customers mean fifty OAuth grants, fifty refresh lifecycles and fifty revocation paths, and a tool call must never pick up another user's token. Per-user OAuth for MCP integrations covers that design and its failure modes.

Building Notion agents with Scalekit

AgentKit is an MCP gateway that runs each user's OAuth flow, stores their tokens encrypted with AES-256-GCM under a key per environment, refreshes them and calls tools as that user. It has two Notion connectors:

  • The Notion connector calls the Notion REST API. It lists 51 tools, 26 read, 20 write and 5 destructive, including notion_block_update, notion_page_markdown_get and notion_data_source_query. Scalekit's OAuth app works out of the box, or use your own so the consent screen shows your app.
  • The Notion MCP connector routes tool calls to Notion's MCP server. It lists 65 tools, 14 read, 46 write and 5 destructive, such as notionmcp_notion-search and notionmcp_notion-update-page.

You create a Virtual MCP server once per agent role, and all users share its URL. Before each run, your back end mints a session token for one user. Scalekit checks the token, finds that user's Notion account and calls Notion with it, so your agent never receives a Notion token. One server can list tools from both connections.

Once per agent role, create the server:

import os from scalekit import ScalekitClient from scalekit.actions.models.mcp_config import McpConfigConnectionToolMapping actions = ScalekitClient( env_url=os.environ["SCALEKIT_ENVIRONMENT_URL"], client_id=os.environ["SCALEKIT_CLIENT_ID"], client_secret=os.environ["SCALEKIT_CLIENT_SECRET"], ).actions server = actions.mcp.create_config( name="notion-workspace-assistant", connection_tool_mappings=[ McpConfigConnectionToolMapping( connection_name="notionmcp", # your Notion MCP connection tools=[ "notionmcp_notion-search", "notionmcp_notion-fetch", "notionmcp_notion-create-pages", "notionmcp_notion-update-page", ], ) ], ).config print(server.id, server.mcp_server_url)

Before each run, check the user's account and mint a token. If the account is not active, send the user the authorization link:

from datetime import timedelta user_id = "user_123" # your app's stable ID for this user accounts = actions.mcp.list_mcp_connected_accounts( config_id=server.id, identifier=user_id, include_auth_link=True ) for account in accounts.connected_accounts: if account.connected_account_status != "ACTIVE": print("Send the user this link:", account.authentication_link) session = actions.mcp.create_session_token( mcp_config_id=server.id, identifier=user_id, expiry=timedelta(minutes=30), )

During the run, connect any MCP client with the server URL and the session token as a bearer header. With the Python MCP SDK, version 2:

import asyncio import httpx2 from mcp import Client from mcp.client.streamable_http import streamable_http_client async def run(): headers = {"Authorization": f"Bearer {session.token}"} async with httpx2.AsyncClient(headers=headers, timeout=30) as http: url = server.mcp_server_url transport = streamable_http_client(url, http_client=http) async with Client(transport) as mcp: tools = await mcp.list_tools() print([tool.name for tool in tools.tools]) result = await mcp.call_tool( "notionmcp_notion-search", {"query": "Q3 roadmap"}, ) print(result.is_error, result.content) asyncio.run(run())

How session tokens behave:

  • A token is bound to one user and one server. Sent to any other server URL, it returns 401.
  • It lasts one hour by default, and you can set anything from 60 seconds to 24 hours.
  • It is not refreshed. Mint a new one per run, per chat session, or on a schedule for a long-running host.
  • Add access_level="READ_ONLY" and the run sees only the read tools.

The server also lists a connect_account tool, so an agent can fetch an authorization link for a user who has not connected Notion yet. To revoke one user, delete their connected account; other users keep working:

actions.delete_connected_account( connection_name="notionmcp", identifier=user_id )

AgentKit keeps tool call logs for 90 days with the tool name, connected account, identifier, status and duration, and never stores a tool's successful response. For a full multi-user agent build, see Build a multi-user Notion knowledge and task agent.

Security notes

  • Treat page content as untrusted input. Notion warns that instructions hidden in content a client reads can lead to data disclosure or unwanted edits, so turn on confirmation before actions that change content.
  • Keep deletes behind approval. Notion's notion-delete-pages and notion-delete-databases move items to Trash and take an explicit confirmation flag; require a person to approve them.
  • Scope access. Notion MCP sees everything the user can see. Where that is too broad, use a public connection with page selection, or read-only session tokens for agents that only read.
  • Control clients. Enterprise admins can approve which AI apps connect, and organization owners can revoke members' MCP connections through the Admin API. With Scalekit, deleting a connected account removes one user's access without touching anyone else's.

Which one to build against

For an interactive agent that searches, reads and writes Notion for the person using it, Notion MCP is the faster path, and Notion keeps the tools current. For an agent that reacts to webhooks, edits specific blocks, limits itself to pages a user picks, or serves many customers under your own OAuth app, build on the REST API. Many products use both, and the per-user credential work is the same either way.

FAQs

Does Notion have an official MCP server?

Yes. Notion hosts Notion MCP at https://mcp.notion.com/mcp over Streamable HTTP, with an SSE endpoint as a fallback. Users authorize it with OAuth, and the client acts with that user's Notion permissions.

How much does Notion MCP cost?

Notion's docs say Notion MCP works on every plan. Some features depend on the plan: MCP tokens need Business or Enterprise, connected-source search and unlimited SQL queries need Business or Enterprise with Notion AI, and request limits are higher on Business and Enterprise.

How do I add Notion MCP to Claude Code?

Run claude mcp add --transport http notion https://mcp.notion.com/mcp, then run /mcp in Claude Code and complete the Notion sign-in in your browser. Add --scope project to share the server with your team.

Can ChatGPT use MCP and connect to Notion?

Yes. ChatGPT connects to remote MCP servers, and you can add a custom one from ChatGPT's Plugins page if your account and workspace policies allow it. Notion lists ChatGPT among the AI apps that connect through Notion MCP, and Notion MCP returns the search and fetch results that ChatGPT expects.

Can a headless or background agent use Notion MCP?

Yes, with limits. After one interactive sign-in, a client that stores the refresh token can keep working without the user. Business and Enterprise workspaces can also use an owner-created MCP token, and Enterprise workspaces with SAML SSO can use enterprise-managed authorization, which skips the consent screen.

What can the Notion API do that Notion MCP cannot?

The REST API offers webhooks, edits to individual blocks by ID, page access limited to the pages a user picks, and a pinned, versioned contract. Notion MCP has no webhooks and edits page text through search-and-replace operations.

How do I connect Notion to an agent for many users?

Have each user authorize your app with OAuth, through a public connection on the REST API or through Notion MCP, then store, refresh and revoke one token per user. Scalekit AgentKit does this for you and gives your agent one MCP server URL with a short-lived session token bound to each user.

Details checked October 2026.

No items found.
Agent
Auth Quickstart
On this page
Share this article
Scalekit
Connect Agents & Apps

Acquire enterprise customers with
‍zero upfront cost.

Every feature unlocked. No hidden fees.