Notion MCP Server
A Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.
ramidecodes
Tools
search
query-database
get-database
create-page
get-page
update-page
append-blocks
get-block
get-block-children
update-block
delete-block
list-users
get-user
get-me
create-comment
list-comments
create-link-preview
README
Notion MCP Server
A Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.
<a href="https://glama.ai/mcp/servers/bjc5iac7gt"> <img width="380" height="200" src="https://glama.ai/mcp/servers/bjc5iac7gt/badge" alt="Notion Server MCP server" /> </a>
Quick Start
1. Set up your Notion integration
- Go to https://www.notion.so/my-integrations
- Create a new integration
- 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:
- Navigate to the Notion page or database you want to access through the integration
- Click the "Share" button in the top-right corner
- In the "Add people, groups, or integrations" field, select your integration from the dropdown list
- Click "Invite"
- 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-key
JSON 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:
- Create a
.env
file with:
NOTION_API_KEY=your-notion-integration-key
- Run the server:
npx @ramidecodes/mcp-server-notion@latest -y
JSON 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> Path to .env file
--api-key <key> Notion API key
-y Skip confirmation prompts
Troubleshooting
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.
Recommended Servers
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Apple MCP Server
Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
MCP DuckDB Knowledge Graph Memory Server
A memory server for Claude that stores and retrieves knowledge graph data in DuckDB, enhancing performance and query capabilities for conversations with persistent user information.
Todoist MCP
An MCP server that enables LLMs to interact with Todoist tasks, projects, and other features through the Todoist API.

Notion API MCP Server
Enables advanced todo list management and content organization using Notion's API, supporting features like creating databases, dynamic filtering, and collaborative task tracking.

Airtable MCP Server
A Model Context Protocol server that provides tools for programmatically managing Airtable bases, tables, fields, and records through Claude Desktop or other MCP clients.
Todoist MCP Server
Integrates Claude with Todoist for natural language task management, supporting project and section organization, task creation, updating, completion, and deletion using everyday language.
Todoist MCP Server
An MCP server that integrates Claude with Todoist, enabling natural language task management including creating, updating, completing, and deleting tasks.
Curri MCP Server
Enables interaction with Curri's API by managing text notes, offering tools for note creation, and generating summaries using structured prompts.
Inkdrop MCP Server
Integrates Inkdrop note-taking app with Claude AI through Model Context Protocol, allowing Claude to search, read, create, and update notes in your Inkdrop database.