SuperMemory

io.github.YashvantHange由 GitHub 帳號 YashvantHange 發布v0.2.5更新於 Oct 24, 2026

MCP-first agent learning: capture failures, validate lessons, retrieve context, improve.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面知識與記憶AI 與機器學習

概覽

AI 產生的概覽

一個本機 MCP 伺服器,把代理的失敗與修正記錄成濃縮後的经验,加以驗證,並在之後檢索相關脈絡。

可以做什麼
SuperMemory 是一個以 MCP 為核心的代理學習層,記錄的是從失敗和修正中濃縮出的經驗,而不是完整對話逐字稿。它透過 stdio 提供 29 個工具和 4 個資源,包括 retrieve、record_event、record_failure、record_correction、reflect、validate、process_promotions、report_outcome 以及政策與技能相關工具。它還附帶 Python SDK、REST API 和代理技能,預設把資料存放在本機 .supermemory 檔案中,也可選用 SQLite 和 PostgreSQL。
適用情境
當你希望助理跨工作階段從自身錯誤中學習時使用,例如記錄某個工作流程步驟失敗的原因,並在下次執行類似任務時檢索該經驗。它適合需要檢索、記錄、反思、驗證、提升這套閉環流程的 Claude、Cursor 和自訂代理工作流程。
執行需求
以本機程序在使用者機器上透過 stdio 執行,從 PyPI 以 supermemory-agent 安裝(pip 或 uvx),或使用 GitHub 發佈頁的 wheel。需要 Python 和儲存位置,透過 SUPERMEMORY_STORAGE_PATH 或舊別名 UALL_DATA_DIR 設定。未宣告身分驗證。可選的 SQLite 或 PostgreSQL 後端透過環境變數設定。
安裝前請注意
它會將學習資料寫入本機儲存目錄,請把 SUPERMEMORY_STORAGE_PATH 指向你願意持久保存的位置。不要在終端機中直接執行 stdio 命令,因為它需要來自 MCP 用戶端的 JSON-RPC。README 說明只應記錄濃縮後的經驗和流程結果,絕不要記錄完整逐字稿,因此請檢查你的代理記錄了哪些內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SuperMemory,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

SuperMemory

MCP-first agent learning layer for Claude, Cursor, and custom agent workflows.

SuperMemory captures distilled lessons from failures and corrections — not full conversation transcripts — validates them before storage, and improves agents over time through a closed-loop cycle.

[PyPI] [GitHub Release] [License: MIT] [MCP Registry]


Quick start

bash
pip install supermemory-agentsupermemory-agent --storage .supermemory --transport stdio

Or with uv:

bash
uvx supermemory-agent --storage .supermemory --transport stdio

Latest release: v0.2.4 — wheel + sdist attached on every GitHub Release.


What you get

ComponentDescription
MCP server29 tools + 4 resources over stdio (or streamable HTTP)
Agent skillskills/supermemory-agent-learning/SKILL.md — bundled in the PyPI package
Python SDKIn-process integration via uall_python
REST APIFastAPI server for remote / polyglot clients
StorageLocal .supermemory/ files by default; SQLite and PostgreSQL optional

Everything lives in one repo: MCP server, skills, SDK, REST API, tests, and release packages.


Install

PyPI (recommended)

bash
pip install supermemory-agent

After install, bundled skills are at site-packages/skills/supermemory-agent-learning/. Copy to your editor skills folder if needed.

GitHub Release (offline / pinned version)

Each release ships installable assets:

bash
pip install https://github.com/YashvantHange/SuperMemory/releases/download/v0.2.4/supermemory_agent-0.2.4-py3-none-any.whl

Browse all versions: github.com/YashvantHange/SuperMemory/releases

From source (developers)

bash
git clone https://github.com/YashvantHange/SuperMemory.gitcd SuperMemorypip install -e ".[dev]"python -m pytest tests/ -v

Configure MCP

Cursor

Copy examples/cursor.mcp.json to .cursor/mcp.json in your project:

