Notion MCP Server
1234567891011121314151617181920212223const mcpConfig = new MCPConfiguration({ servers: { // Example 1: HTTP-based server (e.g., external web service or API gateway) server: { type: "http", url: "https://actions.zapier.com/mcp/YOUR_MCP_KEY/sse", }, }, }); // Fetch all tools from all configured MCP servers into a flat array const allTools = await mcpConfig.getTools(); const agent = new Agent({ name: "MCP Agent", instructions: "An assistant that can use MCP tools configured at startup", llm: new VercelAIProvider(), model: openai("gpt-4o"), tools: allTools, // Add MCP tools during initialization }); // Remember to disconnect later // await mcpConfig.disconnect();
Notion MCP Tools
The Notion MCP server connects your AI agents to Notion's document and database capabilities. Your agents can create pages, update databases, add comments, and manage content, all automatically. Review the features listed below to see how you can harness these capabilities to enhance your knowledge management and team collaboration.
How to Create New Digital Workspaces with Notion MCP?
Create beautiful, organized workspaces in Notion with an effortless ask. Your AI butler will set up new pages for projects, docs, or whatever you need time saving without things getting messy.
Create Page
create_page
composio: notion_page
Enable Collaborative Discussion
Add your thoughts without lifting a finger! Your AI can comment on any Notion page, helping your teams collaborate and comment exactly where they need to in your documents.
Add Comment
add_comment
composio: comment
How to Add New Records to Structured Databases with Notion MCP?
Never enter database records manually again. Your AI will take care of adding new entries to your Notion databases for you, keeping your information organized and up-to-date without all the tedious data entry work.
Create Database Item
create_database_item
composio: row_database
Maintain Clean Workspaces While Preserving Data
Keep your workspace tidy without giving up anything essential. When you're done with something, just tell your AI to stick it in the archives, it'll be safely stored but out of the way until you need it again.
Archive Item
archive_database_item
composio: block
How to Enrich Notion Pages with Dynamic Content Using MCP?
Transform dull pages into rich, stunning documents. Your AI assistant can add any kind of content block - text and images, embeds and callouts - and have your Notion pages come alive with ease.
Add Content to Page
add_content_to_page
composio: page_content
Access Discussion Threads and Feedback
Keep on top of conversations without having to read them all. Your AI can gather and summarize comments from any page, keeping you in the loop about discussions and bringing team feedback together without endless scrolling.
Get Page Comments
get_page_comments
composio: comments
How to Understand Database Structures in Notion with MCP?
Take a glance at how your databases are structured. Your AI can break down the schema of any Notion database, and show you what fields there are and how information is structured so you can work with tricky information better.
Retrieve Database
retrieve_database
composio: database
Extract Relevant Data with Powerful Queries
Find exactly what you're looking for in seconds. Your AI can browse through your Notion databases with precision, sort and filter to retrieve only the information you need - having an insomnia-free research assistant at your fingertips.
Query Database
find_database_item
composio: database
How to Modify Existing Records with Precision in Notion MCP?
Keep your databases current without the hassle. When facts do change, just tell your AI what to update and where. It will do it with accuracy but nothing else.
Update Database Item
update_database_item
composio: row_database
Recover Archived Information When Needed
Fetch stored things at any time. Had second thoughts on something you've stored? No need to worry! Your AI can retrieve it immediately, flexible information handling without deep deletions.
Restore Database Item
restore_database_item
How to Access Complete Notion Page Details with MCP?
View the entire picture of any Notion page in one glance. Your AI can extract all the information and content of specific pages, allowing you to study documents or extract info without taking everything through step by step.
Retrieve Page
retrieve_a_page
Explore Nested Content Structures
Make complicated documents easy to manage. Your AI can have a look inside nested content patterns, identify particular parts, or trace out how information is structured hierarchically - such as having an expert lead the way through your knowledge repository.
Retrieve Block Children
retrieve_block_children
How to Locate Specific Documents by Name with Notion MCP?
Find any page in seconds even if you only remember part of the title. Simply say what you want to your AI, and it'll hunt down just what you need without you having to know exact page IDs or making finicky searches.
Find Page by Title
find_page_by_title
Ensure Records Exist Without Duplication
Never duplicate records again. Your AI first looks to see if a new bit of information is already there before adding it - if so, it'll use that; otherwise, it'll create it fresh. It's like having an assistant who is fussy about details and keeps your databases tidy.
Find or Create Database Item
find_or_create_database_item
Add Context-Aware Comments Without Duplication
Add comments that are relevant without filling your pages. Your AI looks for similar existing comments before adding new ones, without duplicating or muddling important messages.
Find or Create Comment
find_or_create_comment
How to Access Complete Document Hierarchies in Notion Using MCP?
See the high-level overview of your documents in a single glance. Your AI can extract full page structures with their nested content, giving you full visibility for analysis, migration, or processing complicated info structures.
Get Page and Children
get_page_and_children
Access Advanced Notion API Features
Tap the full power of Notion's API without writing a line of code. Your AI handles authentication and technicalities for you, allowing you to leverage the advanced features and specialized functions that are outside of the everyday tools.
API Request
api_request_beta
Access User Identity and Permissions
Get total visibility of who is doing what across your workspace. Your AI can check user identity and permission, letting you see who has access to what and ensuring actions are being taken with the right authority.
Get User Info
about_me
Understand User Account Details
Get tailored insights on any user in your Notion workspace. Your AI can pull account data to help you tailor interactions, discover individual capabilities, and optimize operations to the requirements of individual users.
Get Account Info
about_user
Identify All Workspace Collaborators
See an overview of all people in your workspace. Your AI can pull a whole list of team members, making it easy to know collaboration histories, find the right person for a task, or manage permissions between teams.
List Workspace Users
users
How to Access Single Record Details?
Zoom in on individual database records with precision. Your AI can pull granular information of individual records, enabling you to observe how data points are interconnected and get only the information you need.
Get Database Row Info
row
How to Modify Database Structures Dynamically with MCP?
Morph your databases in real-time as your needs shift. Your AI can restructure database form, inserting fields or modifying data types without touching your initial information - perfect for reacting to shifting project requirements.
Update Database Schema
schema_database