Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

@0xmemorylayer/mcp

MCP server that gives any AI tool persistent memory and automation access via the Memory Layer API

ai-toolsautomationsmcpmemorymemorylayermodel-context-protocolpersistent-memory
Published8 Apr 2026
Direct dependencies6
Transitive dependenciesNot calculated

README

Current package documentation

@memorylayer/mcp

An MCP (Model Context Protocol) server that gives any AI tool persistent memory and automation access via the Memory Layer API.

When an AI tool connects this MCP server, it gets session lifecycle management, persistent memory storage, corrections, handoffs, cross-session continuity, and full automation control — without needing any additional plugin.

Quick Start

Add this to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "memorylayer": {
      "command": "npx",
      "args": ["-y", "@memorylayer/mcp"],
      "env": {
        "MEMORYLAYER_API_KEY": "ml_your_key_here"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
MEMORYLAYER_API_KEYYesYour Memory Layer API key (ml_...)
MEMORYLAYER_API_BASENoCustom API base URL (advanced)

Tools

Session Lifecycle

start_session — Start a persistent memory session. Loads project context, last handoff, corrections, and memory entries. Call at the beginning of every conversation.

end_session — End the active session with a handoff note. The handoff is what the next session sees.

Memory Operations

remember — Save information to persistent memory mid-session.

recall — Retrieve memories from cached session data, optionally filtered by scope and type.

Context Access

get_handoff — Get the handoff note from the previous session ("what should I do next?").

get_corrections — Get active corrections that override conflicting context.

get_project_info — Get project name, tier, and session count.

Status

memory_status — Check current session state: active session, session ID, memory count, active scopes.

Automations

ml_list_automations — List all automations in your account with their IDs, names, and status.

ml_trigger_automation — Trigger a specific automation by UUID. Returns a run_id for tracking.

ml_get_run_status — Check the status and output of a specific automation run.

ml_list_runs — List recent automation run history, optionally filtered to a specific automation.

Agent Sync (Hub)

sync_agent_install — Register a locally-installed agent with the Memory Layer hub dashboard.

log_agent_run — Log a completed agent run to the hub's Run History dashboard.

How It Works

  1. Start a conversation → AI calls start_session → gets project context + last handoff
  2. Do work → AI calls remember to save knowledge mid-session
  3. End the conversation → AI calls end_session with a handoff note
  4. Start a NEW conversation → AI calls start_session → gets the handoff from step 3

That's persistent memory across conversations, powered by the Memory Layer API, delivered via MCP.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@modelcontextprotocol/sdk
Environment
{
  "local_name": "@modelcontextprotocol/sdk",
  "alias": false,
  "peer_metadata": null
}
^1.6.1runtime
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.7.9runtime
zod
Environment
{
  "local_name": "zod",
  "alias": false,
  "peer_metadata": null
}
^3.23.8runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22.10.0development
tsx
Environment
{
  "local_name": "tsx",
  "alias": false,
  "peer_metadata": null
}
^4.19.2development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.7.2development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-ryKq2GEln3fv1GZyYctaNBdcxdKYJufX1yTozj/srL3C1m8j3LMdCF4Ofhk1wiXjY2Wu2dZ2sZCWjsAVbFM4Hg==",
  "shasum": "6ab8eb70376e2c4c2e1f0ccc25cde41e139346a4",
  "tarball": "https://registry.npmjs.org/@0xmemorylayer/mcp/-/mcp-1.0.0.tgz",
  "fileCount": 13,
  "unpackedSize": 73748,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEYCIQDo5+SRQvgvXlaXkJV036CXADJtLXXFxKaHeraN/60CpgIhANFU5o2yoNWMTrNXqyHwYiXu1N0tX0qU2rhGKmNhfQTz"
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:07 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c5ba3a0ed00a2775731c1f2d1ff826bc60a13358bfed0d1f10c4dba4c260c1c9

Other collected versions

View all collected versions →