SystemPrompt MCP Notion Server

by Ejb503
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows AI agents to interact with Notion pages and databases, enabling creation and updating of pages with rich text formatting and searching across the Notion workspace

系统提示-MCP-概念

网站|文档

SystemPrompt MCP Notion 服务器

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

兼容的 MCP 客户端可在此处获得。

服务器功能

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

主要特点

  • 📝 全面的内容管理
    • 创建和更新具有富文本格式的页面
    • 在您的 Notion 工作区中搜索
  • 🛠 对开发者友好
    • 使用 Jest 进行广泛的测试覆盖
    • TypeScript 支持
    • 全面的错误处理
    • 详细的日志记录和调试工具

先决条件

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

  1. Systemprompt API 密钥(免费)
  2. Notion 帐户和工作区
    • 活跃的 Notion 账户
    • 包含您想要访问的内容的工作区
  3. 概念整合
  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
  1. 配置创建一个.env文件:
    SYSTEMPROMPT_API_KEY=your_systemprompt_api_key NOTION_API_KEY=your_notion_integration_token
  2. 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 # Edit .env with your API keys

测试

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

# Run all tests npm test # Watch mode for development npm run test:watch # Generate coverage report npm run test:coverage # Test Notion API connection npm run test:notion

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

高性能 MCP 服务器,将 Notion 集成到 AI 工作流中,通过标准化协议实现与 Notion 页面、数据库和评论的交互。

  1. SystemPrompt MCP Notion Server
    1. Server Capabilities
    2. Key Features
    3. Prerequisites
    4. Quick Start
    5. Development
ID: xe6grtrr0k