notion-memory-mcp

notion-memory-mcp

Enables AI agents to use Notion as a persistent memory tier by providing tools to search, read, save (upsert) pages, append to pages, and query databases.

Category
Visit Server

README

Notion Memory MCP 🧠

A Model Context Protocol server that turns Notion into a programmable memory tier for AI agents.

Give any MCP-compatible agent (Hermes, Claude Desktop, Cursor, custom agents) five clean tools to search, read, save, append, and query your Notion workspace — making Notion the persistent "disk" layer of an agent's 3-tier memory architecture.

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

Why

Agent memory solutions (mem0, honcho...) are opaque — great for reflexive recall, invisible to humans. Notion is the opposite: fully visible and editable by humans, but not natively tool-callable.

This server bridges them: agents get programmatic access; humans keep full visual control.

Tools exposed

Tool What it does
notion_search(query) Find pages/databases by title or content
notion_read(page_id) Read a page as structured plain text
notion_save(title, content) Upsert page by exact title (markdown-ish → blocks)
notion_append(page_id, text) Append to a page (running logs)
notion_query_db(db_id) Query database rows with optional select-filter

Setup

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

Add to your MCP config:

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

Design decisions

  • Upsert-by-title (notion_save): agents think in names, not UUIDs. Re-saving replaces the body — idempotent writes.
  • Markdown-ish → blocks: headings (#), bullets (-), paragraphs map to native Notion blocks. No complex AST.
  • Read-open, write-scoped: reads hit whatever the integration can see; create/update only. No delete tool by design — destructive ops stay human-only.
  • stdlib + httpx + mcp: minimal dependencies, easy audit.

Skills demonstrated

MCP server development Ā· async Python (httpx + asyncio) Ā· Notion API (search/blocks/databases) Ā· protocol design for LLM tool use Ā· defensive API error mapping

License

MIT — built by Shahjalal Shanto

Part of an agent-memory architecture: built-in cache + mem0 RAM + Notion disk.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured