MCP-Notion

MCP-Notion

1

MCP Notion is a Model Context Protocol Server designed for integration with the Notion API. It enables interaction with Notion databases and pages through various HTTP endpoints and offers features such as search, retrieval, and querying with robust error handling and logging.

MCP Notion

MCP (Model Context Protocol) Server for integration with Notion API. Provides HTTP endpoints to interact with Notion databases and pages.

Features

  • Search in Notion
  • Retrieve pages and content
  • Query databases
  • CORS support
  • Robust error handling
  • Integrated logging

Prerequisites

  • Rust (latest stable)
  • Notion API Token
  • Database or pages in Notion to interact with

Installation

  1. Clone the repository
  2. Set environment variables
  3. Build and run

Server runs on http://localhost:3004 by default.

API Endpoints

  • Search
  • Get Page
  • Get Page Content
  • Query Database

Configuration

Environment variables:

  • NOTION_API_KEY: Notion API Token (required)
  • MCP_PORT: Server port (default: 3004)
  • RUST_LOG: Logging level (default: info)