Skip to main content

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
supermemory-agent --storage .supermemory --transport stdio

Or with uv:

uvx 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/active
  • supermemory://lessons/{lesson_id}
  • supermemory://memory/{lesson_id}/provenance
  • supermemory://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


Download files

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

Source Distribution

supermemory_agent-0.2.3.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

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

supermemory_agent-0.2.3-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

Details for the file supermemory_agent-0.2.3.tar.gz.

File metadata

  • Download URL: supermemory_agent-0.2.3.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

Hashes for supermemory_agent-0.2.3.tar.gz
Algorithm Hash digest
SHA256 88f08571a48f6bbd8b3bb4fe32f74fef56454a9be2836e6b9c6c230d5ef1dab5
MD5 a17a769cbfd431a9ae7e9187ade458cd
BLAKE2b-256 6ef1558db5c5569e431a6f16e818fc78e19c33c7e80fba54809905da6c9c8561

See more details on using hashes here.

File details

Details for the file supermemory_agent-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for supermemory_agent-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a93a3bff3a8c7e25743a11dc8a6ce7abe70910337d00645a5fad4ddd070b610a
MD5 1ed966296f28481458173cd515c0e671
BLAKE2b-256 d9ced9af71e13697013a7e941f15c69c46033c2656cdc28bf1d21bf4833c3404

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