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.
Install from PyPI (recommended for Claude / Cursor users)
pip install supermemory-agent-mcp
supermemory-agent-mcp --storage .supermemory --transport stdio
Or with uv:
uvx supermemory-agent-mcp --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-mcp --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 |
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
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_mcp-0.2.1.tar.gz.
File metadata
- Download URL: supermemory_agent_mcp-0.2.1.tar.gz
- Upload date:
- Size: 62.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df3bb21a8ec616b55a0764dad7abb20eaa3463f7af290c2de24bf6380ea1625b
|
|
| MD5 |
713f9a5db33c3b1e502c52a451bdf17a
|
|
| BLAKE2b-256 |
2948ac1ae307d6eaea48da41a158af4984a2bc256acf0dda9f84b8a6d54a7d6e
|
File details
Details for the file supermemory_agent_mcp-0.2.1-py3-none-any.whl.
File metadata
- Download URL: supermemory_agent_mcp-0.2.1-py3-none-any.whl
- Upload date:
- Size: 55.4 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 |
0ed7b761854598ac97e01a750835e850d27a20908ac66f4a5f4ec4e699066814
|
|
| MD5 |
fa7ebe584259c0113d70f9a2b4fc3e15
|
|
| BLAKE2b-256 |
0c1ad011fce6d6b1122141e35278b2a66a0ed7b9ad12c52ca21069216bd39776
|