SystemPrompt MCP Notion Server

SystemPrompt MCP Notion Server

一个高性能的 MCP 服务器,将 Notion 集成到 AI 工作流程中,从而可以通过标准化协议与 Notion 页面、数据库和评论进行交互。

远程shell执行
数据库交互
AI集成系统
访问服务器

Tools

systemprompt_list_notion_pages

Lists all accessible Notion pages in your workspace, sorted by last edited time. Returns key metadata including title, URL, and last edited timestamp.

systemprompt_list_notion_databases

Lists all accessible Notion databases in your workspace, sorted by last edited time. Returns key metadata including database title, schema, and last edited timestamp.

systemprompt_search_notion_pages

Performs a full-text search across all accessible Notion pages using the provided query. Searches through titles, content, and metadata to find relevant matches.

systemprompt_search_notion_pages_by_title

Searches specifically for Notion pages with titles matching the provided query. Useful for finding exact or similar title matches when you know the page name.

systemprompt_get_notion_page

Retrieves comprehensive details of a specific Notion page, including its content, properties, and metadata. Returns the complete page structure and all nested content blocks.

systemprompt_create_notion_page

Creates a rich, comprehensive Notion page that expands upon basic user inputs. Takes simple instructions and content, then generates a detailed, well-structured page with appropriate sections, formatting, and supplementary content.

systemprompt_update_notion_page

Updates an existing Notion page with rich, comprehensive content based on user instructions. Takes simple inputs and transforms them into well-structured, detailed page content while preserving existing information. Can enhance, reorganize, or expand the current content while maintaining page integrity.

systemprompt_delete_notion_page

Permanently deletes a specified Notion page and all its contents. This action cannot be undone, so use with caution.

README

systemprompt-mcp-notion

npm version Coverage Status Twitter Follow Discord smithery badge

网站 | 文档

SystemPrompt MCP Notion 服务器

一个高性能的模型上下文协议 (MCP) 服务器,可将 Notion 无缝集成到您的 AI 工作流程中。该服务器使 AI 代理能够通过标准化协议与 Notion 页面和数据库进行交互。此服务器支持并需要 MCP 采样,这是 MCP 创建和更新 Notion 页面所必需的。

一个兼容的 MCP 客户端可在此处获得:here

<a href="https://glama.ai/mcp/servers/xe6grtrr0k"><img width="380" height="200" src="https://glama.ai/mcp/servers/xe6grtrr0k/badge" alt="SystemPrompt Notion Server MCP server" /></a>

服务器功能

const serverCapabilities: { capabilities: ServerCapabilities } = {
  capabilities: {
    resources: {
      listChanged: true,
    },
    tools: {},
    prompts: {
      listChanged: true,
    },
    sampling: {},
  },
};

主要特性

  • 📝 全面的内容管理

    • 创建和更新具有富文本格式的页面
    • 在您的 Notion 工作区中搜索
  • 🛠 开发者友好

    • 使用 Jest 进行广泛的测试覆盖
    • TypeScript 支持
    • 完善的错误处理
    • 详细的日志记录和调试工具

前提条件

在使用此服务器之前,您需要:

  1. Systemprompt API 密钥 (免费)

  2. Notion 帐户和工作区

    • 活跃的 Notion 帐户
    • 具有您想要访问的内容的工作区
  3. Notion 集成

  4. MCP 兼容客户端

快速开始

  1. 安装

    通过 Smithery 安装

    要通过 Smithery 为 Claude Desktop 自动安装 systemprompt-mcp-notion:

    npx -y @smithery/cli install systemprompt-mcp-notion --client claude
    
    npm install systemprompt-mcp-notion
    
  2. 配置 创建一个 .env 文件:

    SYSTEMPROMPT_API_KEY=your_systemprompt_api_key
    NOTION_API_KEY=your_notion_integration_token
    
  3. MCP 配置 将以下内容添加到您的 MCP 配置 JSON 中:

    {
      "mcpServers": {
        "notion": {
          "command": "npx",
          "args": ["systemprompt-mcp-notion"],
          "env": {
            "SYSTEMPROMPT_API_KEY": "your_systemprompt_api_key",
            "NOTION_API_KEY": "your_notion_integration_token"
          }
        }
      }
    }
    

    或者,如果您已在本地安装了该软件包:

    {
      "mcpServers": {
        "notion": {
          "command": "node",
          "args": ["./node_modules/systemprompt-mcp-notion/build/index.js"],
          "env": {
            "SYSTEMPROMPT_API_KEY": "your_systemprompt_api_key",
            "NOTION_API_KEY": "your_notion_integration_token"
          }
        }
      }
    }
    

开发

设置

  1. 克隆存储库:

    git clone https://github.com/systemprompt-io/systemprompt-mcp-notion.git
    cd systemprompt-mcp-notion
    
  2. 安装依赖项:

    npm install
    
  3. 设置环境:

    cp .env.example .env
    # 使用您的 API 密钥编辑 .env
    

测试

我们使用 Jest 保持高测试覆盖率:

# 运行所有测试
npm test

# 开发的监视模式
npm run test:watch

# 生成覆盖率报告
npm run test:coverage

# 测试 Notion API 连接
npm run test:notion

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
AIO-MCP Server

AIO-MCP Server

🚀 集成了 AI 搜索、RAG 和多服务(GitLab/Jira/Confluence/YouTube)的一体化 MCP 服务器,旨在增强 AI 驱动的开发工作流程。来自 Folk。

精选
本地
Knowledge Graph Memory Server

Knowledge Graph Memory Server

为 Claude 实现持久性记忆,使用本地知识图谱,允许 AI 记住用户的信息,并可在自定义位置存储,跨对话保持记忆。

精选
本地
Hyperbrowser

Hyperbrowser

欢迎来到 Hyperbrowser,人工智能的互联网。Hyperbrowser 是下一代平台,旨在增强人工智能代理的能力,并实现轻松、可扩展的浏览器自动化。它专为人工智能开发者打造,消除了本地基础设施和性能瓶颈带来的麻烦,让您能够:

精选
本地
https://github.com/Streen9/react-mcp

https://github.com/Streen9/react-mcp

react-mcp 与 Claude Desktop 集成,能够根据用户提示创建和修改 React 应用程序。

精选
本地
MCP Atlassian

MCP Atlassian

适用于 Atlassian Cloud 产品(Confluence 和 Jira)的 Model Context Protocol (MCP) 服务器。此集成专为 Atlassian Cloud 实例设计,不支持 Atlassian Server 或 Data Center 部署。

精选