Skip to main content

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

kontxt/
├── .kontxt/vault.db        # SQLite vault (created on init)
├── packages/core/          # Shared types and utilities
├── packages/cli/           # init, add, search, list commands
└── packages/mcp-server/    # MCP server — tools to vault

Tech stack

LayerTechnology
RuntimeNode.js 18+
StorageSQLite via better-sqlite3
ProtocolModel Context Protocol (MCP)
EmbeddingsOpenAI (optional) or keyword fallback
Package managerpnpm

Open core model

kontxt (MIT, open source)
    └── Local SQLite vault
    └── MCP server
    └── CLI

4StaX cloud (coming)
    └── Same MCP tool surface
    └── Hosted sync
    └── Organization policy
    └── Audit exports
Integrations built on kontxt will work with 4StaX cloud without modification when it ships.

Contributing

The repo is open for issues, bug reports, and pull requests. See CONTRIBUTING.md in the repository for guidelines.