Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Persistent memory for AI coding agents. Local-first SQLite + vector search. 17 MCP tools.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
VAULT_PATH必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"same": {
"command": "npx",
"args": [
"-y",
"@sgx-labs/same",
"mcp"
],
"env": {
"VAULT_PATH": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add same --env VAULT_PATH=your-value -- npx -y @sgx-labs/same mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"same": {
"command": "npx",
"args": [
"-y",
"@sgx-labs/same",
"mcp"
],
"env": {
"VAULT_PATH": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"same": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sgx-labs/same",
"mcp"
],
"env": {
"VAULT_PATH": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント sgx-labs で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:VAULT_PATH
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.12.1)がレジストリに届いたのは8 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Your AI forgets everything between sessions. SAME fixes that.
SAME gives every AI coding tool persistent memory. Claude Code, Cursor, Windsurf, Codex CLI, Gemini CLI — one memory layer that works everywhere. It indexes your markdown notes, surfaces relevant context automatically, and records decisions and handoffs so your AI picks up where it left off.
One binary. Fully local. No cloud. No telemetry. Mac, Linux, Windows, Raspberry Pi.
# macOS / Linux
curl -fsSL https://statelessagent.com/install.sh | bash
irm https://statelessagent.com/install.ps1 | iex
Or via npm (all platforms): npm install -g @sgx-labs/same
Installed via npm? Update with npx same@latest or npm update -g @sgx-labs/same.
same demo
Indexing 5 sample notes...
Searching: "authentication decision"
Asking: "what did we decide about authentication?"
Based on your notes, you decided to use JWT with refresh tokens (decisions/auth-strategy.md). The API middleware validates tokens at the gateway level (notes/api-security.md).
No accounts. No API keys. Everything runs locally.
# 1. Point SAME at your project
cd ~/my-project && same init
same search "authentication decision"
same init sets up hooks and MCP tools automatically. Your AI gets relevant context on every session start.
same health shows trust state across your vault.same web --mcp enables an HTTP MCP endpoint with Bearer token auth. Connect from Open WebUI, LobeChat, or any HTTP MCP client — no stdio required.SAME includes built-in PII scanning and push protection:
_PRIVATE/ is never indexed. research/ is indexed but never committed. Your notes, your rules.same guard settings set push-protect on # enable push protection
same guard scan # run PII scan manually
Your Notes (.md) --> Embeddings --> SQLite --> Your AI Tool
(local or (search (Claude Code, cloud) + rank) Cursor, etc.)
Your markdown notes get embedded and stored in SQLite. When your AI starts a session, SAME surfaces relevant context via hooks or MCP. Decisions get extracted. Handoffs get generated. The next session picks up where the last one stopped.
No Ollama? No problem. SAME runs with zero external dependencies using keyword search (SQLite FTS5). Add Ollama later for semantic search -- same reindex upgrades instantly.
| Without SAME | With SAME |
|---|---|
| Re-explain everything each session | AI picks up where you left off |
| "Didn't we decide to use JWT?" | Decision surfaces automatically |
| "Is this note still accurate?" | Trust state flags stale knowledge |
| Close terminal = context lost | Handoff recovers the session |
| Copy-paste notes into chat | same ask with source citations |
| Context compacted mid-task | Pinned notes survive compaction |
| Metric | Value |
|---|---|
| Recall@5 | 100% keyword, 84% semantic on internal eval (68 cases). Held-out: 90% Recall@5 on 30 blind cases (see eval/METHODOLOGY.md) |
| MRR | 0.65 keyword, 0.62 semantic |
| Prompt overhead | <200ms |
| Binary size | ~14MB |
| Setup time | Under 2 minutes |
same init # installs 6 hooks + MCP automatically
Add to your MCP config (.mcp.json, Cursor settings, etc.):
{
"mcpServers": { "same": { "command": "npx", "args": ["-y", "@sgx-labs/same", "mcp", "--vault", "/path/to/your/notes"] } } }
19 MCP tools available instantly. Works without Ollama (keyword fallback).
Switch between Claude Code and Cursor without losing context. Your memory travels with you.
Claude Code gets full automatic handoffs via hooks. Cursor, Windsurf, Codex CLI, Gemini CLI get full MCP tool access (search, save, decisions, graph) but handoffs need to be triggered manually. We're working on automatic handoff support for more editors.
| Tool | What it does |
|---|---|
search_notes | Semantic search across your knowledge base |
search_notes_filtered | Search with domain/tag/agent filters |
search_across_vaults | Federated search across multiple vaults |
get_note | Read full note content by path |
find_similar_notes | Discover related notes |
get_session_context | Pinned notes + latest handoff + git state |
recent_activity | Recently modified notes |
save_note | Create or update a note |
save_decision | Log a structured project decision |
create_handoff | Write a session handoff |
reindex | Re-scan and re-index the vault |
index_stats | Index health and statistics |
mem_consolidate | Consolidate related notes via LLM |
mem_brief | Generate orientation briefing |
mem_health | Vault health with trust analysis |
mem_forget | Suppress a note from search results |
mem_restore | Undo mem_forget (unsuppress a note) |
mem_list_suppressed | List suppressed notes |
save_kaizen | Log improvement items with provenance |
Pre-built knowledge vaults. One command to install.
same seed list # browse available seeds
same seed install claude-code-power-user # install one
| Seed | Notes | What you get |
|---|---|---|
same-getting-started | 18 | Learn SAME itself — the universal on-ramp |
claude-code-power-user | 50 | Claude Code workflows and operational patterns |
ai-agent-architecture | 56 | Agent design, orchestration, memory strategies |
api-design-patterns | 56 | REST, GraphQL, auth, rate limiting, and more |
typescript-fullstack-patterns | 55 | Full-stack TypeScript patterns and best practices |
engineering-management-playbook | 59 | Engineering leadership and team management |
personal-productivity-os | 117 | GTD, time blocking, habit systems |
security-audit-framework | 61 | Security review checklists and frameworks |
Plus 9 more. Browse all 17 seeds on GitHub.
All data stays on your machine. SAME creates a three-tier privacy structure:
| Directory | Indexed | Committed | Use for |
|---|---|---|---|
| Your notes | Yes | Your choice | Docs, decisions, research |
_PRIVATE/ | No | No | API keys, credentials |
research/ | Yes | No | Strategy, analysis |
No telemetry. No cloud. Path traversal blocked. Config files written with owner-only permissions.
Full CLI Reference
| Command | Description | |||
|---|---|---|---|---|
same init | Set up SAME for your project | |||
same demo | See SAME in action with sample notes | |||
same tutorial | 7 hands-on lessons | |||
same ask | Ask a question, get cited answers | |||
same search | Search your notes | |||
same search --all | Search across all vaults | |||
same status | See what SAME is tracking | |||
same doctor | Run diagnostic checks | |||
same claim --agent | Advisory file ownership for multi-agent | |||
same pin | Always include a note in sessions | |||
same graph stats | Knowledge graph diagnostics | |||
same web | Local web dashboard | |||
same seed list | Browse available seed vaults | |||
same seed install | Install a seed vault | |||
| `same vault list\ | add\ | remove\ | default` | Manage multiple vaults |
same guard settings set push-protect on | Enable push protection | |||
same consolidate | Merge related notes into knowledge summaries | |||
same brief | AI-generated orientation briefing | |||
same health | Vault health score with trust/provenance analysis | |||
same stale | List all stale notes in your vault | |||
same search --trust stale | Filter search by trust state | |||
same search --type decision | Filter search by content type | |||
same ignore | View/manage .sameignore patterns | |||
same facts | View, search, and manage extracted facts | |||
same config set | Set config values from CLI | |||
same brief --no-llm | Structured briefing without LLM | |||
same tips | Best practices for vault hygiene and security | |||
same reindex [--force] | Rebuild search index | |||
same repair | Back up and rebuild database | |||
same update | Update to latest version | |||
| `same completion [bash\ | zsh\ | fish]` | Shell completions |
Configuration
SAME uses .same/config.toml, generated by same init:
[vault]
path = "/home/user/notes" handoff_dir = "sessions" decision_log = "decisions.md"
[embedding] provider = "ollama" # "ollama", "openai", "openai-compatible", or "none" model = "nomic-embed-text"
[memory] max_token_budget = 800 max_results = 2
Supported embedding models: nomic-embed-text (default), snowflake-arctic-embed2, mxbai-embed-large, all-minilm, text-embedding-3-small (OpenAI), and more.
Configuration priority (hi
冒頭だけを表示しています。続きはリポジトリで読めます