
With Merge Agent Handler's Notion MCP server connected to Claude Code, your agents can search pages, create and update content, and manage databases directly from the terminal.
This guide walks through connecting Claude Code to Notion via Merge Agent Handler in five steps.
Merge Agent Handler acts as the layer between Claude Code and Notion's API. You install the Merge CLI, authenticate once, and register the connection with a single command. Agent Handler manages your Notion OAuth credentials and routes every API call so you don't store tokens locally or handle credential state yourself.
Here's the command that registers the connection:
Related: A guide to connecting to a Notion MCP with Codex
Before getting started, you'll need the following:
claude --version to confirm)pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Notion MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install with pipx: pipx install merge-api

Verify your installation: merge --version
Authenticate the CLI with your Merge Agent Handler account: merge login
Once complete, the CLI can make authorized API requests on your behalf.
To add Agent Handler to Claude Code, run:
Or register manually with:
Verify the connection registered. Open Claude Code and run: /mcp
agent-handler should appear under Local MCPs with a connected status.

Related: The steps for integrating a Notion MCP with Cursor
Select agent-handler from the MCP list. This opens a browser window where you select which integrations to authenticate. Choose Notion and complete the OAuth flow, granting your agent access to the pages and databases you specify.
The first time you use a Notion tool in a Claude Code session, a Magic Link may appear to complete connector authentication. Once authenticated, Merge stores and manages the token. You won't need to re-authenticate unless you revoke access.

You can now prompt Claude Code to take action in Notion. For example: "Search the engineering wiki for any existing documentation on our authentication service before I start writing the new spec."

Or you can ask Claude Code for information in Notion: "What’s the top priority for our product roadmap next quarter?”

{{this-blog-only-cta}}
In case you have more questions on setting up and using the Notion MCP in Claude Code, we’ve addressed several more commonly-asked questions below.
Merge Agent Handler's Notion connector includes enterprise-grade security controls, data loss prevention, and real-time observability over every tool call.
You can scope exactly which pages and databases your agent can access, and set custom guardrails to make sure agents only read or write what they're supposed to.
Developers constantly reference Notion docs while writing code, whether it’s architecture decisions, API specs, onboarding guides, etc.
By connecting the Notion MCP to Claude Code, your agents can pull that context directly into the terminal for your engineers, enabling them to spend less time hunting through wikis and more time building.
Use Merge Agent Handler’s 150+ connectors (including Notion) to power reliable, secure, and powerful agents.