notion

mcp/notion Docker Image

官方Notion MCP服务器,通过模型上下文协议提供Notion API工具,支持创建评论、数据库、管理块和页面等19种操作,便于集成Notion功能到AI应用中。

38 次收藏下载次数: 0状态:社区镜像维护者:mcp(Model Context Protocol)仓库类型:镜像最近更新:

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

镜像构建信息

属性详情
Dockerfilehttps://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-commentNotion
API-create-a-databaseNotion
API-delete-a-blockNotion
API-get-block-childrenNotion
API-get-selfNotion
API-get-userNotion
API-get-usersNotion
API-patch-block-childrenNotion
API-patch-pageNotion
API-post-database-queryNotion
API-post-pageNotion
API-post-searchNotion
API-retrieve-a-blockNotion
API-retrieve-a-commentNotion
API-retrieve-a-databaseNotion
API-retrieve-a-pageNotion
API-retrieve-a-page-propertyNotion
API-update-a-blockNotion
API-update-a-databaseNotion

工具详情

工具:API-create-a-comment

Notion | 创建评论

参数类型描述
parentobject包含评论的页面
rich_textarray

工具:API-create-a-database

Notion | 创建数据库

参数类型描述
parentobject
propertiesobject数据库的属性架构。键是属性在Notion中显示的名称,值是属性架构对象。
titlearray 可选

工具:API-delete-a-block

Notion | 删除块

参数类型描述
block_idstringNotion块的标识符

工具:API-get-block-children

Notion | 获取块的子块

参数类型描述
block_idstring块的标识符
page_sizeinteger 可选响应中所需的项目数量。最大值:100
start_cursorstring 可选如果提供,端点将返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。

工具:API-get-self

Notion | 获取令牌对应的机器人用户


工具:API-get-user

Notion | 获取用户

参数类型描述
user_idstring

工具:API-get-users

Notion | 列出所有用户

参数类型描述
page_sizeinteger 可选响应中所需的项目数量。最大值:100
start_cursorstring 可选如果提供,端点将返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。

工具:API-patch-block-children

Notion | 追加块的子块

参数类型描述
block_idstring块的标识符。也接受页面ID。
childrenarray要追加到容器块的子内容,作为块对象数组
afterstring 可选新块应追加到的现有块的ID。

工具:API-patch-page

Notion | 更新页面属性

参数类型描述
page_idstring要更新的Notion页面的标识符。
archivedboolean 可选
coverobject 可选页面的封面图片。仅支持外部文件对象。
iconobject 可选页面的图标。支持的类型是外部文件对象或表情对象。
in_trashboolean 可选设为true删除块,设为false恢复块。
propertiesobject 可选要更新的页面属性值。键是属性的名称或ID,值是属性值。如果不包含页面属性ID,则不更改该属性。

工具:API-post-database-query

Notion | 查询数据库

参数类型描述
database_idstringNotion数据库的标识符。
archivedboolean 可选
filterobject 可选提供时,根据筛选条件限制返回的页面。
filter_propertiesarray 可选与数据库关联的页面属性值ID列表。使用此参数将响应限制为满足filter条件的页面的特定页面属性值。
in_trashboolean 可选
page_sizeinteger 可选响应中所需的项目数量。最大值:100
sortsarray 可选提供时,根据提供的排序条件对结果排序。
start_cursorstring 可选如果提供,返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。

工具:API-post-page

Notion | 创建页面

参数类型描述
parentobject
propertiesobject
childrenarray 可选要在新页面上呈现的内容,表示为块对象数组。
coverstring 可选新页面的封面图片,表示为文件对象。
iconstring 可选新页面的图标。可以是表情对象或外部文件对象。

工具:API-post-search

Notion | 按标题搜索

参数类型描述
filterobject 可选一组条件,包含value和property键,将结果限制为仅页面或仅数据库。可能的value值为"page"或"database"。唯一支持的property值为"object"。
page_sizeinteger 可选响应中包含的项目数量。最大值:100。
querystring 可选API用于与页面和数据库标题比较的文本。
sortobject 可选一组条件,包含direction和timestamp键,用于对结果排序。唯一支持的timestamp值为"last_edited_time"。支持的direction值为"ascending"和"descending"。如果未提供sort,则最近编辑的结果首先返回。
start_cursorstring 可选在之前响应中返回的cursor值。如果提供,将响应限制为从cursor之后开始的结果。如果未提供,则返回第一页结果。有关详细信息,请参阅分页。

工具:API-retrieve-a-block

Notion | 获取块

参数类型描述
block_idstringNotion块的标识符

工具:API-retrieve-a-comment

Notion | 获取评论

参数类型描述
block_idstringNotion块或页面的标识符
page_sizeinteger 可选响应中所需的项目数量。最大值:100
start_cursorstring 可选如果提供,端点将返回从提供的游标之后开始的一页结果。如果未提供,将返回第一页结果。

工具:API-retrieve-a-database

Notion | 获取数据库

参数类型描述
database_idstringNotion数据库的标识符。

工具:API-retrieve-a-page

Notion | 获取页面

参数类型描述
page_idstringNotion页面的标识符
filter_propertiesstring 可选与页面关联的页面属性值ID列表。使用此参数将响应限制为特定的页面属性值。要检索多个属性,请指定每个页面属性ID。例如:?filter_properties=iAk8&filter_properties=b7dh。

工具:API-retrieve-a-page-property

Notion | 获取页面属性项

参数类型描述
page_idstringNotion页面的标识符
property_idstring页面属性的标识符
page_sizeinteger 可选对于分页属性。一页上的属性项对象的最大数量。默认大小为100
start_cursorstring 可选对于分页属性。

工具:API-update-a-block

Notion | 更新块

参数类型描述
block_idstringNotion块的标识符
archivedboolean 可选设为true归档(删除)块,设为false取消归档(恢复)块。
typeobject 可选块对象type值及要更新的属性。目前仅支持更新(支持的块类型的)text字段和(to_do块的)checked字段。

工具:API-update-a-database

Notion | 更新数据库

参数类型描述
database_idstringNotion数据库的标识符
descriptionarray 可选表示数据库描述的富文本对象数组,显示在Notion UI中。如果省略,数据库描述保持不变。
propertiesobject 可选数据库的属性架构。键是属性在Notion中显示的名称,值是属性架构对象。
titlearray 可选表示数据库标题的富文本对象数组,显示在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/

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 notion 镜像标签

docker pull docker.xuanyuan.run/mcp/notion:<标签>

DockerHub 原生拉取命令

docker pull mcp/notion:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告