Skip to content
Back to skills

Mem Machine

ASecurity

"Use MemMachine to build, configure, troubleshoot, and integrate

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentstypescriptpythongobashsqlnodedockerawsapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill mem-machine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mem Machine?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mem Machine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mem-machine/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mem-machine)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mem-machine
description: "Use MemMachine to build, configure, troubleshoot, and integrate
  persistent memory for AI agents through the Python SDK, REST API, CLI, MCP
  server, TypeScript client, self-hosted server, and framework integrations."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MemMachine

Use this skill when a task names MemMachine, `memmachine-client`,
`memmachine-server`, `memmachine_common`, `@memmachine/client`, `mem-cli`,
`memmachine-server`, persistent agent memory, episodic memory, semantic/profile
memory, MemMachine MCP, or a self-hosted MemMachine API server.

MemMachine is a client-server memory layer for AI agents. The server stores and
retrieves memories; application code usually talks to it through the Python SDK,
TypeScript REST client, CLI, REST API, or MCP tools.

## First Steps

1. Decide whether the user is using MemMachine as a package or configuring a
   server. Package-only tasks need a running MemMachine API server; server tasks
   need configuration, storage resources, and provider credentials.
2. If a Python environment is available, run the bundled read-only checker from
   this skill directory:
   ```bash
   python scripts/check_memmachine_install.py --summary
   ```
3. Route to the focused sub-skill before giving detailed commands.
4. Do not expose API keys, provider credentials, database passwords, or local
   memory contents in answers. Use placeholders when showing commands.

## Route By Task

- **Python SDK and CLI**: use
  [python-sdk-and-cli](sub-skills/python-sdk-and-cli/SKILL.md) for
  `MemMachineClient`, `Project`, `Memory`, `Config`, `mem-cli`, `memmachine`,
  project context, add/search/list/delete memory, semantic categories/tags,
  filters, formatted output, and LangGraph tool helpers.
- **Server, configuration, REST, MCP, and memory engines**: use
  [server-configuration-and-memory-engines](sub-skills/server-configuration-and-memory-engines/SKILL.md)
  for `memmachine-server`, YAML configuration, Docker Compose/Helm deployment,
  storage backends, provider resources, REST endpoint families, MCP stdio/HTTP,
  event/declarative long-term memory, semantic memory, and retrieval-agent
  behavior.
- **Integrations and migration**: use
  [integrations-and-migration](sub-skills/integrations-and-migration/SKILL.md)
  for LangGraph/LangChain/LlamaIndex/CrewAI/AWS Strands/OpenClaw/Dify/n8n/FastGPT
  integrations, example-agent adaptation, and ChatGPT/OpenAI/LoCoMo conversation
  export migration.
- **TypeScript REST client**: use
  [typescript-rest-client](sub-skills/typescript-rest-client/SKILL.md) for
  `@memmachine/client`, Node/TypeScript install/build/test, `MemMachineClient`,
  `MemMachineProject`, `MemMachineMemory`, Axios/API errors, and TS examples.

## Shared References And Scripts

- Read [repo-provenance.md](references/repo-provenance.md) to check the source
  commit, package-version baseline, and refresh triggers before relying on this
  skill for a changed MemMachine release.
- Read [package-overview.md](references/package-overview.md) for package names,
  version baseline, install variants, runtime architecture, and safe smoke
  checks.
- Read [rest-api-and-data-models.md](references/rest-api-and-data-models.md)
  when translating between SDK calls, CLI commands, REST payloads, and shared
  data models.
- Read [troubleshooting.md](references/troubleshooting.md) for cross-cutting
  install/import, server, auth, provider, storage, optional dependency, and
  API-path failures.
- Run [check_memmachine_install.py](scripts/check_memmachine_install.py) to
  inspect installed Python packages, public entry points, and key signatures
  without starting a server.
- Run [memmachine_server_doctor.py](scripts/memmachine_server_doctor.py) to
  inspect server prerequisites, optional Docker availability, and config-file
  shape without starting or stopping services.

## Package And Runtime Boundaries

Install only the surface needed for the task:

```bash
python -m pip install memmachine-client      # application/client code
python -m pip install memmachine-server      # self-hosted server workflows
npm install @memmachine/client               # TypeScript applications
```

- Python package names: `memmachine-client`, `memmachine-common`,
  `memmachine-server`, and meta package `memmachine`.
- TypeScript package name: `@memmachine/client`.
- Python client calls require a MemMachine API base URL. Use
  `http://localhost:8080` only when a local server is actually running.
- Cloud or secured deployments may require a bearer API key; never print the
  key after loading it from an environment variable or secret store.
- Self-hosted server workflows may require PostgreSQL/pgvector, Neo4j, Qdrant,
  Milvus, Nebula, provider credentials, or Docker. Treat those as explicit
  prerequisites, not as implicit side effects.
- Optional local NLP/model features, including spaCy multi-hop decomposition and
  sentence-transformer embeddings, require extra dependencies. Do not claim GPU
  or external-provider behavior is verified from a plain import check.

## Minimal Python Usage Shape

```python
from memmachine_client import MemMachineClient

client = MemMachineClient(base_url="http://localhost:8080", api_key=None)
project = client.get_or_create_project(org_id="my-org", project_id="my-project")
memory = project.memory(metadata={"user_id": "alice", "agent_id": "assistant"})
memory.add("Alice prefers aisle seats.", metadata={"category": "travel"})
result = memory.search("What seating does Alice prefer?", limit=5)
client.close()
```

For CLI usage, put global client flags before the subcommand and project context
on the project or memory command:

```bash
mem-cli --base-url "http://localhost:8080" memory search \
  "What seating does Alice prefer?" \
  --org-id "my-org" --project-id "my-project" --limit 5
```

## Verification Notes

Prefer read-only checks first: imports, `--help`, health checks, config parsing,
and mocked/unit-level command construction. Only start Docker services, call LLM
providers, upload memories, or run integration benchmarks after the user has
provided the required credentials, service endpoints, and permission for side
effects.

Files in this skill

  • SKILL.md6.1 KB
  • references/package-overview.md4.3 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json415 B
  • references/rest-api-and-data-models.md4.8 KB
  • references/troubleshooting.md4.8 KB
  • scripts/check_memmachine_install.py4.7 KB
  • scripts/memmachine_server_doctor.py4.9 KB
  • sub-skills/integrations-and-migration/SKILL.md3.5 KB
  • sub-skills/integrations-and-migration/references/framework-integrations.md3.5 KB
  • sub-skills/integrations-and-migration/references/migration-tools.md2.9 KB
  • sub-skills/integrations-and-migration/references/troubleshooting.md2.8 KB
  • sub-skills/integrations-and-migration/scripts/chatgpt_export_probe.py3.5 KB
  • sub-skills/python-sdk-and-cli/SKILL.md4.3 KB
  • sub-skills/python-sdk-and-cli/references/cli-reference.md4 KB
  • sub-skills/python-sdk-and-cli/references/memory-workflows.md5.2 KB
  • sub-skills/python-sdk-and-cli/references/python-sdk-reference.md6.7 KB
  • sub-skills/python-sdk-and-cli/references/troubleshooting.md3.6 KB
  • sub-skills/python-sdk-and-cli/scripts/mem_cli_smoke.py2.3 KB
  • sub-skills/python-sdk-and-cli/scripts/python_client_recipe.py2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.