Notion API key, OAuth and MCP

Read and write Notion pages and databases from a script, an automation or an AI. The API key is created in 4 steps et voyage dans l'en-tête de chaque appel. OAuth is used when the access must act on behalf of other accounts. An official MCP server (mcp.notion.com) connects it to Claude, ChatGPT or Le Chat.

Project management and organisation · Notes, wiki, projects

Notion

Read and write Notion pages and databases from a script, an automation or an AI.

  • REST API
  • Key or personal token
  • OAuth
  • Official MCP server
  1. 1

    Ouvrez Paramètres, Connexions, puis Développer ou gérer les intégrations (notion.so/profile/integrations).

  2. 2

    Créez une intégration interne, choisissez l'espace de travail et les capacités : lire, modifier, insérer du contenu.

  3. 3

    Copiez le jeton interne, qui commence par ntn_.

  4. 4

    Sur chaque page ou base à exposer : menu ···, Connexions, ajoutez l'intégration. Sans ce partage, l'API ne voit rien.

Send with every call
Authorization: Bearer ntn_…
Notion-Version: 2022-06-28
Test the key
curl https://api.notion.com/v1/users/me \
  -H "Authorization: Bearer $NOTION_CLE" \
  -H "Notion-Version: 2022-06-28"

Worth knowing. The integration token opens every page shared with it: one integration per use, not one for everything.

Your questions about Notion.

Where do you create a Notion API key?

Ouvrez Paramètres, Connexions, puis Développer ou gérer les intégrations (notion.so/profile/integrations). Créez une intégration interne, choisissez l'espace de travail et les capacités : lire, modifier, insérer du contenu. Copiez le jeton interne, qui commence par ntn_. Sur chaque page ou base à exposer : menu ···, Connexions, ajoutez l'intégration. Sans ce partage, l'API ne voit rien.

How do you check that Notion access works?

With a call that changes nothing, on the REST API of Notion, l'en-tête Authorization: … en place. The “API key” tab gives the command to copy. A 200 response confirms the key; a 401 or 403 error means it is wrong, expired or too restricted.

Do you need OAuth with Notion?

Only if the access must act on behalf of accounts other than yours. For an app installed in other workspaces: create a public integration, declare the redirect URL, then exchange the code received for a token at https://api.notion.com/v1/oauth/token.

Does Notion have an official MCP server?

Official MCP server. Its address: https://mcp.notion.com/mcp. OAuth sign-in with your account: the AI sees what you see, nothing more. The “MCP server” tab explains how to add it in Claude, ChatGPT or Le Chat.

What precautions should you take with Notion access?

The integration token opens every page shared with it: one integration per use, not one for everything.