modelscope·@suekou/mcp-notion-server
用于Notion API的MCP服务器,使Claude能够与Notion工作区进行交互。
Notion API 的 MCP 服务器,使 Claude 能够与 Notion 工作区进行交互。
以下文章中详细解释了上述步骤:
创建 Notion 集成:
获取密钥:
将集成添加到您的工作区:
配置 Claude 桌面:
将以下内容添加到您的 claude_desktop_config.json 文件中:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@suekou/mcp-notion-server"],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
或
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["your-built-file-path"],
"env": {
"NOTION_API_TOKEN": "your-integration-token"
}
}
}
}
NOTION_API_TOKEN(必需):您的 Notion API 集成令牌。NOTION_MARKDOWN_CONVERSION:设置为 "true" 以启用实验性的 Markdown 转换。这可以在查看内容时显著减少 token 消耗,但在尝试编辑页面内容时可能会出现问题。默认情况下,所有响应都以 JSON 格式返回。您可以启用实验性的 Markdown 转换以减少 token 消耗:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": ["-y", "@suekou/mcp-notion-server"],
"env": {
"NOTION_API_TOKEN": "your-integration-token",
"NOTION_MARKDOWN_CONVERSION": true
}
}
}
}
或
{
"mcpServers": {
"notion": {
"command": "node",
"args": ["your-built-file-path"],
"env": {
"NOTION_API_TOKEN": "your-integration-token",
"NOTION_MARKDOWN_CONVERSION": true
}
}
}
}
当 NOTION_MARKDOWN_CONVERSION 设置为 "true" 时,响应将转换为 Markdown 格式(当 format 参数设置为 "markdown" 时),使其更易于阅读,并显著减少 token 消耗。但是,由于此功能是实验性的,在尝试编辑页面内容时可能会出现问题,因为原始结构在转换过程中会丢失。
您可以通过在工具调用中将 format 参数设置为 "json" 或 "markdown" 来逐个请求控制格式:
"markdown" 可以在仅查看内容时提高可读性"json" 当您需要修改返回的内容时如果您遇到权限错误:
claude_desktop_config.json 中正确设置了令牌和配置。所有工具都支持以下可选参数:
format (字符串, "json" 或 "markdown", 默认: "markdown"): 控制响应格式。使用 "markdown" 以获得人类可读的输出,使用 "json" 以便程序化访问原始数据结构。注意:Markdown 转换仅在 NOTION_MARKDOWN_CONVERSION 环境变量设置为 "true" 时有效。notion_append_block_children
block_id (string): The ID of the parent block.children (array): Array of block objects to append.notion_retrieve_block
block_id (string): The ID of the block to retrieve.notion_retrieve_block_children
block_id (string): The ID of the parent block.start_cursor (string): Cursor for the next page of results.page_size (number, default: 100, max: 100): Number of blocks to retrieve.notion_delete_block
block_id (string): The ID of the block to delete.notion_retrieve_page
page_id (string): The ID of the page to retrieve.notion_update_page_properties
page_id (string): The ID of the page to update.properties (object): Properties to update.notion_create_database
parent (object): Parent object of the database.title (array): Title of the database as a rich text array.properties (object): Property schema of the database.notion_query_database
database_id (string): The ID of the database to query.filter (object): Filter conditions.sorts (array): Sorting conditions.start_cursor (string): Cursor for the next page of results.page_size (number, default: 100, max: 100): Number of results to retrieve.notion_retrieve_database
database_id (string): The ID of the database to retrieve.notion_update_database
database_id (string): The ID of the database to update.title (array): New title for the database.description (array): New description for the database.properties (object): Updated property schema.notion_create_database_item
database_id (string): The ID of the database to add the item to.properties (object): The properties of the new item. These should match the database schema.notion_search
query (string): Text to search for in page or database titles.filter (object): Criteria to limit results to either only pages or only databases.sort (object): Criteria to sort the resultsstart_cursor (string): Pagination st…通过全局和分支特定的记忆库,管理跨 Claude AI 会话的项目文档和上下文的服务器,通过结构化的 JSON 文档存储实现一致的知识管理。
该服务器允许用户通过自定义URI方案存储、管理和总结笔记,具有添加新笔记以及生成详细程度不同的摘要的功能。
一个高性能的MCP服务器,将Notion集成到AI工作流中,通过标准化协议实现与Notion页面、数据库和评论的交互。
通过简单的消息控制协议接口,使人工智能助手能够搜索和访问arXiv研究论文,从而实现论文的搜索、下载、列出和阅读功能。
通过模型上下文协议,启用大型语言模型(LLMs)与Obsidian仓库之间的交互,支持安全的文件操作、内容管理和高级搜索功能。
一个本地的MCP服务器, enables像Claude Desktop这样的AI应用安全地访问和处理Obsidian保险库,提供阅读笔记、执行模板和进行语义搜索的功能。