Skip to main content
Glama
shahjalal2313

notion-memory-mcp

Notion Memory MCP 🧠

一个将 Notion 变成 AI 智能体可编程记忆层的 Model Context Protocol 服务器。

为任何兼容 MCP 的智能体(Hermes、Claude Desktop、Cursor、自定义智能体)提供五个简洁的工具,用于搜索、读取、保存、追加和查询你的 Notion 工作区——让 Notion 成为智能体三层记忆架构中的持久化"磁盘"层。

⚡ L1 cache  → agent built-in memory (always in context)
🧮 RAM       → mem0 / vector store (auto recall)
💾 DISK      → Notion via this MCP ← you are here

为什么

智能体记忆方案(mem0、honcho...)是不透明的——擅长反射式回忆,但对人类不可见。Notion 恰恰相反:对人类完全可见且可编辑,但无法原生地通过工具调用。

这个服务器架起了两者之间的桥梁:智能体获得编程式访问;人类保留完全的视觉控制。

Related MCP server: Notion MCP Server

提供的工具

工具

功能

notion_search(query)

按标题或内容查找页面/数据库

notion_read(page_id)

将页面读取为结构化的纯文本

notion_save(title, content)

按精确标题更新或插入页面(类 Markdown → 块)

notion_append(page_id, text)

追加到页面(运行日志)

notion_query_db(db_id)

查询数据库行,支持可选的 select 筛选

设置

pip install -r requirements.txt
export NOTION_API_TOKEN=ntn_your_integration_token   # notion.so/my-integrations
python3 server.py                                     # stdio transport

Hermes Agent

hermes mcp add notion-memory -- python3 /path/to/server.py
# with env: NOTION_API_TOKEN set in ~/.hermes/.env

Claude Desktop / Cursor

添加到你的 MCP 配置中:

{
  "mcpServers": {
    "notion-memory": {
      "command": "python3",
      "args": ["/path/to/server.py"],
      "env": { "NOTION_API_TOKEN": "ntn_..." }
    }
  }
}

设计决策

  • 按标题更新或插入notion_save):智能体以名称而非 UUID 思考。重新保存会替换正文——幂等写入。

  • 类 Markdown → 块:标题(#)、项目符号(-)、段落映射为 Notion 原生块。无需复杂的 AST。

  • 读取开放、写入受限:读取可访问集成所能看到的一切;仅支持创建/更新。设计上不提供删除工具——破坏性操作仅限人工。

  • stdlib + httpx + mcp:依赖最少,易于审计。

展示的技能

MCP 服务器开发 · 异步 Python(httpx + asyncio)· Notion API(search/blocks/databases)· 面向 LLM 工具使用的协议设计 · 防御式 API 错误映射

许可证

MIT — 由 Shahjalal Shanto 构建

智能体记忆架构的一部分:内置缓存 + mem0 内存 + Notion 磁盘。

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

  • Universal memory for AI agents and tools. Save, organize and search context anywhere.

  • Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shahjalal2313/notion-memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server