
pbohannon/notion-api-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
LLMs (Claude)에 Notion 기능을 exposing에 있는 사용을 위한 Python 근거한 MCP
개요
Notion의 API를 통해 고급 todo 목록 관리 및 콘텐츠 조직 기능을 제공하는 모델 Context Protocol (MCP) 서버. MCP는 AI 모델을 사용하여 외부 도구 및 서비스와 상호 작용할 수 있으며 Notion의 강력한 기능으로 원활한 통합을 가능하게 합니다. Python 기반 MCP 서버는 Notion의 API와 상호 작용할 수있는 AI 모델을 가능하게합니다. 제공 : - : 생성, 업데이트 및 리치 텍스트, 날짜, 우선 순위 및 배열 된 하위 태그와 작업 추적 - : 사용자 정의 속성, 필터 및 레이아웃이있는 Notion 데이터베이스 생성 및 관리 - : Markdown 지원, hierarchical 목록 및 블록 작업이있는 구조 및 형식 내용 - : Notion의 작업 공간, 페이지 및 데이터베이스와 직접 상호 작용하는 통합 구현을 통해 1. https://www.notion.so/my-integrations로 이동 2. "새로운 통합"을 클릭하십시오 3. 통합 이름 (예, "My MCP 통합") 4. 통합 5.를 사용할 수있는 작업 공간을 선택하십시오.
개요(AI 번역)
Notion의 API를 통해 고급 todo 목록 관리 및 콘텐츠 조직 기능을 제공하는 모델 Context Protocol (MCP) 서버. MCP는 AI 모델을 사용하여 외부 도구 및 서비스와 상호 작용할 수 있으며 Notion의 강력한 기능으로 원활한 통합을 가능하게 합니다.
MCP 개요
Python 기반 MCP 서버는 Notion의 API와 상호 작용하기 위해 AI 모델을 가능하게합니다.
- **도 관리 **: 작성, 업데이트 및 풍부한 텍스트와 작업을 추적, 날짜, 우선, 및 배열된 subtasks
- **Database 운영 **: 사용자 정의 속성, 필터 및 레이아웃을 가진 Notion 데이터베이스 생성 및 관리
- 콘텐츠 조직: Markdown 지원, 계층 목록 및 블록 작업과 구조 및 형식 내용
- ** 실시간 통합**: Notion의 작업 공간, 페이지 및 데이터베이스와 직접 상호 작용을 통해 깨끗한 동기화 구현
전체 기능 목록 →
빠른 시작
시작하기
##1. Notion 통합 만들기
- https://www.notion.so/my-integrations로 이동
- "새로운 통합"을 클릭하십시오
- 통합 이름 (예, “내 MCP 통합”)
- 통합을 사용할 수 있는 workspace 선택
- 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Notion API MCP
A Model Context Protocol (MCP) server that provides advanced todo list management and content organization capabilities through Notion’s API. MCP enables AI models to interact with external tools and services, allowing seamless integration with Notion’s powerful features.
MCP Overview
Python-based MCP server that enables AI models to interact with Notion’s API, providing:
- Todo Management: Create, update, and track tasks with rich text, due dates, priorities, and nested subtasks
- Database Operations: Create and manage Notion databases with custom properties, filters, and views
- Content Organization: Structure and format content with Markdown support, hierarchical lists, and block operations
- Real-time Integration: Direct interaction with Notion’s workspace, pages, and databases through clean async implementation
Quick Start
# Clone and setup
git clone https://github.com/yourusername/notion-api-mcp.git
cd notion-api-mcp
uv venv && source .venv/bin/activate
# Install and configure
uv pip install -e .
cp .env.integration.template .env
# Add your Notion credentials to .env:
# NOTION_API_KEY=ntn_your_integration_token_here
# NOTION_PARENT_PAGE_ID=your_page_id_here # For new databases
# NOTION_DATABASE_ID=your_database_id_here # For existing databases
# Run the server
python -m notion_api_mcp
Getting Started
1. Create a Notion Integration
- Go to https://www.notion.so/my-integrations
- Click “New integration”
- Name your integration (e.g., “My MCP Integration”)
- Select the workspace where you’ll use the integration
- Copy the “Internal Integration Token” - this will be your
NOTION_API_KEY- Should start with “ntn_”
2. Set Up Notion Access
You’ll need either a parent page (for creating new databases) or an existing database ID:
Option A: Parent Page for New Databases
- Open Notion in your browser
- Create a new page or open an existing one where you want to create databases
- Click the ••• menu in the top right
- Select “Add connections” and choose your integration
- Copy the page ID from the URL - it’s the string after the last slash and before the question mark
- Example: In
https://notion.so/myworkspace/123456abcdef..., the ID is123456abcdef... - This will be your
NOTION_PARENT_PAGE_ID
- Example: In
Option B: Existing Database
- Open your existing Notion database
- Make sure it’s connected to your integration (••• menu > Add connections)
- Copy the database ID from the URL
- Example: In
https://notion.so/myworkspace/123456abcdef...?v=..., the ID is123456abcdef... - This will be your
NOTION_DATABASE_ID
- Example: In
3. Install the MCP Server
- Create virtual environment:
cd notion-api-mcp
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
uv pip install -e .
- Configure environment:
cp .env.integration.template .env
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"notion-api": {
"command": "/path/to/your/.venv/bin/python",
"args": ["-m", "notion_api_mcp"],
"env": {
"NOTION_API_KEY": "ntn_your_integration_token_here",
// Choose one or both:
"NOTION_PARENT_PAGE_ID": "your_page_id_here",
"NOTION_DATABASE_ID": "your_database_id_here"
}
}
}
}