P
pbohannon/notion-api-mcp
Expose Notion to a model from Python
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Notion API MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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
Full feature list →
## Quick Start
bash
# 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
1. Go to https://www.notion.so/my-integrations
2. Click "New integration"
3. Name your integration (e.g., "My MCP Integration")
4. Select the workspace where you'll use the integration
5. 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
1. Open Notion in your browser
2. Create a new page or open an existing one where you want to create databases
3. Click the ••• menu in the top right
4. Select "Add connections" and choose your integration
5. 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 is 123456abcdef...
This will be your NOTION_PARENT_PAGE_ID
#### Option B: Existing Database
1. Open your existing Notion database
2. Make sure it's connected to your integration (••• menu > Add connections)
3. Copy the database ID from the URL
Example: In https://notion.so/myworkspace/123456abcdef...?v=..., the ID is 123456abcdef...
This will be your NOTION_DATABASE_ID
### 3. Install the MCP Server
1. Create virtual environment:
bash
cd notion-api-mcp
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
2. Install dependencies:
bash
uv pip install -e .
3. Configure environment:
bash
cp .env.integration.template .env
4. Edit .env with your Notion credentials:
env
NOTION_API_KEY=ntn_your_integration_token_here
# Choose one or both of these depending on your needs:
NOTION_PARENT_PAGE_ID=your_page_id_here # For creating new databases
NOTION_DATABASE_ID=your_database_id_here # For working with existing databases
## 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
Full feature list →
## Quick Start
bash
# 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
1. Go to https://www.notion.so/my-integrations
2. Click "New integration"
3. Name your integration (e.g., "My MCP Integration")
4. Select the workspace where you'll use the integration
5. 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
1. Open Notion in your browser
2. Create a new page or open an existing one where you want to create databases
3. Click the ••• menu in the top right
4. Select "Add connections" and choose your integration
5. 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 is 123456abcdef...
This will be your NOTION_PARENT_PAGE_ID
#### Option B: Existing Database
1. Open your existing Notion database
2. Make sure it's connected to your integration (••• menu > Add connections)
3. Copy the database ID from the URL
Example: In https://notion.so/myworkspace/123456abcdef...?v=..., the ID is 123456abcdef...
This will be your NOTION_DATABASE_ID
### 3. Install the MCP Server
1. Create virtual environment:
bash
cd notion-api-mcp
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
2. Install dependencies:
bash
uv pip install -e .
3. Configure environment:
bash
cp .env.integration.template .env
4. Edit .env with your Notion credentials:
env
NOTION_API_KEY=ntn_your_integration_token_here
# Choose one or both of these depending on your needs:
NOTION_PARENT_PAGE_ID=your_page_id_here # For creating new databases
NOTION_DATABASE_ID=your_database_id_here # For working with existing databases
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/pbohannon-notion-api-mcp/)
- 来源
- awesome · https://github.com/pbohannon/notion-api-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。