mcp-notion-server
Categories
Language:
JavaScript
Stars:
0
Forks:
2
mcp-notion-server
A Model Context Protocol server for Notion integration
This TypeScript-based MCP server implements a bridge between Claude and Notion, allowing seamless interaction with Notion's databases and pages. It demonstrates core MCP concepts through:
- Resource management for Notion pages and databases
- Tools for CRUD operations on Notion content
- AI-powered prompts for content analysis
Features
Resources
- Access Notion pages and databases via URIs
- Support for plain text and rich text content types
- Metadata extraction from Notion properties
Tools
Database Operations
list_databases
- List all accessible Notion databasescreate_database
- Create a new database with custom propertiesquery_database
- Search and filter database entriesupdate_database
- Modify database properties and schema
Page Operations
create_page
- Create new pages in databases or as subpages- Support for title, properties, and markdown content
update_page
- Update existing page propertiesget_page
- Retrieve page content and metadatadelete_page
- Remove pages from databases or parent pages
Block Operations
append_blocks
- Add new blocks to a pagedelete_blocks
- Remove blocks from a pageget_blocks
- Retrieve block contentupdate_blocks
- Modify existing block content
Prompts
summarize_notes
- Generate concise summaries of notesanalyze_content
- Provide insights and analysis of page contentsuggest_tags
- Recommend relevant tags based on content
Setup
Prerequisites
- Node.js 18 or higher
- Notion API Key and Integration setup
- Claude Desktop application
Integration with Claude Desktop
Create a Notion Integration:
-
Click "New Integration".
3. Name your integration and select appropriate permissions (e.g., "Read content", "Update content").
-
Retrieve the Secret Key:
-
Copy the "Internal Integration Token" from your integration. This token will be used for authentication.
-
Add the Integration to Your Workspace:
-
Open the page or database you want the integration to access in Notion.
-
Click the navigation button in the top right corner.
-
Click "Connect to" button and select your integration.
Configuration Setup
Add the server configuration to Claude Desktop:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration content:
{
"mcpServers": {
"mcp-notion-server": {
"command": "npx",
"args": [
"-y",
"@gabornyerges/mcp-notion-server"
],
"env": {
"NOTION_API_KEY": "your-notion-api-key"
}
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
- MCP Inspector
npm run inspector
MIT License - see LICENSE for details
Publisher info
More MCP servers built with JavaScript
MCP Server Semgrep is a [Model Context Protocol](https://modelcontextprotocol.io) compliant server that integrates the powerful Semgrep static analysis tool with AI assistants like Anthropic Claude. It enables advanced code analysis, security vulnerability detection, and code quality improvements directly through a conversational interface.
This MCP server provides email sending functionality using Protonmail's SMTP service. It allows both Claude Desktop and Cline VSCode extension to send emails on your behalf using your Protonmail credentials.
Model Context Protocol server that integrates AgentQL's data extraction capabilities.