Notion Direct MCP Server
Provides direct API integration with Notion for managing pages, databases, and blocks - including search, create, read, update operations, database queries with filters and sorts, and block-level content manipulation
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Notion Direct MCP Serversearch for my meeting notes from last week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Notion Direct MCP Server
A simple, reliable MCP server for Notion that uses the Notion API directly.
Features
Direct API Integration: No middleware, just direct API calls that work
Core Operations: Search, create, read, update pages and databases
Block Operations: Read and append blocks to pages
Simple & Reliable: Minimal dependencies, easy to debug
Related MCP server: Notion MCP Server
Setup
1. Install Dependencies
cd ~/mcp-servers/notion-direct
python3 -m venv .venv
source .venv/bin/python
pip install -r requirements.txt2. Get Notion Integration Token
Create a new internal integration
Copy the token (starts with
ntn_)Grant the integration access to your pages/databases
3. Configure Claude Code
Add to ~/.config/claude-code/config.json:
{
"mcpServers": {
"notion": {
"command": "/home/rcgalbo/mcp-servers/notion-direct/.venv/bin/python",
"args": ["/home/rcgalbo/mcp-servers/notion-direct/server.py"],
"env": {
"NOTION_TOKEN": "your_token_here"
}
}
}
}4. Restart Claude Code and Connect
Run /mcp in Claude Code to connect to the server.
Available Tools
search_notion: Search for pages and databasesget_page: Get page details by IDcreate_page: Create a new pageupdate_page: Update page propertiesquery_database: Query a database with filters and sortsget_block_children: Get child blocks of a pageappend_blocks: Append blocks to a page
Usage Examples
Search for a project
Use the search_notion tool to find "WNY Leaf" projectCreate a task page
Create a new task page under the WNY Leaf project with title "Implement backend API"Query database
Query the tasks database and show all incomplete tasksTroubleshooting
Token issues: Make sure your token starts with
ntn_and has access to your pagesConnection issues: Check that the virtual environment path is correct
API errors: All errors are returned in the tool response for easy debugging
For New Projects
To use this server in other projects:
Grant your Notion integration access to the project pages
Use the same config in Claude Code
No additional setup needed!
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Read spaces, collections, pages and content; search docs and manage GitBook organization spaces.
- PriorifyOAuthapp.priorify
Agent-complete, permission-scoped product operations for Priorify workspaces.
No-code databases, forms, portals and AI sites. Manage records and automation via natural language.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Notion workspaces through the Notion API. Provides tools to search, read, create, and update Notion pages and databases with real-time synchronization.2,433 npmMIT
- FlicenseBqualityDmaintenanceEnables interaction with Notion workspaces through the Notion API. Supports creating, retrieving, and updating Notion pages and their properties, allowing users to manage Notion content through natural language.4-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Notion workspaces through the Notion API, allowing users to search, read, comment on, and create pages and databases using natural language commands.122,532 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Notion databases and pages via the Notion API. Allows searching, reading, and writing to Notion through natural language.-