Skip to content
MCP server
Registry

tinycontext MCP Server

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

tinycontext scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases, AI and memory. GitHub shows 10 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by tinysuitehqMITPython10 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 3 + 10 + 4 + 7 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "tinysuitehq-tinycontext": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "docker.io/marcellm01/tinycontext:v0.5.5"      ],      "env": {        "MCP_TRANSPORT": "",        "TINYCONTEXT_CONFIG_PATH": "",        "TINYCONTEXT_MEMORY_DB_PATH": "",        "TINYCONTEXT_MODELS_DIR": "",        "OTEL_SERVICE_NAME": "",        "OTEL_EXPORTER_OTLP_ENDPOINT": "",        "OTEL_EXPORTER_OTLP_PROTOCOL": "",        "OTEL_EXPORTER_OTLP_HEADERS": "YOUR_OTEL_EXPORTER_OTLP_HEADERS"      }    }  }}

Environment variables

NameRequiredNotes
MCP_TRANSPORTOptionalMCP transport to serve: stdio (default), sse, or streamable-http.
TINYCONTEXT_CONFIG_PATHOptionalPath to a context_config.json inside the container.
TINYCONTEXT_MEMORY_DB_PATHOptionalPath to the TinyContext SQLite database.
TINYCONTEXT_MODELS_DIROptionalDirectory used for downloaded ONNX embedding bundles.
OTEL_SERVICE_NAMEOptionalOpenTelemetry service name; defaults to tinycontext when telemetry is enabled.
OTEL_EXPORTER_OTLP_ENDPOINTOptionalOTLP collector endpoint for optional OpenTelemetry traces and metrics.
OTEL_EXPORTER_OTLP_PROTOCOLOptionalOTLP protocol: http/protobuf or grpc.
OTEL_EXPORTER_OTLP_HEADERSSecretOptionalOptional OTLP collector headers.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

TinyContext

Context that fits your local LLMs.

Part of TinySuite. Comes built in to TinyWebUI, and works with any MCP client.

Website PyPI version PyPI Downloads CI License: MIT Python Release Last Commit Docker Pulls Discord MCP Server FastAPI

Read the documentation → tinysuite.dev/docs/tinycontext


TinyContext is the memory layer of TinySuite, a set of small, local-first tools that make agents spend tokens on useful work rather than overhead. It stores concise memories and their embeddings in SQLite, ranks them with hybrid BM25 and dense retrieval, and returns only the context that fits the requested token budget, so an agent recalls a small, ranked set of memories instead of resending its history.

No hosted account. No giant context dumps. No required vector database. Against an agent that resends every stored memory, recall used 96.7% fewer tokens, with p95 latency around 12 ms at 20,000 memories (docs/benchmarks.md).

Highlights

  • No vendor in the loop. No account, no required API key, no per-request billing, no hosted memory service. Memories stay in a SQLite file you own.
  • Recall that fits the budget. Ranking and token trimming happen locally, so only the memories that fit reach the model.
  • No required vector database. Embeddings and BM25 live in the same SQLite row; sqlite-vec handles similarity.
  • Profile memories. Durable facts such as what to call the user ride along with every recall, under their own small budget.
  • Six small MCP tools. Save, recall (by meaning or most recent first), list, get, update and delete, with short stable refs for corrections.
  • Self-maintaining. Near-duplicates are skipped at save time, and changing the embedding model re-embeds the store in the background.
  • Multi-user when hosted. Behind a trusted proxy, each user gets a separate SQLite store, checked on every message.
  • Works where agents already work. MCP over stdio or Streamable HTTP, Python, FastAPI, or Docker. Local ONNX embeddings are the default.

Quick start

TierUse it whenEntry point
Python libraryYou are building an agent or Python applicationpip install tinysuite-context
One-command MCPAn MCP client should launch TinyContext for youuvx --python 3.12 --from "tinysuite-context[server]" tinycontext
DockerYou want persistent self-hosted storage and HTTP MCPdocker compose ... up -d (Docker)

With uv installed, add TinyContext to any stdio MCP client:

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

The no-argument tinycontext command runs stdio MCP. On its first launch, TinyContext downloads the selected ONNX embedding bundle into its per-user data directory. The database is created lazily on the first save or recall. Later launches reuse both local assets.

Check the resolved configuration and storage readiness with:

uvx --python 3.12 --from "tinysuite-context[server]" tinycontext doctor

From Python, pip install tinysuite-context and call save_memories and recall_memories directly (Python library). MCP, FastAPI and Docker are adapters around that same engine.

Documentation

The full reference lives at tinysuite.dev/docs/tinycontext:

TopicCovers
Quick startMCP over stdio
InstallationPython, uvx, Docker
Docker and HTTP MCPThe published image, local builds, the FastAPI profile
Hosted multi-userThe trusted proxy and per-user stores
Management viewsBrowsing and editing memories from a client UI
Python libraryThe engine, its config and results
MCP toolsThe six tools, profile memories, what recall returns
How recall worksHybrid ranking and the token budget
FastAPIThe HTTP API and its error codes
OpenTelemetryTraces and metrics
ConfigurationEvery setting and environment variable
BenchmarksSpeed, token savings and accuracy
Troubleshootingtinycontext doctor and common problems
Development and securityWorking from a checkout, entrypoints, release signing

In this repository: docs/benchmarks.md is the full benchmark write-up, with how it compares to published Mem0 and Zep numbers and the scripts to rerun every figure, and configs/context_config.json is an example configuration.

Development

git clone https://github.com/TinySuiteHQ/TinyContext
cd TinyContext
python -m venv .venv
source .venv/bin/activate
pip install -e ".[server]"
python -m unittest discover tests
python scripts/smoke_mcp_stdio.py

TinyContext supports Python 3.12 and newer. CI tests Python 3.12, 3.13, and 3.14 across Linux, macOS, and Windows.

Release images are scanned with Trivy, run as a non-root user, and signed with Cosign. SECURITY.md has the details and how to report a vulnerability; SUPPORT.md is the support policy.

Questions, ideas, and bug reports are welcome on Discord or in GitHub issues.

License

TinyContext is built and maintained from Vienna, Austria: useful software, small enough to understand, and maintained long enough to rely on. Release history is on the Releases page.

MIT. See LICENSE and NOTICE.

Frequently asked questions

What is tinycontext MCP Server?

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

How do I install tinycontext MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. tinycontext MCP Server runs locally from the Docker image docker.io/marcellm01/tinycontext:v0.5.5 with the command docker run -i --rm docker.io/marcellm01/tinycontext:v0.5.5.

Is tinycontext MCP Server free and open source?

Yes. tinycontext MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does tinycontext MCP Server support remote (HTTP) connections?

No remote endpoint is listed for tinycontext MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is tinycontext MCP Server's trust score calculated?

tinycontext MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server