Skip to main content

MCP server for Notion integration

Project description

Notion MCP Server

A Model Context Protocol (MCP) server for Notion integration. This server provides tools for interacting with Notion, including querying pages, databases, and blocks.

Features

  • Page Management: Get, create, and update Notion pages
  • Database Operations: Query, filter, and sort Notion databases
  • Block Operations: Get and append blocks to pages
  • Search: Query for Notion content
  • Resources: Access metadata about Notion objects
  • Prompts: Templates for common Notion workflows

Installation

pip install mcp-notion

Configuration

Set the following environment variables:

export NOTION_API_KEY="your_notion_integration_token"
export NOTION_VERSION="2022-06-28"  # Optional, will use default if not specified

You can get your Notion API key by creating an integration at https://www.notion.so/my-integrations

Usage

Starting the server directly

mcp-notion

Using with uvx

uvx mcp-notion

Using with Claude Desktop

Add the following to your claude_desktop_config.json file:

"mcp-notion": {
  "command": "uvx",
  "args": [
    "mcp-notion"
  ],
  "env": {
    "NOTION_API_KEY": "your_notion_integration_token",
    "NOTION_VERSION": "2022-06-28"
  }
}

Replace the environment variables with your actual Notion credentials.

Available Tools

  • search_notion: Search Notion content with optional filters
  • get_page: Get details of a specific Notion page
  • get_block_children: Get children blocks of a block or page
  • get_database: Get details of a specific Notion database
  • query_database: Query a Notion database with optional filters and sorting
  • create_page: Create a new page in a database or as a child of another page
  • update_page: Update properties of an existing Notion page
  • append_blocks: Append new blocks to an existing block or page

Available Resources

  • notion://search: Search all Notion content
  • notion://databases: List of all Notion databases the user has access to
  • notion://users: List of all users in the workspace

Available Prompts

  • create_database_entry: Template for creating a new entry in a database
  • search_and_summarize: Template for searching and summarizing Notion content
  • database_query_builder: Template for building Notion database queries

Notes on Authentication

  1. You need to create a Notion integration at https://www.notion.so/my-integrations
  2. You must share specific pages/databases with your integration
  3. Make sure your integration has the appropriate capabilities (Read, Update, etc.)

Version

0.0.1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_notion-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_notion-0.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_notion-0.0.2.tar.gz.

File metadata

  • Download URL: mcp_notion-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for mcp_notion-0.0.2.tar.gz
Algorithm Hash digest
SHA256 76518bdb72dcb7f63c8bb2fefb655b9be7de9885c1041e0b35f52094d7d3957a
MD5 9d537c90c71ca67f2891a4897f5f3540
BLAKE2b-256 15f21cbbd00b7b9180291ef2465cbc8d3dba9f459df97a3c657c011968021f56

See more details on using hashes here.

File details

Details for the file mcp_notion-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mcp_notion-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for mcp_notion-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a6e220a34c5b7384b9c77790c3cf752e77d0ada4e409b44ea3d607028425d21
MD5 1b3b85ae2e717815e346929922b62652
BLAKE2b-256 89e418f30ec93df920e754e6c3004284509b7615ccb9e33f8755c6f97b2b795b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page