Connect your AI Agents to Notion in minutes

Merge lets you securely connect your agents to Notion and thousands of tools instantly

Available tools

append_block_children

Append child blocks to a parent block. CRITICAL: children parameter must be native JSON array of block objects, NOT strings. Use [{"object": "block", "type": "paragraph", ...}] format.

get_block

Retrieve a block by ID

get_block_children

Retrieve children of a block with pagination

update_block

Update a block's content or properties. CRITICAL: All block properties must be native JSON objects, NOT strings. Use proper block type structure.

delete_block

Delete a block

create_comment

Create a comment on a page or block

list_comments

List comments for a block or get ALL comments from an entire page

create_database

Create a new database in Notion with specified schema, properties, and parent page. Requires properly structured parent object with type field and valid page_id.

query_database

Query a database with filtering, sorting, and pagination. CRITICAL: filter and sorts must be native JSON objects (e.g., {"property": "Status", "select": {"equals": "Active"}}), NOT strings. The tool will auto-fix common mistakes but native objects prevent errors.

get_database

Retrieve a database by ID

update_database

Update database properties, title, description, icon, cover, and schema

create_page

Create a new page in Notion under an existing page or database. CRITICAL: All nested objects (parent, properties, children) must be native JSON objects, NOT strings. Use {"type": "page_id", "page_id": "abc123"} format.

How to set up Merge Agent Handler

In an mcp.json file, add the configuration below, and restart Cursor.

Learn more in the official documentation ↗

1{
2  "mcpServers": {
3    "agent-handler": {
4      "url": "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
5      "headers": {
6        "Authorization": "Bearer yMt*****"
7      }
8    }
9  }
10}
11
Copy Code

Open your Claude Desktop configuration file and add the server configuration below. You'll also need to restart the application for the changes to take effect.

Make sure Claude is using the Node v20+.

Learn more in the official documentation ↗

1{
2  "mcpServers": {
3    "agent-handler": {
4      "command": "npx",
5      "args": [
6        "-y",
7        "mcp-remote@latest",
8        "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
9        "--header",
10        "Authorization: Bearer ${AUTH_TOKEN}"
11      ],
12      "env": {
13        "AUTH_TOKEN": "yMt*****"
14      }
15    }
16  }
17}
Copy Code
Copied!

Open your Windsurf MCP configuration file and add the server configuration below.
Click on the refresh button in the top right of the Manage MCP server page or in the top right of the chat box in the box icon.

Learn more in the official documentation ↗

1{
2    "mcpServers": {
3      "agent-handler": {
4        "command": "npx",
5        "args": [
6          "-y",
7          "mcp-remote@latest",
8          "https://ah-api.merge.dev/api/v1/tool-packs/<tool-pack-id>/registered-users/<registered-user-id>/mcp",
9          "--header",
10          "Authorization: Bearer ${AUTH_TOKEN}"
11        ],
12        "env": {
13          "AUTH_TOKEN": "<ah-production-access-key>"
14        }
15      }
16    }
17  }
Copy Code

In Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows), run "MCP: Open User Configuration".

You can then add the configuration below and press "start" right under servers. Enter the auth token when prompted.

Learn more in the official documentation ↗

1{
2  "inputs": [
3    {
4      "type": "promptString",
5      "id": "agent-handler-auth",
6      "description": "Agent Handler AUTH_TOKEN", // "yMt*****" when prompt
7      "password": true
8    }
9  ],
10  "servers": {
11    "agent-handler": {
12      "type": "stdio",
13      "command": "npx",
14      "args": [
15        "-y",
16        "mcp-remote@latest",
17        "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
18        "--header",
19        "Authorization: Bearer ${input:agent-handler-auth}"
20      ]
21    }
22  }
23}
Copy Code

FAQs on using Merge's Notion  MCP server

FAQs on using Merge's Notion  MCP server

How can I use the Notion MCP server?

Here are just a few popular use cases:

  • Knowledge base queries: Your agent can search across your Notion workspace to find relevant information and surface it to users in an app like Slack. For example, it can retrieve company policies, project documentation, or meeting notes when asked
  • Automated documentation: Your agent can create and update Notion pages based on activities in other systems. For instance, it can automatically generate meeting notes from calendar events or create project pages when new initiatives are started in Jira
  • Content generation and updates: Your agent can draft content directly in Notion pages and present it for review. For instance, it can generate weekly reports, compile research findings into structured pages, or create onboarding documentation based on conversations in Slack
  • Onboarding automation: Your agent can personalize onboarding experiences by creating custom Notion pages for new hires. For example, it can generate role-specific onboarding checklists, link to relevant documentation, and set up their personal workspace based on their department and position

