Skip to content

Connect Notion to VS Code

Connected workspace for docs and databases. Its hosted MCP server lets agents search, read and edit pages and databases, such as briefs, specs and research notes.

MCP serverOfficialChecked 2026-11-16

Before you start

  • VS Code installed (see its MCP documentation (opens in a new tab)).
  • Notion is available on macOS, Windows, Linux and the web.
  • Works on every Notion plan; guests can't connect. Your agent opens a Notion sign-in page the first time it connects. Notion's older open-source server is no longer maintained, so use this hosted one.
  1. Step 1: Add Notion to VS Code

    Add it from the terminal

    Adds the server to your VS Code profile, so it works in every workspace.

    Terminal
    code --add-mcp '{"name":"notion","type":"http","url":"https://mcp.notion.com/mcp"}'

    Or add it to the workspace

    Add this to .vscode/mcp.json and commit it to share it with your team.

    .vscode/mcp.json
    {
      "servers": {
        "notion": {
          "type": "http",
          "url": "https://mcp.notion.com/mcp"
        }
      }
    }
    Good to know
    • VS Code asks you to sign in the first time the server starts.
  2. Step 2: Check it's connected

    Run MCP: List Servers from the Command Palette, then open Copilot Chat in Agent mode and check the tools picker.

  3. Step 3: Try a first request

    Ask VS Code something that only works with Notion connected:

    Say to VS Code
    Find the Notion page with our latest product brief and summarise the goals and open questions.

If it doesn't work

  • VS Code asks you to trust a server the first time it starts. Accept it, or the tools stay hidden.
  • code --add-mcp writes to your user profile, so the server works in every workspace.
  • Use MCP: List Servers → Show Output to see startup errors.