MemOS MCPサーバー
コミット 2026年11月11日AIエージェントがセッションをまたいで情報を保存・想起するための、ローカル優先で永続的なSQLiteベースのメモリレイヤーを提供します。
別名 Markgatcha/memos
- スター
- 10
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- —
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
MemOS MCPとは
AIエージェントがセッションをまたいで情報を保存・想起するための、ローカル優先で永続的なSQLiteベースのメモリレイヤーを提供します。
プロジェクトのREADMEから生成された概要
MemOS MCP server について
MemOSは、AIエージェントが異なるセッション間で永続的な情報を保持できるように設計された、ローカル優先のメモリレイヤーを提供します。データは自身のハードウェア上に保存される単一のSQLiteデータベースファイルとして機能するため、クラウドサービスや外部のAPIキーを必要とせず、データを完全にコントロール下に置くことができます。この構成は、再起動後に特定の詳細情報を想起する必要があるClaude Code、Cursor、Codex、または各種MCPクライアントを使用する開発者に最適です。
本システムは、SQLite FTS5とエンベディングを組み合わせたハイブリッド検索手法を使用して、関連情報を特定します。型付きのグラフエッジ、時間経過に敏感なデータのための時間的妥当性、情報の出所を管理するための信頼スコアなど、高度なメモリ機能をサポートしています。開発者は、TypeScript SDK、CLI、またはstdioおよびstreamable HTTPを介したMCP serverとしてメモリを操作できます。ポータビリティを重視して構築されており、メモリをJSON、Markdown、またはObsidianファイルとしてバックアップ、暗号化、エクスポートすることが可能です。
できること
- 1エージェントの長期メモリの維持コーディングアシスタントに、再起動をまたいでユーザーの好みやプロジェクトの詳細を記憶させる手段を提供します。
- 2複雑な情報の関係性の管理グラフベースのメモリを使用して、異なる情報がどのように関連し、矛盾し、あるいは互いを補完しているかを追跡します。
- 3AIツールの設定自動化特定の開発環境に必要なMCP設定を迅速にセットアップします。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
自動チェック
実行日 2026年11月14日完全なレポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能markgatcha/memos is public and reachablegithub.com/markgatcha/memos ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-11github.com/markgatcha/memos ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るStart 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.
MemOS MCPのよくある質問
メモリはどのように保存されますか?
メモリはローカルディスク上の単一のSQLiteファイルに保存されるため、バックアップ、エクスポート、削除が簡単に行えます。
Claude CodeやCursorで使用できますか?
はい、connectコマンドを介して、Claude Code、Cursor、Codexなど、多くのAIクライアントと互換性があります。