Notion MCP server

Integrates with Notion's API to manage personal todo lists, enabling task creation, retrieval, and automation within specified Notion pages.
Back to servers
Provider
Badhan Sen
Release date
Feb 02, 2025
Language
Python
Stats
17 stars

This MCP server integrates with Notion's API to manage your personal todo list. It allows you to view, add, and update tasks in your Notion workspace directly through Claude Desktop with Model Context Protocol (MCP).

Prerequisites

  • Python 3.11 or higher
  • A Notion account with API access
  • A Notion integration token
  • A Notion page where you want to manage your todo list
  • Claude Desktop client

Installation Options

Installing via Smithery

To install Notion MCP for Claude Desktop automatically:

npx -y @smithery/cli install @Badhansen/notion-mcp --client claude

Manual Installation

  • Clone the repository:
git clone https://github.com/Badhansen/notion-mcp.git
cd notion-mcp
  • Set up Python environment:
uv venv
source .venv/bin/activate
uv pip install -e .

Setting Up Notion Integration

  1. Create a Notion integration:

  2. Share your database/page with the integration:

    • Open your notion workspace with a database/table present or a page
    • Click "..." menu → "Add connections"
    • Select your integration (Search by name)

Configuration

  1. Create .env file:
cp .env.example .env
  1. Configure Notion credentials in .env:
NOTION_TOKEN=<your-notion-api-token>
PAGE_ID=<your-notion-page-id>
NOTION_VERSION="2022-06-28"
NOTION_BASE_URL="https://api.notion.com/v1"
  1. Configure Claude Desktop:
    • Go to Claude Desktop → Settings → Developer → Edit Config
    • Add the Notion server configuration:
{
    "mcpServers": {
        "notion-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/Users/username/Projects/Python/notion-mcp/src", /* Path to your project */
                "run",
                "server.py"
            ]
        }
    }
}

Using the MCP Server

Viewing Tasks

To show all tasks from your Notion workspace:

{
    "name": "show_all_todos",
    "arguments": {}
}

Adding a Task

To add a new task to your Notion workspace:

{
    "name": "add_todo",
    "arguments": {
        "task": "Your task description"
    }
}

Updating a Task

To mark a task as complete in your Notion workspace:

{
    "name": "complete_todo",
    "arguments": {
        "task_id": "your-task-id"
    }
}

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later