SuperMemory: MCP-first learning memory layer for Claude, Cursor, and agent workflows
Project description
SuperMemory MCP
MCP-first learning memory layer for Claude, Cursor, and agent workflows. Captures distilled lessons from failures and corrections (not full transcripts), validates before storage, and improves agents over time through a closed-loop cycle.
Monorepo: MCP server, agent skills (skills/supermemory-agent-learning/SKILL.md), REST API, Python SDK, and tests all live in this repository. The PyPI package ships the MCP server and bundled skills together.
Latest release: v0.2.4 — each GitHub Release includes wheel + sdist package assets.
Install from PyPI (recommended for Claude / Cursor users)
pip install supermemory-agent
supermemory-agent --storage .supermemory --transport stdio
Or with uv:
uvx supermemory-agent --storage .supermemory --transport stdio
After install, bundled agent skills are under site-packages/skills/supermemory-agent-learning/ (copy to .cursor/skills/ or ~/.cursor/skills/ as needed).
Install from GitHub Release
Download the wheel from Releases (each release ships supermemory_agent-{version}-py3-none-any.whl):
pip install https://github.com/YashvantHange/SuperMemory/releases/download/v0.2.4/supermemory_agent-0.2.4-py3-none-any.whl
supermemory-agent --storage .supermemory --transport stdio
Install from source (developers)
pip install -e ".[dev]"
Run MCP server
python -m supermemory_mcp.server --storage .supermemory --transport stdio
Or via CLI entry point:
supermemory-agent --storage .supermemory --transport stdio
Streamable HTTP:
python -m supermemory_mcp.server --storage .supermemory --transport streamable-http
MCP tools (29 total)
GitHub-compatible 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
MCP resources
supermemory://policies/activesupermemory://lessons/{lesson_id}supermemory://memory/{lesson_id}/provenancesupermemory://skills/{skill_id}
Agent learning loop
retrieve → record_failure → reflect(event_ids) → validate → process_promotions
→ retrieve again → report_outcome
Cursor / Claude Desktop
MCP server
Copy examples/cursor.mcp.json to .cursor/mcp.json (Cursor project).
For Claude Desktop, merge examples/claude_desktop_config.json into:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after editing the config.
Agent skills (Cursor + Claude Code)
| Platform | Project path | Global path |
|---|---|---|
| Cursor | .cursor/skills/supermemory-agent-learning/ |
~/.cursor/skills/supermemory-agent-learning/ |
| Claude Code | .claude/skills/supermemory-agent-learning/ |
~/.claude/skills/supermemory-agent-learning/ |
| Canonical source | skills/supermemory-agent-learning/ |
edit here, then run python scripts/sync_skills.py |
| PyPI install | site-packages/skills/supermemory-agent-learning/ |
bundled with pip install supermemory-agent |
Mention SuperMemory, agent learning, or MCP memory in chat to load the skill.
Python SDK
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
python -m uall_server
Server runs at http://localhost:8000. See api/openapi.yaml.
Storage
| Tier | Backend | Default path |
|---|---|---|
| Default | .supermemory/ JSON files |
SUPERMEMORY_STORAGE_PATH or UALL_DATA_DIR |
| Optional | SQLite | UALL_STORAGE_BACKEND=sqlite |
| Enterprise | PostgreSQL + stubs | UALL_STORAGE_BACKEND=postgres |
Tests
python tests/run_all.py # full suite (pytest + agent demos)
python -m pytest tests/ -v # all unit/integration tests
python -m pytest tests/test_mcp_server.py -v # real stdio MCP transport
python -m pytest tests/test_core.py -v # GitHub-compatible closed loop
License
MIT — see LICENSE
Releases
Every version is published to GitHub Releases with wheel + sdist attached, then synced to PyPI and the MCP Registry via CI.
# Maintainer: after bumping pyproject.toml + server.json
python scripts/release.py --title "v0.2.4 — short summary of changes"
See docs/RELEASES.md for the full release checklist.
Publish / list in directories
See docs/PUBLISHING.md for MCP Registry, Cursor Directory, and Claude Connectors Directory submission steps.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file supermemory_agent-0.2.4.tar.gz.
File metadata
- Download URL: supermemory_agent-0.2.4.tar.gz
- Upload date:
- Size: 65.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04f85fc1dba1df73cf0944bb2d5085f90462292575a6cb59e2a936a91474a157
|
|
| MD5 |
0a3707aeced1546aef47396b7eae897c
|
|
| BLAKE2b-256 |
8189ed83c4324734a4bc23fa41995a471dc59f0911f0586a34c17188e5dfc8b7
|
File details
Details for the file supermemory_agent-0.2.4-py3-none-any.whl.
File metadata
- Download URL: supermemory_agent-0.2.4-py3-none-any.whl
- Upload date:
- Size: 61.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d728db0721f61783c667eb8be794daf973c68f63dc183b079db2a87799ad05e
|
|
| MD5 |
03088362532b76eab3d42d0f8fb0572c
|
|
| BLAKE2b-256 |
41a2deb45e3c49711e14357aa52c778ed1965972b02d3b0a3320bacbf9218dda
|