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-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/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_mcp-0.2.2.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_mcp-0.2.2-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

Details for the file supermemory_agent_mcp-0.2.2.tar.gz.

File metadata

  • Download URL: supermemory_agent_mcp-0.2.2.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_mcp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4eb7cdda7dd66cf7493050674ed5cde7ac8b18c65b135baffcba0d6682a5bb25
MD5 789516ac35d812ce3eff10408431df82
BLAKE2b-256 cf148ab4f0eae7989498eb547a2c13bcda00768980291b54833290911f4864e9

See more details on using hashes here.

File details

Details for the file supermemory_agent_mcp-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for supermemory_agent_mcp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c230710d24b2e067ca22095616f8269775640314d3ca886d5bd96a93481e2d
MD5 faf795d290a4d648774e237e2ade49ca
BLAKE2b-256 9f3b1b0d45509827a82335601f19e106f0916f60229a8d8e2ce985efceb35a8b

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