官方Notion MCP服务器,通过模型上下文协议提供Notion API工具,支持创建评论、数据库、管理块和页面等19种操作,便于集成Notion功能到AI应用中。
Notion MCP服务器
官方Notion MCP服务器。
https://www.anthropic.com/news/model-context-protocol
MCP信息
| 属性 | 详情 |
|---|---|
| Docker镜像 | https://hub.docker.com/repository/docker/mcp/notion |
| 作者 | https://github.com/makenotion |
| 仓库 | https://github.com/makenotion/notion-mcp-server |
镜像构建信息
| 属性 | 详情 |
|---|---|
| Dockerfile | https://github.com/makenotion/notion-mcp-server/blob/main/Dockerfile |
| Docker镜像构建者 | Docker Inc. |
| Docker Scout健康评分 | |
| 验证签名 | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/notion --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| 许可证 | MIT许可证 |
可用工具(19个)
| 服务器提供的工具 | 简短描述 |
|---|---|
API-create-a-comment | Notion |
API-create-a-database | Notion |
API-delete-a-block | Notion |
API-get-block-children | Notion |
API-get-self | Notion |
API-get-user | Notion |
API-get-users | Notion |
API-patch-block-children | Notion |
API-patch-page | Notion |
API-post-database-query | Notion |
API-post-page | Notion |
API-post-search | Notion |
API-retrieve-a-block | Notion |
API-retrieve-a-comment | Notion |
API-retrieve-a-database | Notion |
API-retrieve-a-page | Notion |
API-retrieve-a-page-property | Notion |
API-update-a-block | Notion |
API-update-a-database | Notion |
工具详情
工具:API-create-a-comment
Notion | 创建评论
| 参数 | 类型 | 描述 |
|---|---|---|
parent | object | 包含评论的页面 |
rich_text | array |
工具:API-create-a-database
Notion | 创建数据库
| 参数 | 类型 | 描述 |
|---|---|---|
parent | object | |
properties | object | 数据库的属性架构。键是属性在Notion中显示的名称,值是属性架构对象。 |
title | array 可选 |
工具:API-delete-a-block
Notion | 删除块
| 参数 | 类型 | 描述 |
|---|---|---|
block_id | string | Notion块的标识符 |
工具:API-get-block-children
Notion | 获取块的子块
| 参数 | 类型 | 描述 |
|---|---|---|
block_id | string | 块的标识符 |
page_size | integer 可选 | 响应中所需的项目数量。最大值:100 |
start_cursor | string 可选 | 如果提供,端点将返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。 |
工具:API-get-self
Notion | 获取令牌对应的机器人用户
工具:API-get-user
Notion | 获取用户
| 参数 | 类型 | 描述 |
|---|---|---|
user_id | string |
工具:API-get-users
Notion | 列出所有用户
| 参数 | 类型 | 描述 |
|---|---|---|
page_size | integer 可选 | 响应中所需的项目数量。最大值:100 |
start_cursor | string 可选 | 如果提供,端点将返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。 |
工具:API-patch-block-children
Notion | 追加块的子块
| 参数 | 类型 | 描述 |
|---|---|---|
block_id | string | 块的标识符。也接受页面ID。 |
children | array | 要追加到容器块的子内容,作为块对象数组 |
after | string 可选 | 新块应追加到的现有块的ID。 |
工具:API-patch-page
Notion | 更新页面属性
| 参数 | 类型 | 描述 |
|---|---|---|
page_id | string | 要更新的Notion页面的标识符。 |
archived | boolean 可选 | |
cover | object 可选 | 页面的封面图片。仅支持外部文件对象。 |
icon | object 可选 | 页面的图标。支持的类型是外部文件对象或表情对象。 |
in_trash | boolean 可选 | 设为true删除块,设为false恢复块。 |
properties | object 可选 | 要更新的页面属性值。键是属性的名称或ID,值是属性值。如果不包含页面属性ID,则不更改该属性。 |
工具:API-post-database-query
Notion | 查询数据库
| 参数 | 类型 | 描述 |
|---|---|---|
database_id | string | Notion数据库的标识符。 |
archived | boolean 可选 | |
filter | object 可选 | 提供时,根据筛选条件限制返回的页面。 |
filter_properties | array 可选 | 与数据库关联的页面属性值ID列表。使用此参数将响应限制为满足filter条件的页面的特定页面属性值。 |
in_trash | boolean 可选 | |
page_size | integer 可选 | 响应中所需的项目数量。最大值:100 |
sorts | array 可选 | 提供时,根据提供的排序条件对结果排序。 |
start_cursor | string 可选 | 如果提供,返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。 |
工具:API-post-page
Notion | 创建页面
| 参数 | 类型 | 描述 |
|---|---|---|
parent | object | |
properties | object | |
children | array 可选 | 要在新页面上呈现的内容,表示为块对象数组。 |
cover | string 可选 | 新页面的封面图片,表示为文件对象。 |
icon | string 可选 | 新页面的图标。可以是表情对象或外部文件对象。 |
工具:API-post-search
Notion | 按标题搜索
| 参数 | 类型 | 描述 |
|---|---|---|
filter | object 可选 | 一组条件,包含value和property键,将结果限制为仅页面或仅数据库。可能的value值为"page"或"database"。唯一支持的property值为"object"。 |
page_size | integer 可选 | 响应中包含的项目数量。最大值:100。 |
query | string 可选 | API用于与页面和数据库标题比较的文本。 |
sort | object 可选 | 一组条件,包含direction和timestamp键,用于对结果排序。唯一支持的timestamp值为"last_edited_time"。支持的direction值为"ascending"和"descending"。如果未提供sort,则最近编辑的结果首先返回。 |
start_cursor | string 可选 | 在之前响应中返回的cursor值。如果提供,将响应限制为从cursor之后开始的结果。如果未提供,则返回第一页结果。有关详细信息,请参阅分页。 |
工具:API-retrieve-a-block
Notion | 获取块
| 参数 | 类型 | 描述 |
|---|---|---|
block_id | string | Notion块的标识符 |
工具:API-retrieve-a-comment
Notion | 获取评论
| 参数 | 类型 | 描述 |
|---|---|---|
block_id | string | Notion块或页面的标识符 |
page_size | integer 可选 | 响应中所需的项目数量。最大值:100 |
start_cursor | string 可选 | 如果提供,端点将返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。 |
工具:API-retrieve-a-database
Notion | 获取数据库
| 参数 | 类型 | 描述 |
|---|---|---|
database_id | string | Notion数据库的标识符。 |
工具:API-retrieve-a-page
Notion | 获取页面
| 参数 | 类型 | 描述 |
|---|---|---|
page_id | string | Notion页面的标识符 |
filter_properties | string 可选 | 与页面关联的页面属性值ID列表。使用此参数将响应限制为特定的页面属性值。要检索多个属性,请指定每个页面属性ID。例如:?filter_properties=iAk8&filter_properties=b7dh。 |
工具:API-retrieve-a-page-property
Notion | 获取页面属性项
| 参数 | 类型 | 描述 |
|---|---|---|
page_id | string | Notion页面的标识符 |
property_id | string | 页面属性的标识符 |
page_size | integer 可选 | 对于分页属性。一页上的属性项对象的最大数量。默认大小为100 |
start_cursor | string 可选 | 对于分页属性。 |
工具:API-update-a-block
Notion | 更新块
| 参数 | 类型 | 描述 |
|---|---|---|
block_id | string | Notion块的标识符 |
archived | boolean 可选 | 设为true归档(删除)块,设为false取消归档(恢复)块。 |
type | object 可选 | 块对象type值及要更新的属性。目前仅支持更新(支持的块类型的)text字段和(to_do块的)checked字段。 |
工具:API-update-a-database
Notion | 更新数据库
| 参数 | 类型 | 描述 |
|---|---|---|
database_id | string | Notion数据库的标识符 |
description | array 可选 | 表示数据库描述的富文本对象数组,显示在Notion UI中。如果省略,数据库描述保持不变。 |
properties | object 可选 | 数据库的属性架构。键是属性在Notion中显示的名称,值是属性架构对象。 |
title | array 可选 | 表示数据库标题的富文本对象数组,显示在Notion UI中。如果省略,数据库标题保持不变。 |
使用此MCP服务器
json{ "mcpServers": { "notion": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "INTERNAL_INTEGRATION_TOKEN", "mcp/notion" ], "env": { "INTERNAL_INTEGRATION_TOKEN": "ntn_*" } } } }
https://www.docker.com/blog/the-model-context-protocol-simplifying-building-ai-apps-with-anthropic-claude-desktop-and-docker/
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务