# tinycontext [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/TinySuiteHQ/TinyContext  
**GitHub Stars:** 10  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tinycontext

## Description
Token-light local memory with SQLite hybrid retrieval for MCP agents.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "tinycontext": {
    "command": "uvx",
    "args": ["tinysuite-context"]
  }
}
```

## Documentation

## What tinycontext MCP server does

tinycontext provides a local memory layer for MCP agents and Python applications. It stores concise memories and their embeddings in SQLite, keeping the data in a file controlled by the operator rather than requiring a hosted account, API key, billing account, or separate vector database.

Recall combines BM25 text ranking with dense similarity search through `sqlite-vec`. Results are ranked locally and limited to the requested token budget, allowing an agent to retrieve a small set of relevant memories instead of resending its entire stored history. Profile memories can hold durable user facts, such as how to address someone, and are included with their own budget.

The package is part of TinySuite and is built into TinyWebUI. It can also be used independently with any MCP client or directly as a Python library.

## How it works

The MCP entry point runs over stdio by default. A Streamable HTTP deployment is available through the FastAPI and Docker options. On its first launch, the server downloads the selected local ONNX embedding bundle into its per-user data directory. It creates the SQLite database when the first save or recall operation needs it, then reuses the local model assets and database on later launches.

Saving includes near-duplicate detection, which skips memories that are too similar to existing entries. If the embedding model changes, the store can re-embed memories in the background. For hosted deployments behind a trusted proxy, each user can receive a separate SQLite store, with the user identity checked on every message.

## Setup and configuration

For a Python application, install the package with:

```bash
pip install tinysuite-context
```

To let an MCP client launch the stdio server with `uv`, use the `tinysuite-context[server]` extra:

```json
{
  "mcpServers": {
    "tinycontext": {
      "command": "uvx",
      "args": ["--python", "3.12", "--from", "tinysuite-context[server]", "tinycontext"]
    }
  }
}
```

The package supports Python 3.12 and newer. Run `tinycontext doctor` through the same `uvx` entry point to inspect resolved configuration and storage readiness. Docker provides a route to persistent self-hosted storage and HTTP MCP. The Python library, MCP interface, FastAPI service, and Docker setup use the same underlying engine.

## Tools and capabilities

The MCP interface exposes six small operations:

- Save memories for later retrieval.
- Recall memories by meaning or by recency, subject to a token budget.
- List stored memories.
- Retrieve an individual memory using its short stable reference.
- Update an existing memory.
- Delete a memory.

Short references support later corrections and management. The management workflow can also be used to browse and edit memories from a compatible client interface.

## Limitations and notes

Storage is local SQLite, so deployments need access to a writable data location and must account for the downloaded ONNX embedding assets. HTTP hosting and multi-user separation require the relevant FastAPI or Docker setup; multi-user operation is intended to sit behind a trusted proxy. The server is designed for concise, ranked recall rather than returning an unrestricted memory history. It is released under the MIT license.

_Full upstream README: https://allmcps.com/mcp/tinycontext/readme_

