Skip to content

Connect Notion to OpenCode

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

  • OpenCode 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 OpenCode

    Add it from the terminal

    Run this in your project folder. It saves the server to the project's opencode.json.

    Terminal
    opencode mcp add notion --url https://mcp.notion.com/mcp

    Or edit the config file

    Add this to opencode.json at the project root.

    opencode.json
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "notion": {
          "type": "remote",
          "url": "https://mcp.notion.com/mcp",
          "enabled": true
        }
      }
    }
    Good to know
    • Sign in once with opencode mcp auth notion.
  2. Step 2: Check it's connected

    Terminal
    opencode mcp list

    Start OpenCode in the project; the server's tools are available to the agent straight away.

  3. Step 3: Try a first request

    Ask OpenCode something that only works with Notion connected:

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

If it doesn't work

  • OpenCode reads opencode.json from the project root, or ~/.config/opencode/opencode.json for every project.
  • Environment variables use the {env:NAME} syntax inside the config file.
  • Servers that need a sign-in: run opencode mcp auth <name>.