浏览整个 Notion 工作区,而不仅仅是一个数据库
基于 Markdown 的 Notion 仅使用单个ROOT_PAGE变量来导航 MCP,从而无需使用令牌。
Notion MCP 服务器:
notion-texonomNotion 页面被转换为
text/markdownmimeType 注释。根据图距离搜索和检索相关页面,考虑父子关系和引用关系。
一个模型上下文协议 (MCP) 服务器,用于管理和与基于 Notion 的笔记交互。这个基于 TypeScript 的服务器通过集成资源、工具和提示来演示 MCP 概念,以便高效地与 Notion 页面交互。
特征
资源
访问注释:列出并检索带有 UUID slug 的
note://URI 形式的 Notion 页面。元数据:每个资源都包含标题、描述和 Markdown 格式的内容。
Mime 类型:内容可以以
text/markdown格式访问。
工具
搜索注释:使用
search_notes工具通过查询字符串搜索 Notion 页面。输入:查询文本以过滤相关页面。
输出:匹配笔记的 Markdown 内容。
提示
总结笔记:为各个 Notion 页面生成摘要。
可用提示:
summarize_note:通过 URI 总结特定注释。suggest_refactor:提出结构改进。suggest_fix:确定注释内容的潜在修复。suggest_enhance:建议增强功能以改进笔记。
输入:Notion 页面 URI。
输出:用于总结和增强的结构化消息。
发展
设置
安装依赖项:
构建项目:
对于使用自动重建的开发:
配置
要使用 Notion 配置服务器:
设置环境变量:
ROOT_PAGE:Notion 工作区的根页面 ID。
Claude Desktop 安装
要将此服务器与 Claude Desktop 一起使用,请添加配置:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
示例配置:
调试
如需对 MCP 服务器进行故障排除和调试,请使用 MCP 检查器。要启动检查器,请运行:
检查器提供了基于浏览器的界面,用于检查基于 stdio 的服务器通信。
关键技术
Notion 集成:由
@texonom/nclient和@texonom/cli.MCP SDK:实现
@modelcontextprotocol/sdk用于服务器操作。
远程部署
服务器现在使用SSEServerTransport进行远程通信,从而实现服务器的共享使用。请确保已安装必要的依赖项,并正确配置服务器以进行远程部署。
使用说明
要使用SSEServerTransport运行服务器,请使用以下命令:
确保将/some/folder替换为文件夹的适当路径。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
这个基于 TypeScript 的 MCP 服务器允许用户通过使用模型上下文协议 (MCP) 创建和汇总文本注释来管理简单的注释系统。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityThis TypeScript-based MCP server enables users to manage and summarize text notes, providing tools for note creation and summarization prompts.Last updated -22810
- Asecurity-licenseAqualityThis TypeScript-based MCP server enables users to manage a simple notes system with capabilities to create and summarize notes through structured prompts and resources.Last updated -0MIT License
- -security-license-qualityA TypeScript-based MCP server that enables users to manage text notes with features like note creation and summary generation using a Model Context Protocol.Last updated -1
- Asecurity-licenseAqualityThis TypeScript-based MCP server allows users to manage and interact with a note system through Model Context Protocol, enabling note creation and summarization with URIs and metadata.Last updated -1MIT License