Skip to main content
Glama

NotionMCP Server

by tleeds1

NotionMCP Server

A Python server that integrates MCP with Notion to automate documentation workflows and manage Notion via LLMs.

Features

  • Exposes MCP tools for creating, updating, and searching Notion pages
  • Converts plain text and markdown-like content into Notion blocks
  • Supports appending and replacing content in Notion pages
  • Provides debug information for troubleshooting

Requirements

  • Python 3.10+
  • Notion integration token and parent page ID
  • MCP server and CLI
  • See requirements.txt for Python dependencies

Setup

  1. Clone the repository and navigate to the project directory.
  2. Install dependencies:
    pip install -r requirements.txt
  3. Configure environment variables:
    • Find the related API key and parent page ID from your Notion
    • API key is the integration key
    • Parent page ID is the target page we use to interact with LLMs prompt
    • Set NOTION_API_KEY and NOTION_PARENT_ID in .env file
  4. Run the server:
    python notionMCP_server.py
  5. Edit LLMs config file to recognize MCP server:
    • In this project, I used Claude desktop, here is how to edit the config
    • Find claude_desktop_config.json and edit as follows:
    { "mcpServers": { "NotionMCP": { "command": "path_to_the_exe_python_file_running_your_server", "args": ["path_to_python_server_file(notionMCP_server.py)"], "env": {} } } }
    • Use which python to find the executable python file running your server

License

MIT License

-
security - not tested
F
license - not found
-
quality - not tested

A Python server that integrates MCP with Notion to automate documentation workflows and manage Notion pages via LLMs, supporting operations like creating, updating, and searching Notion content.

  1. Features
    1. Requirements
      1. Setup
        1. License

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            MCP Server for the Notion API, enabling Claude to interact with Notion workspaces.
            Last updated -
            18
            1,797
            799
            TypeScript
            MIT License
          • A
            security
            F
            license
            A
            quality
            A high-performance MCP server that integrates Notion into AI workflows, enabling interaction with Notion pages, databases, and comments through a standardized protocol.
            Last updated -
            8
            429
            22
            TypeScript
          • A
            security
            A
            license
            A
            quality
            Notion MCP Server is a MCP server implementation that enables AI assistants to interact with Notion's API.
            Last updated -
            13
            643
            129
            TypeScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            An MCP server that enables AI assistants to interact with the Notion API, allowing them to search, read, comment on, and create content in Notion workspaces through natural language commands.
            Last updated -
            19
            13,919
            2,791
            TypeScript
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/tleeds1/NotionMCP'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server