Prerequisites
- Python 3.10 or higher
- A Notion account with an API integration set up
- Notion database with tasks (required properties: "Task", "Checkbox", "Deadline")
- Cursor IDE
Installation
-
Create a virtual environment and install dependencies:
uv venv source .venv/bin/activate # On Windows: .venv\\Scripts\\activate uv pip install -e . -
Set up
.envfile in the project root:NOTION_API_KEY=your_notion_api_key NOTION_DATABASE_ID=your_database_id NOTION_BASE_URL=https://api.notion.com/v1 NOTION_VERSION=2022-06-28
Setting Up Notion Integration
- Go to Notion Integrations
- Create a new integration and note the API key
- Share your database with the integration
- Get your database ID from the URL (it's the part after the workspace name and before the question mark)
Adding to Cursor Settings
- Open Cursor IDE
- Open Settings (⌘+shift+p), navigate to "MCP" tab
- Click "Add new global MCP server"
- Configure the Notion MCP with the following settings:
{
"mcpServers": {
"myNotionMcp":{
"command": "{path-to-venv-python}",
"args": ["-m", "notion_mcp"]
}
}
}
- Save the settings
Usage
Once configured, you can use the Notion MCP in Cursor by asking the AI assistant questions like:
- "What tasks should I complete this week?"
- "Show me my todos for today"
- "What are all my pending tasks?"
Troubleshooting
- Ensure your
.envfile is properly configured with the correct Notion API key and database ID - Check that your Notion database has the required properties: "Task", "Checkbox", and "Deadline"
- Make sure your Notion integration has been granted access to your database
- If you encounter any issues, try restarting Cursor
License
MIT
Recommend MCP Servers 💡
@ragieai/mcp-server
Ragie Model Context Protocol Server
me_mcp_server
An MCP server designed to learn about and interact with a user's personal profile, providing features like job search instructions and access to personal resources (resume, LinkedIn, GitHub, website).
flyworks-mcp
A Model Context Protocol (MCP) server that provides a convenient interface for interacting with the Flyworks API, facilitating fast and free zeroshot lipsync video creation for digital avatars.
@effytech/freshdesk_mcp
An MCP server implementation that integrates with Freshdesk, enabling AI models to interact with Freshdesk modules and perform various support operations.
mcp-server-cortex
MCP Server for Cortex allows MCP clients to leverage Cortex analyzers for threat intelligence tasks.
Shortcut
Shortcut is a project management platform that provides an MCP server to connect with AI tools like Cursor and Claude Code, enabling AI teammates to assist with tasks, PRs, and progress tracking.