Skip to main content
Glama
shahjalal2313

notion-memory-mcp

Notion Memory MCP 🧠

NotionをAIエージェント向けのプログラム可能なメモリ層に変えるModel Context Protocolサーバー。

あらゆるMCP互換エージェント(Hermes、Claude Desktop、Cursor、カスタムエージェント)に、Notionワークスペースを検索・読み取り・保存・追記・クエリするための5つのクリーンなツールを提供します。これにより、Notionはエージェントの3層メモリアーキテクチャにおける永続的な「ディスク」層になります。

⚡ 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)

正確なタイトルでページをアップサート(マークダウン風 → ブロック)

notion_append(page_id, text)

ページに追記(実行ログ)

notion_query_db(db_id)

オプションのセレクトフィルター付きでデータベース行をクエリ

セットアップ

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ではなく名前で考えます。再保存で本文が置き換わります — 冪等な書き込みです。

  • マークダウン風 → ブロック:見出し(#)、箇条書き(-)、段落はネイティブのNotionブロックにマッピングされます。複雑なASTは不要です。

  • 読み取りはオープン、書き込みはスコープ付き:読み取りは統合が参照できるものすべてにアクセスします。作成/更新のみ。設計上、削除ツールはありません — 破壊的操作は人間のみに限定されます。

  • stdlib + httpx + mcp:最小限の依存関係、監査が容易。

実証されたスキル

MCPサーバー開発 · 非同期Python(httpx + asyncio) · Notion API(search/blocks/databases) · LLMツール利用のためのプロトコル設計 · 防御的なAPIエラーマッピング

ライセンス

MIT — Shahjalal Shanto によって構築

エージェントメモリアーキテクチャの一部:組み込みキャッシュ + mem0 RAM + 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