Notion
Search, read, create, and update pages and databases in your Notion workspace.
Notion MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with Notion. This server enables Language Models to interact with your Notion workspace through standardized tools for searching, reading, creating, and updating pages and databases.
π Key Features
Page Operations
- π Search through your Notion workspace
- π Create new pages with rich markdown content
- π Read page content with clean formatting
- π Update existing pages
- π¬ Add and retrieve comments
- π§± Block-level operations (update, delete)
Enhanced Markdown Support
- Multiple heading levels (H1-H3)
- Code blocks with language support
- Interactive todo items with checkbox states
- Blockquotes with multi-line support
- Horizontal dividers
- Images with captions
- Nested bullet points
Database Operations
- Create and manage databases
- Add and update database items
- Query with filters and sorting
- Support for various property types:
- Title, Rich text, Number
- Select, Multi-select
- Date, Checkbox
- And more!
π Getting Started
Prerequisites
- Node.js (v16 or higher)
- Notion API key
- MCP-compatible client (e.g., Claude Desktop)
Installation
- Clone the repository:
git clone https://github.com/v-3/notion-server.git
cd notion-server
- Install dependencies:
npm install
- Set up your environment:
# Create .env file
echo "NOTION_API_KEY=your_notion_api_key_here" > .env
# Or export directly
export NOTION_API_KEY=your_notion_api_key_here
- Build the server:
npm run build
π§ Configuration
Claude Desktop Setup
- Update your Claude Desktop configuration (
claude_desktop_config.json):
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["/absolute/path/to/notion-server/build/index.js"],
"env": {
"NOTION_API_KEY": "your_notion_api_key_here"
}
}
}
}
- Restart Claude Desktop to apply changes
π οΈ Available Tools
Page Operations
// Search pages
{
query: string // Search query
}
// Read page
{
pageId: string // ID of the page to read
}
// Create page
{
title?: string, // Page title
content?: string, // Page content in markdown
parentPageId: string // Parent page ID
properties?: object // For database items
}
// Update page
{
pageId: string, // Page ID to update
content: string, // New content
type?: string // Content type
}
Database Operations
// Create database
{
parentPageId: string,
title: string,
properties: object
}
// Query database
{
databaseId: string,
filter?: object,
sort?: object
}
π Setting Up Notion Access
Creating an Integration
- Visit Notion Integrations
- Click "New integration"
- Configure permissions:
- Content: Read, Update, Insert
- Comments: Read, Create
- User Information: Read
Connecting Pages
- Open your Notion page
- Click "..." menu β "Connections"
- Add your integration
- Repeat for other pages as needed
π Usage Examples
Creating a Page
const result = await notion.create_page({
parentPageId: "page_id",
title: "My Page",
content: "# Welcome\nThis is a test page."
});
Querying a Database
const result = await notion.query_database({
databaseId: "db_id",
filter: {
property: "Status",
select: {
equals: "In Progress"
}
}
});
π€ Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
This project has been significantly improved by sweir1/notion-server, who has made following updates:
- Enhanced markdown support with more block types
- Comprehensive database operations
- Improved error handling and debugging
- Better property handling for database items
- Cleaner page output formatting
To use sweir1's version, you can clone their repository:
git clone https://github.com/sweir1/notion-server.git
Server Terkait
Kone.vc
sponsorMonetize your AI agent with contextual product recommendations
PowerPoint
Create PowerPoint presentations with AI-generated images using the TogetherAI API.
Agent Billy
MCP server that gives AI agents and teams secure, role-based access to Stripe billing operations β customer lookups, subscription management, refunds, invoice history β without exposing Stripe dashboard credentials. Sub-100ms reads via local Stripe sync engine. 4 permission levels with audit logging. $14.99/month.
Freee MCP Scalar
AI-driven integration with the freee accounting service via the Model Context Protocol.
PBP β PersΓΆnliches Bewerbungs-Portal
Open-source MCP server for job application management β 73 tools, 18 workflows, 18 job portals, React dashboard, email integration, calendar, multi-profile. Runs locally, free, privacy-first.
Browser Use
A simple, self-contained notes system with resources, tools, and prompts.
hn-mcp-server
Hacker News feeds and search
YouTube Uploader MCP
Upload videos to YouTube using OAuth2 authentication. Requires a Google OAuth 2.0 client secret file.
SilverBullet MCP Server
An MCP server that enables LLMs and other clients to interact with your SilverBullet notes and data.
translateimage
translate image
DeepL
Translate text using the DeepL API.