kontxt
kontxt is the open source, local-first memory layer that powers 4StaX. It’s an MIT-licensed MCP server you can clone, run, and inspect today — no account, no telemetry by default.4stax-hq/kontxt
View the source on GitHub
What it is
kontxt implements cross-session AI memory via the Model Context Protocol. It stores conversation-derived entries in a local SQLite vault, ranks them for relevance, and serves them to MCP-compatible clients like Cursor and Claude Desktop.What it is not
kontxt is not a hosted service. It runs on your machine. Your data stays on your machine. The 4StaX cloud (on the waitlist) will add sync and policy on top, but the core MCP tool surface remains identical.Repo layout
Tech stack
| Layer | Technology |
|---|---|
| Runtime | Node.js 18+ |
| Storage | SQLite via better-sqlite3 |
| Protocol | Model Context Protocol (MCP) |
| Embeddings | OpenAI (optional) or keyword fallback |
| Package manager | pnpm |
Open core model
Contributing
The repo is open for issues, bug reports, and pull requests. SeeCONTRIBUTING.md in the repository for guidelines.
