statelessagent
by sgx-labs·★ 17·Score 43
SAME provides persistent memory for AI coding agents through MCP, enabling context retention across sessions.
Overview
SAME is a local-first MCP server that solves the problem of AI assistants forgetting context between sessions. It indexes markdown notes, surfaces relevant context automatically, and maintains decision history through SQLite storage. The server provides 19 MCP tools for search, memory management, and session handoffs, working with Claude Code, Cursor, Windsurf, and other MCP clients without requiring API keys or cloud dependencies.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose SAME when you need persistent memory across AI coding sessions for solo developers or small teams, especially when using multiple AI tools like Claude Code, Cursor, or Windsurf and want to maintain context without cloud dependencies.
When NOT to choose this
Don't choose SAME if you need cloud-based collaboration features, enterprise-grade authentication/SSO, or if you prefer a web-based knowledge management solution rather than local-first approach.
Tools this server exposes
12 tools extracted from the READMEsearch_notesSemantic search across your knowledge base
search_notes_filteredSearch with domain/tag/agent filters
get_noteRead full note content by path
save_noteCreate or update a note
save_decisionLog a structured project decision
create_handoffWrite a session handoff
get_session_contextPinned notes + latest handoff + git state
mem_consolidateConsolidate related notes via LLM
mem_healthVault health with trust analysis
mem_forgetSuppress a note from search results
mem_restoreUndo mem_forget (unsuppress a note)
index_statsIndex health and statistics
Comparable tools
Installation
# macOS / Linux
curl -fsSL https://statelessagent.com/install.sh | bash
# Windows (PowerShell)
irm https://statelessagent.com/install.ps1 | iexOr via npm (all platforms): npm install -g @sgx-labs/same
For Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"same": {
"command": "npx",
"args": ["-y", "@sgx-labs/same", "mcp", "--vault", "/path/to/your/notes"]
}
}
}FAQ
- Does SAME require internet connectivity or cloud services?
- No, SAME is fully local-first and runs without internet connectivity. All data stays on your machine.
- Which AI coding tools work with SAME?
- SAME integrates with Claude Code (recommended), Cursor, Windsurf, Codex CLI, Gemini CLI, and any MCP client. It provides 19 MCP tools for memory management.
Compare statelessagent with
Last updated · Auto-generated from public README + GitHub signals.