What are popular tools for Notion’s MCP server?

Here are some popular tools broken down by data types.

Pages:

  • <code class="blog_inline-code">get_page</code>
  • <code class="blog_inline-code">update_page</code>
  • <code class="blog_inline-code">archive_page</code>
  • <code class="blog_inline-code">get_page_property</code>

Databases:

  • <code class="blog_inline-code">create_database</code>
  • <code class="blog_inline-code">query_database</code>
  • <code class="blog_inline-code">update_database</code>

Users:

  • <code class="blog_inline-code">list_users</code>
  • <code class="blog_inline-code">get_user</code>
  • <code class="blog_inline-code">get_bot_user</code>

What makes Merge Agent Handler’s Notion MCP server better than alternative Notion MCP servers?

Here are just a few reasons:

  • Enterprise-grade authentication and credential management: Merge Agent Handler supports dynamic authorization flows, guided user authentication, and both individual and shared authentication modes across connectors, reducing implementation overhead while maintaining control over access
  • Built-in security and data loss protection (DLP): All tool inputs and outputs are scanned by a security gateway that can block, redact, or mask sensitive data based on default or custom rules you configure
  • Real-time observability and auditability: Every tool call is logged with a complete audit trail. Logs are fully-searchable, enabling teams to monitor, debug, and audit agent behavior in real time
  • Evaluation before production deployment: The Evaluation Suite allows you to validate that tools behave as expected before going live, helping improve success rates and reduce unexpected failures in production

Can I set custom security rules for Notion tool calls in Merge Agent Handler?

Yes, you can set a wide range of custom security rules for Notion tool calls in Merge Agent Handler.⁠

⁠​For example, you can:

  • Block credit card numbers in page content. Prevent your agents from adding credit card numbers to Notion pages or database entries
  • Redact social security numbers. Automatically redact SSNs before they're written to Notion properties or page bodies
  • Log when agents share email addresses. Track whenever your agents add email addresses to Notion databases or pages for audit purposes
  • Redact API keys and tokens: Automatically strip API keys, passwords, or authentication tokens before they're added to Notion documentation
  • Block salary information: Prevent your agents from writing compensation data, revenue figures, or other financial information to Notion
  • Log access to executive content: Monitor when agents read from or write to Notion pages owned by or mentioning C-level executives

How can I start using Merge Agent Handler’s Notion MCP server?

Here are the steps to get started with Merge Agent Handler's Notion MCP server:

1. Sign up for Agent Handler. Visit Merge Agent Handler's sign up page to create your free account and gain access to the dashboard.

2. Build a Tool Pack. Tool Packs control what connectors and tools are available to your agent. Navigate to the Tool Packs section, select Create Tool Pack, add Notion as a connector, and select either Individual or Shared authentication based on your use case.

3. Add a Registered User. Head to the Registered Users section; this represents an identity (human or system) that executes actions on behalf of your agent. When authentication with Notion is needed, Agent Handler automatically presents a guided flow—eliminating the need for custom OAuth implementation.

4. Validate with the Playground. Test your configuration before deploying to production. Open your Tool Pack's Sandbox environment and try out Notion tool calls such as retrieving pages, adding database records, or modifying workspace content.

5. Connect to your application. Link your agent to Agent Handler using one of two methods:

  • MCP configuration: Grab the MCP server config from your Tool Pack settings and insert it into your agent's MCP client configuration. Your agent will then have access to all Notion tools via the Model Context Protocol
  • REST API: Call Agent Handler's API directly to enumerate tools and execute them. This requires your API key, Tool Pack ID, and Registered User ID for authentication

Explore other MCP servers built and managed by Merge

airtable
Airtable
asana
Asana
calendly
Calendly
confluence
Confluence
figma
Figma
github
GitHub
gmail
Gmail
gong
Gong
google_calendar
Google Calendar
google_drive
Google Drive
greenhouse
Greenhouse
hubspot
HubSpot
intercom
Intercom
jira
Jira
jira_service_management
Jira Service Management
linear
Linear
microsoft_teams
Microsoft Teams
onedrive
OneDrive
outlook
Outlook
pipedrive
Pipedrive
quickbooks_online
QuickBooks Online
sapsf
SAP SuccessFactors
salesforce
Salesforce
servicenow
ServiceNow
sharepoint
SharePoint
shopify
Shopify
slack
Slack
stripe
Stripe
weather
Weather
wikipedia
Wikipedia
zendesk
Zendesk
zoom
Zoom

Ready to try it out?

Whether you're an engineer experimenting with agents or a product manager looking to add tools, you can get started for free now