Local persistent memory for AI coding agents with provenance, change detection, and 19 MCP tools for session continuity and semantic search.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Statelessagent.
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.
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 init sets up hooks and MCP tools automatically. Your AI gets relevant context on every session start.
Your AI remembers everything -- Decisions, handoffs, and context survive across sessions. Close your terminal, switch projects, come back tomorrow. Nothing gets lost.
Memory integrity -- Tracks provenance (where notes came from), detects when source files change, and flags stale knowledge. Stale notes rank lower in search automatically. same health shows trust state across your vault.
Dual-layer memory -- Extracts atomic facts from your notes via LLM. Facts are independently searchable and boost source notes in search results. The right answer surfaces even when the fact is buried in an unrelated conversation.
Streamable HTTP transport -- 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.
Works with your tools -- 19 MCP tools for Claude Code, Cursor, Windsurf, or any MCP client. Search, save decisions, create handoffs without leaving your editor.
Safe for teams -- Multiple AI agents on the same codebase won't step on each other. File claims, push protection, and attribution built in.
Instant expertise -- 17 pre-built knowledge vaults with 870+ curated notes. One command to install. Your AI gets domain knowledge in seconds.
Connected knowledge -- See how decisions, files, and notes relate to each other. Ask "what depends on this?" and get real answers. Powered by SQLite.
SAME includes built-in PII scanning and push protection:
_PRIVATE/ is never indexed. research/ is indexed but never committed. Your notes, your rules.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 |
Add to your MCP config (.mcp.json, Cursor settings, etc.):
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.
| 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.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sgx-labs-statelessagent)<a href="https://allmcps.com/mcp/sgx-labs-statelessagent"><img src="https://allmcps.com/api/badge/sgx-labs-statelessagent?style=directory" alt="Statelessagent on AllMCPs" /></a>