MemOS MCP server
Commit 11 Nov 2026Menyediakan layer memori berbasis SQLite yang bersifat local-first dan persistent agar AI agent dapat menyimpan serta mengingat informasi di berbagai sesi.
Juga dikenal sebagai Markgatcha/memos
- Stars
- 10
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- —
- Commit terakhir
- 11 Nov 2026
- Lisensi
- MIT
Apa itu MemOS MCP?
Menyediakan layer memori berbasis SQLite yang bersifat local-first dan persistent agar AI agent dapat menyimpan serta mengingat informasi di berbagai sesi.
Ringkasan dibuat dari README proyek
Tentang MemOS MCP server
MemOS menyediakan layer memori local-first yang dirancang agar AI agent dapat mempertahankan informasi secara persistent di berbagai sesi yang berbeda. Sistem ini berfungsi sebagai satu file database SQLite yang disimpan di hardware Anda sendiri, memastikan data Anda tetap berada di bawah kendali Anda tanpa memerlukan layanan cloud atau API key eksternal. Setup ini sangat ideal bagi developer yang menggunakan tool seperti Claude Code, Cursor, Codex, atau berbagai MCP client yang perlu mengingat detail spesifik setelah restart.
Sistem ini menggunakan metode retrieval hybrid yang menggabungkan SQLite FTS5 dengan embeddings untuk menemukan informasi yang relevan. MemOS mendukung fitur memori tingkat lanjut seperti typed graph edges, temporal validity untuk data yang sensitif terhadap waktu, dan trust scores untuk mengelola asal-usul informasi. Developer dapat berinteraksi dengan memori melalui TypeScript SDK, command line interface, atau sebagai MCP server via stdio dan Streamable HTTP. Sistem ini dibangun agar bersifat portable, memungkinkan Anda untuk melakukan backup, enkripsi, atau ekspor memori Anda sebagai file JSON, Markdown, atau Obsidian.
Apa yang bisa Anda lakukan dengannya
- 1Mempertahankan memori agent jangka panjangBerikan asisten coding Anda kemampuan untuk mengingat preferensi pengguna dan detail proyek di antara sesi restart.
- 2Mengelola hubungan informasi yang kompleksGunakan memori berbasis graph untuk melacak bagaimana berbagai potongan informasi saling berhubungan, bertentangan, atau mendukung satu sama lain.
- 3Otomatisasi konfigurasi untuk AI toolsSiapkan konfigurasi MCP yang diperlukan untuk lingkungan pengembangan tertentu secara cepat.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Belum diverifikasi. Sebuah server memerlukan skor 80, tidak ada temuan serius, dan data yang cukup untuk kami periksa. Cara kerja checks · Yang perlu diperbaiki untuk menambah poin
- Source repository terhubung dan dapat dijangkaumarkgatcha/memos is public and reachablegithub.com/markgatcha/memos ↗Lolos
- Nama paket mencantumkan repositori ini sebagai sumbernyaTidak diperiksa
- Provenance build (atestasi Sigstore)Tidak diperiksa
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-11-11github.com/markgatcha/memos ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerTidak diperiksa
- Tidak ada advisory kritis pada paket atau dependensinyaTidak diperiksa
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote merespons handshake MCPTidak diperiksa
README
Lihat di GitHubStart here
npx -y @mem-os/sdk store "Prefers pnpm over npm" --db ./memos.db # store
npx -y @mem-os/sdk search "package manager" --db ./memos.db # recall
import { MemOS } from "@mem-os/sdk";
const memos = new MemOS(); // one SQLite file, zero config
await memos.store("Prefers pnpm over npm");
const hits = await memos.search("package manager");
Works with Claude Code · Cursor · Codex · Gemini CLI · Hermes · OpenClaw · Cline · Zed · Goose · Kilo · Ollama · LangChain · CrewAI · any MCP client. memos connect <harness> writes the config for you — see the harness matrix.
Why it is different: the memory is a single SQLite file on your disk (export it, back it up, delete it) · no network calls required · typed graph edges, temporal validity, trust scores, and provenance · MIT, no paid tier.
Reproducible retrieval
| Benchmark | Result |
|---|---|
| LongMemEval-S, full 500 | 99.4% Hit@20 · 98.3% evidence recall · 96.4% all-evidence@20 |
| ConvoMem, 387 scored | 91.0% Hit@10 · 89.4% evidence recall@10 |
| LoCoMo, full 1,986 | 65.0% Hit@10 · 59.8% evidence recall@10 |
Evidence-ID scored, no LLM judge. The LoCoMo conversations 0–1 subset (304 questions) reaches 79.8% Hit@10; the full-set number is the headline. Canonical source: website/data/benchmarks.json, generated from the raw artifacts in docs/artifacts/. Commands and caveats: benchmarks/README.md.
New here? Ingest your notes in 60 seconds — install, point at a folder, search it.
Installing? Agent-readable install contract · Harness matrix · MCP compatibility policy · per-harness snippets
Contributing? Good first issues · CONTRIBUTING.md · open benchmark leaderboard
Install
# TypeScript / Node.js
npm install @mem-os/sdk
# or run it without installing
npx -y @mem-os/sdk init --yes
# Python HTTP server
pip install mem-os-python
memos-server # http://localhost:7400
The npm package tracks tagged releases and can briefly lag main. The GitHub source is the canonical, always-current build (v1.6.27). For the latest source build, see Installation.
Connect a harness
npx -y @mem-os/sdk connect claude-code --write
npx -y @mem-os/sdk connect cursor --write
npx -y @mem-os/sdk connect codex --write
connect writes the real MCP config, keeps a backup, and prints the restart step. For every supported harness, see the harness matrix.
What you get
| Capability | What it means |
|---|---|
| One file you own | A single SQLite database; copy it, back it up, encrypt it, delete it |
| Hybrid retrieval | SQLite FTS5 + embeddings, fused and relevance-gated |
| Graph memory | Typed edges: relates_to, contradicts, supports, derived_from, temporal_precedes |
| Temporal validity | validFrom / validTo and point-in-time search |
| Trust and provenance | Source, trust score, version timeline, quarantine queue |
| Context packs | Token-budgeted memory bundles with citations |
| Consolidation | Dedupe, archive, summarize clusters, decay stale memories without losing history |
| MCP native | stdio and Streamable HTTP, with a published compatibility policy |
| Four surfaces | TypeScript SDK, CLI, MCP server, HTTP API — all on the same store |
| Adapters | OpenAI, Anthropic, Vercel, LangChain, CrewAI, Ollama |
| Portability | Import ChatGPT/Claude memory, export JSON/Markdown/Obsidian, backup/restore |
| Image memory | Captions plus optional CLIP pixel search |
Documentation
| I want to… | Read |
|---|---|
| Install in five minutes | Installation |
| Point it at my notes | Ingest your notes |
| Connect my coding agent | Harness matrix |
| Understand nodes, trust, time, packs | Memory model |
| Look up a command, tool, or route | CLI · MCP tools · HTTP API |
| Operate a store | Security model · Operations |
| See benchmark details | Results in plain English |
| Understand the architecture | ARCHITECTURE.md |
| See what is planned | ROADMAP.md |
Benchmarks
Retrieval-only, evidence-ID scored, no reader model and no LLM judge:
| Benchmark | Result |
|---|---|
| LongMemEval-S, full 500 | 99.4% Hit@20 · 96.4% all-evidence@20 |
| ConvoMem, 387 scored | 91.0% Hit@10 · 89.4% evidence recall@10 |
| LoCoMo, full 1,986 | 65.0% Hit@10 · 59.8% evidence recall@10 |
End-to-end is reported separately: 78% on a 50-question LongMemEval-S sample, self-judged with the same model. It is not comparable to vendor numbers produced with a gpt-4o judge.
The full methodology, per-category breakdowns, and the reproducible leaderboard live in Benchmark Results and benchmarks/README.md. Raw artifacts are committed under docs/artifacts/.
Part of the AI Trio
| Project | Role |
|---|---|
| universal-mcp-toolkit | MCP transport, server registry, and tool routing |
| memos | Graph-based persistent memory across sessions |
| llm-guardian | Token folding, budgets, and provider proxies |
Each project works standalone. The integrations are optional: umt link memos exposes this store as an MCP server, and Guardian can inject a MemOS context pack when MEMOS_NAMESPACE is set. Nothing here requires the other two.
Contributing
License
MIT — use it anywhere, for any purpose, no attribution required.
Pertanyaan tentang MemOS MCP
Bagaimana memori disimpan?
Memori disimpan dalam satu file SQLite di disk lokal Anda, sehingga Anda dapat melakukan backup, ekspor, atau menghapusnya dengan mudah.
Apakah saya bisa menggunakannya dengan Claude Code atau Cursor?
Ya, ini kompatibel dengan banyak AI client termasuk Claude Code, Cursor, Codex, dan lainnya melalui command connect.