mcp-server-notion

mcp-server-notion

site icon
2025.04.06 0
Python内容管理知识库检索内容生成
mcp-server-notion 是一个利用 Notion API 来搜索和获取 Notion 中文章内容的 MCP 服务器。该服务将 Notion 作为内容源,允许用户通过编程方式轻松访问所需的文章信息。
View on GitHub

Overview

基本能力

产品定位

mcp-server-notion 是一个用于从 Notion 中搜索和获取文章内容的服务,适用于需要自动化访问和管理 Notion 内容的场景。

核心功能

  • 在 Notion 数据库中搜索文章
  • 获取文章的完整内容或部分内容

适用场景

  • 自动化内容管理
  • 知识库检索
  • 内容聚合

工具列表

  • notion_search
  • query: 搜索关键词
  • limit: 最大结果数量
  • notion_get_article
  • article_id: 要获取的文章 ID
  • format: 输出格式 (json, markdown, text)

使用教程

使用依赖

  • Python 3.13 或更高版本
  • Notion API 集成设置和权限
  • Notion 集成令牌

安装教程

  1. 确保已安装 Python 3.13 或更高版本
  2. 设置 Notion API 集成并获取集成令牌
  3. 配置环境变量
NOTION_API_TOKEN=your_notion_integration_token

调试方式

  1. 确保环境变量 NOTION_API_TOKEN 已正确设置
  2. 使用 notion_search 工具进行搜索测试
  3. 使用 notion_get_article 工具获取文章内容测试

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。