Tinycontext logo

Tinycontext

Local SQLite memory for MCP agents with hybrid retrieval, token-budgeted recall, and six memory management tools.

Install Tinycontext

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "tinycontext": {
      "command": "uvx",
      "args": [
        "tinysuite-context"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

tinycontext MCP server gives agents local persistent memory backed by SQLite, with embeddings and BM25 used together to rank recall results. It trims returned memories to a requested token budget and supports profile memories that accompany recalls. Agents can save, search, list, inspect, update, and delete memories through six MCP tools. Reach for it when memory should remain self-hosted and an agent needs concise context over stdio or Streamable HTTP.

Use cases

  • Save durable user preferences for later conversations
  • Recall relevant project facts within a token budget
  • Run agent memory without a hosted vector database
  • Manage stored memories through stable references
  • Host separate local stores for multiple users behind a trusted proxy

Key features

  • SQLite-backed local memory storage
  • Hybrid BM25 and dense retrieval
  • Token-budgeted recall
  • Local ONNX embeddings
  • Six MCP memory management tools
  • Near-duplicate detection and background re-embedding

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/28 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · tinysuite-context (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.

How Tinycontext works

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:

Terminal
pip install tinysuite-context

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

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Tinycontext

tinycontext is an MCP server that connects agents to a local SQLite memory store and provides tools to save, recall, list, get, update, and delete memories. It uses BM25 and dense retrieval to rank results, then limits recall to a requested token budget. Local ONNX embeddings are used by default.

Install it with `pip install tinysuite-context`, or configure an MCP client to launch `uvx --python 3.12 --from "tinysuite-context[server]" tinycontext`. The no-argument command starts the stdio MCP server and downloads the selected local embedding bundle on first launch.

Yes, tinycontext works with Cursor because it supports MCP clients through stdio or Streamable HTTP. Configure Cursor to launch the `tinycontext` command with the documented `uvx` arguments, or connect it to an HTTP deployment.

Yes, tinycontext stores memories and embeddings in a SQLite file you control and does not require a hosted account, API key, per-request billing, or separate vector database. Local ONNX embeddings and SQLite-based BM25 and similarity retrieval run as part of the local setup.

Run `tinycontext doctor` through the same `uvx` environment to inspect resolved configuration and storage readiness. The SQLite database is created lazily when the first save or recall operation requires it.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTinycontext AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tinycontext?style=directory)](https://allmcps.com/mcp/tinycontext)
HTML Embed
<a href="https://allmcps.com/mcp/tinycontext"><img src="https://allmcps.com/api/badge/tinycontext?style=directory" alt="Tinycontext on AllMCPs" /></a>