json
{  "mcpServers": {    "supermemory": {      "command": "supermemory-agent",      "args": ["--storage", ".supermemory", "--transport", "stdio"]    }  }}

Claude Desktop

Merge examples/claude_desktop_config.json into:

%APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop after saving.

Run manually

Do not run supermemory-agent alone in a terminal — stdio mode expects JSON-RPC from an MCP client. Pressing Enter in the shell causes a JSON parse error.

bash
# For local HTTP testing only:supermemory-agent --transport streamable-http

When configured in Cursor or Claude Desktop, the client launches the server automatically over stdio.


Agent skills (Cursor + Claude Code)

SourcePath
Canonical (edit here)skills/supermemory-agent-learning/
Cursor project.cursor/skills/supermemory-agent-learning/
Claude Code project.claude/skills/supermemory-agent-learning/
PyPI installsite-packages/skills/supermemory-agent-learning/

After editing skills/, sync copies:

bash
python scripts/sync_skills.py

Mention SuperMemory, agent learning, or MCP memory in chat to load the skill.


Learning loop

retrieve → record_failure → reflect(event_ids) → validate → process_promotions         → retrieve again → report_outcome

Core rule: capture workflow outcomes and distilled lessons only — never full transcripts. Default retrieval budget: max_tokens=800.


MCP tools (29)

Core (13): retrieve, record_event, record_failure, record_correction, reflect, validate, process_promotions, report_outcome, get_policies, add_policy, add_skill, search_skills, get_skill

Extended UALL (16): learn.run.start, learn.run.event, learn.run.end, learn.store, learn.retrieve, learn.reflect, learn.validate, learn.evaluate, learn.feedback, learn.improvements, learn.analytics, learn.policies, learn.experiment, learn.rollback, learn.skills, learn.telemetry

All tools include MCP safety annotations (readOnlyHint / destructiveHint).

MCP resources (4)

  • supermemory://policies/active
  • supermemory://lessons/{lesson_id}
  • supermemory://memory/{lesson_id}/provenance
  • supermemory://skills/{skill_id}

Python SDK

python
from uall_python import UALLClient
client = UALLClient(storage="file")
with client.run(workflow_id="pdf-pipeline", step="planner", namespace="team:eng") as run:    lessons = run.retrieve(step="planner", max_tokens=800)    run.record_failure(snippet="chose OCR for searchable PDF", tags=["routing"])    run.report_lesson_outcome(lesson_id="lesson_001", used=True, accepted=True, improved=True)

REST API

bash
python -m uall_server

Server: http://localhost:8000 — see api/openapi.yaml.


Storage

TierBackendConfig
Default.supermemory/ JSON filesSUPERMEMORY_STORAGE_PATH or UALL_DATA_DIR
OptionalSQLiteUALL_STORAGE_BACKEND=sqlite
EnterprisePostgreSQLUALL_STORAGE_BACKEND=postgres

Project layout

SuperMemory/├── src/supermemory_mcp/          # MCP server (29 tools, 4 resources)├── skills/supermemory-agent-learning/   # Agent skill (SKILL.md)├── packages/uall/                # Core learning engine├── packages/uall_python/         # Python SDK├── packages/uall_server/         # REST API├── examples/                     # Cursor + Claude Desktop MCP configs├── tests/                        # 74 tests incl. stdio MCP transport└── docs/                         # Publishing, releases, privacy

Tests

bash
python -m pytest tests/ -vpython -m pytest tests/test_mcp_server.py -v   # real stdio MCP transportpython -m pytest tests/test_core.py -v         # closed-loop integration

Docs

DocPurpose
docs/GIT_SETUP.mdFix commit author name/email on GitHub
docs/RELEASES.mdRelease checklist — every tag ships wheel + sdist
docs/PUBLISHING.mdPyPI, MCP Registry, Cursor & Claude directories
PRIVACY.mdPrivacy policy
skills/README.mdAgent skill install paths

MCP Registry name: io.github.YashvantHange/supermemory
PyPI package: supermemory-agent


License

MIT — see LICENSE

來源:README.md,提交 9849ccb

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.5最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合