mcp-server-notion
A Model Context Protocol server wrapping the official Notion SDK
Documentation
Notion MCP Server
A Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.
Quick Start
1. Set up your Notion integration
1. Go to https://www.notion.so/my-integrations
2. Create a new integration
3. Copy the API key
2. Connect your Notion pages to the integration
For your integration to access Notion content, you need to explicitly share your pages or databases with it:
1. Navigate to the Notion page or database you want to access through the integration
2. Click the "Share" button in the top-right corner
3. In the "Add people, groups, or integrations" field, select your integration from the dropdown list
4. Click "Invite"
5. Repeat for each page or database you want to make accessible
Note: An integration only has access to pages and databases that have been explicitly shared with it. Child pages automatically inherit access from parent pages.
3. Add to your AI assistant
You can add this MCP server to Claude Desktop, Cursor AI, or Claude.ai using either of these configuration formats:
Command Line Format
npx @ramidecodes/mcp-server-notion@latest -y --api-key=your-notion-integration-keyJSON Configuration Format
{
"mcpServers": {
"Notion": {
"command": "npx",
"args": [
"@ramidecodes/mcp-server-notion@latest",
"-y",
"--api-key=your-notion-integration-key"
]
}
}
}Replace `your-notion-integration-key` with the API key from step 1.
Setup Instructions
- Claude Desktop: Settings > Advanced > Model Context Protocol
- Cursor AI: Settings > AI > MCP Servers
- Claude.ai (Web): Profile > Settings > API & Integrations > Model Context Protocol
Available Tools
The server provides tools for interacting with Notion:
- Search: Find pages or databases
- Databases: Query and retrieve database entries
- Pages: Create, retrieve, and update pages
- Blocks: Manage content blocks (paragraphs, lists, etc.)
- Users: List users and get user information
- Comments: Create and list comments
- Link Previews: Create link previews for URLs
Alternative Setup Methods
Using Environment Variables
Instead of passing the API key directly, you can use a `.env` file:
1. Create a `.env` file with:
NOTION_API_KEY=your-notion-integration-key2. Run the server:
npx @ramidecodes/mcp-server-notion@latest -yJSON Configuration with Environment Variables (for Claude Desktop)
You can also use environment variables in the JSON configuration format:
{
"mcpServers": {
"Notion": {
"command": "npx",
"args": [
"@ramidecodes/mcp-server-notion@latest",
"-y",
"--api-key=your-notion-integration-key"
]
}
}
}Command Line Options
OPTIONS:
-h, --help Show help message
-v, --version Show version information
--verbose Enable verbose logging
--env-path Path to .env file
--api-key Notion API key
-y Skip confirmation promptsTroubleshooting
If you encounter "Failed to create client" errors:
- On Windows, try using `cmd /c` before the npx command
- On macOS/Linux, try using the full path to npx
- Test the command in a terminal before adding it to your AI assistant
Common Issues
- "No access to resource" errors: Make sure you've shared the specific Notion page or database with your integration (see step 2)
- Integration not appearing in share menu: Try refreshing the page or restarting your browser
- Limited capabilities: Check that your integration has the appropriate capabilities enabled in the Notion integration settings
Features
- Full Notion API support through the official SDK
- MCP compliant for seamless AI integration
- Comprehensive tools for all Notion operations
- Robust error handling with detailed messages
- Easy configuration with environment variables
For detailed documentation on each tool, see the Tools Documentation.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Frequently asked questions
What is mcp-server-notion?
mcp-server-notion is A Model Context Protocol server wrapping the official Notion SDK
How do I install mcp-server-notion?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-server-notion open source?
Yes — it is hosted on GitHub at https://github.com/ramidecodes/mcp-server-notion and has 8 stars.
Related MCP tools
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP