Skip to main content

The permanent and semantic memory layer for AI agents

Project description

Engram

The permanent and semantic memory layer for AI agents.

A better-notion-mcp bridge for effortless usage of Notion as a knowledge base.

Introduction

Engram transforms your Notion workspace into a living, cognitive substrate for your AI agents.

Why Engram?

According to neuropsychology, an engram is a unit of cognitive information imprinted in a physical substance, theorized to be the means by which memories are stored. This MCP server acts as that physical bridge, allowing your AI to:

  • Encode Information: Instantly store facts in a local vector-like "synaptic" database.
  • Stimulate Recall: Semantically search your entire knowledge base to retrieve context.
  • Imprint Knowledge: Create and edit rich Notion pages (markdown, tables, mermaid) as permanent memory traces.

Features

Feature Category Tool Name Description Arguments
Memory remember_fact Store a text snippet (memory trace) in the local synaptic database. fact (str)
search_memory Semantically retrieve facts ("Stimulate Recall"). query (str)
get_recent_memories Retrieve the most recent memory traces. limit (int)
Page Management create_page Create a new sub-page under your root page. title (str), content (str)
list_sub_pages List all child pages of a specific page. parent_id (str, optional)
read_page_content Read and parse the content of a page as Markdown. page_id (str)
Content Editing update_page Append rich content (paragraphs, code, tables) to a page. page_id (str), title (str), content (str), type (str), language (str)
log_to_notion Fast way to append a daily log/note to the root page. title (str), content (str)
Utilities send_alert Send a push notification via Telegram. message (str)

Prerequisites

Before using this tool, ensure you have Python 3.10 or higher installed.

Installing uv (Recommended)

We recommend using uv for the best experience. Download uv here

Installing pipx (Alternative)

If you prefer pipx, install it using these universal commands (works on Windows, Mac, and Linux):

# 1. Install pipx (user scope)
python3 -m pip install --user pipx

# 2. Add to PATH
python3 -m pipx ensurepath

# 3. Verify
pipx --version

Configuration

1. Notion Setup

  • Integration Token: Go to Notion My Integrations -> New Integration -> Copy the "Internal Integration Secret".
  • Page ID: Open the Notion page you want to use as the root. Copy the alphanumeric ID from the URL. Don't forget to connect this page to your specific integration.

2. Environment Variables

Variable Description Default / Note Required
NOTION_API_KEY Your Notion Integration Secret. -
NOTION_PAGE_ID The ID of the root page for creating/listing content. -
TELEGRAM_BOT_TOKEN Token from @BotFather for alerts. Optional
TELEGRAM_CHAT_ID Your Chat ID for receiving alerts. Optional
AGENT_MEMORY_PATH Path to the local SQLite DB. Win: C:\Users\<User>\.engram\data\
Mac: ~/Library/.engram/data/

Client Setup

Add the following to your MCP client configuration (e.g., claude_desktop_config.json for Claude Desktop).

Recommended: uv

{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": ["engram-mcp"],
      "env": {
        "NOTION_API_KEY": "secret_...",
        "NOTION_PAGE_ID": "page_id_...",
        "TELEGRAM_BOT_TOKEN": "bot_token_...",
        "TELEGRAM_CHAT_ID": "chat_id_...",
        "AGENT_MEMORY_PATH": "/path/to/db"
      }
    }
  }
}
Alternative: pipx
{
  "mcpServers": {
    "engram": {
      "command": "pipx",
      "args": ["run", "engram-mcp"],
      "env": {
        "NOTION_API_KEY": "secret_...",
        "NOTION_PAGE_ID": "page_id_...",
        "TELEGRAM_BOT_TOKEN": "bot_token_...",
        "...": "..."
      }
    }
  }
}

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

engram_mcp-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

engram_mcp-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file engram_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: engram_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for engram_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4a0f8103ca6acbfdd58e164173e63ad2d013ed9750b9f47ea32fd2ba0c6038e2
MD5 942eca6991efc4375f2f1a95e5c4ce59
BLAKE2b-256 b1dd39ac0e7813b540a67b287c76b65b36cb20c82d6766d3c09f647ce0be8eb6

See more details on using hashes here.

File details

Details for the file engram_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: engram_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for engram_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd77881c724f0fe4ebee20ea518813b2469a504f54ae51ebe885198c00f026e2
MD5 d7fcc797210751600302b6cafbc59235
BLAKE2b-256 928113d46a13a72d3e3a00579cd382fb7e682d99be0a953a6d3a4520875f6e34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page