Meshctx Ctxkit
FreeNot checkedLocal-first memory + output verification for AI agents. Zero runtime dependencies, works offline.
About
Local-first memory + output verification for AI agents. Zero runtime dependencies, works offline.
README
Local-first memory + verification for AI agents. Runs fully offline. Zero login. Zero API spend. Zero dependencies.
Python 3.10+ MCP License: AGPL-3.0 Tests
The two problems every agent user hits
1. Your agent forgets everything. You tell Claude or Cursor something on Monday. On Tuesday it has no idea. The usual fix is a cloud memory service — which means shipping your project notes, client names, and internal decisions to someone else's server, behind a login, for a monthly fee.
2. Your agent lies with total confidence.
A single model will state 3 × 7 = 25, invent a URL, and tell you a deadline is
"100% guaranteed." It never hesitates. You find out later.
ctxkit fixes both — on your own machine, with no network at all.
What you get
🧠 ctx_remember / ctx_recall — memory that survives restarts
Append-only JSONL on local disk, indexed with BM25 for instant retrieval. No embeddings, no vector database, no model download, no GPU, no account.
- Works in a clean venv with zero pip dependencies
- Handles Chinese/Japanese/Korean text (per-character tokenisation)
- Crash-safe: a torn write never corrupts the store
- You can
cat ~/.ctxkit/memory.jsonland read your own memory — it's just text - Deleting is real deleting:
ctx_forgettombstones and compacts
🔍 ctx_verify_text — catch bad output before it ships
Free, offline, pure stdlib. Recomputes everything a model asserted:
| Check | Catches |
|---|---|
arithmetic |
250 * 4 = 900 → reports computed 1000 |
percent |
20% of 150 is 45 → reports computed 30 |
date |
"February 30, 2025", years >2 ahead |
absolute_claims |
100% guaranteed, never, risk-free, all users |
url_format |
malformed or suspicious links |
Verdict is clean or suspicious, with every failure itemised.
🔑 ctx_license — tier, expiry and usage
Shows what you're on, when it expires, and how many consensus calls you've used this month. Everything verifies offline — paying customers are never locked out because a licence server is down.
🎯 ctx_consensus — multi-model cross-check (paid tier)
Ask the same question to several models, extract each one's key claims, and score their agreement. Disagreements are listed per model, so you see exactly where the models disagree instead of a vague "the AI might be wrong."
This measures agreement, not correctness. Three models can agree and all be wrong. It narrows where to look; it does not establish truth.
Requires CTXKIT_API_KEY + CTXKIT_API_BASE. Nowhere near as scary as it
sounds — it's an OpenAI-compatible endpoint and works with any provider.
Pricing
Everything is free. Since 2026-11-03 there is no paywall.
ctx_consensus spends your API budget (you supply CTXKIT_API_KEY), not
ours, so charging for it would be charging for nothing. The only limit is a
local abuse guard to stop a runaway loop burning your API credit — you can
raise or remove it with CTXKIT_CONSENSUS_FREE_QUOTA.
See PRICING.md for the full reasoning.
---|---|---|
| ctx_remember / ctx_recall / ctx_forget | ✅ unlimited | ✅ |
| ctx_verify_text | ✅ unlimited | ✅ |
| ctx_stats / ctx_license | ✅ | ✅ |
| ctx_consensus | — | 300/mo |
| Bring your own model API key | — | ✅ |
| Runtime dependencies | zero | pyjwt[crypto], httpx |
| Support | community | best-effort, no SLA |
Not yet on sale. The paid tier exists in code but billing is not deployed
and has not passed its deployment checklist. See ../AUDIT_REMEDIATION.md.
Memory and verification are free forever and unlimited. They cost nothing to run — no server, no model calls — so charging for them would be charging for nothing. The paid tier is the only part that spends real money on model API calls, which is exactly what it's priced against.
Install
pip install meshctx-ctxkit
That's it. No extras needed for memory and verification — zero dependencies.
Only if you want the paid ctx_consensus feature:
pip install 'meshctx-ctxkit[license]' # licence verification
pip install 'meshctx-ctxkit[api]' # consensus (also pulls httpx)
Verify it works:
meshctx-ctxkit add "Stripe key rotated 3 May; old key revoked" --tag ops
meshctx-ctxkit search "stripe"
meshctx-ctxkit verify "Cost is 250 * 4 = 900 hours and it is 100% guaranteed"
Add to Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"ctxkit": {
"command": "meshctx-ctxkit",
"args": ["serve"]
}
}
}
Restart Claude Desktop. You'll see seven tools appear.
Add to Cursor / Cline / Windsurf / Zed
Same idea — point the MCP server config at:
command: ctxkit
args: ["serve"]
Any MCP-capable client works. The server speaks protocol 2024-11-05 over stdio.
Try it in 60 seconds
You: Remember that this client's invoice must go to [email protected],
never to the sales rep.
Claude: [calls ctx_remember] ✓ stored locally
--- restart Claude Desktop, new conversation ---
You: Where does the Acme invoice go?
Claude: [calls ctx_recall "acme invoice"]
→ "invoice must go to [email protected], never to the sales rep"
It goes to [email protected] — not the sales rep.
No cloud. No login. No subscription. It just remembered.
Configuration
| Variable | Default | Purpose |
|---|---|---|
CTXKIT_HOME |
~/.ctxkit |
Where memory.jsonl lives |
CTXKIT_API_KEY |
(unset) | Enables ctx_consensus |
CTXKIT_API_BASE |
(unset) | OpenAI-compatible base URL |
CTXKIT_MODELS |
3 defaults | Comma-separated model list for consensus |
CTXKIT_LICENSE |
~/.ctxkit/license.key |
Pro/Team licence token |
CLI reference
meshctx-ctxkit add "text" [--tag t1 --tag t2] store a memory
meshctx-ctxkit search "query" [--limit 5] retrieve
meshctx-ctxkit stats count, tags, disk path
meshctx-ctxkit verify "text" offline sanity checks
meshctx-ctxkit license [--key TOKEN] show tier, expiry, usage
meshctx-ctxkit serve run the MCP server
Short alias: `mctxkit` is identical.
How it compares
| Cloud memory services | Vector-DB memory libs | ctxkit | |
|---|---|---|---|
| Data stays on your disk | ❌ | ✅ | ✅ |
| Works with no network | ❌ | depends | ✅ |
| Needs an account/login | ❌ usually yes | ❌ | ✅ no |
| pip dependencies | SDK required | heavy | 0 |
| Human-readable storage | ❌ | ❌ | ✅ JSONL |
| Built-in output verification | ❌ | ❌ | ✅ |
| Monthly cost | $10–30 | free | free forever |
Development
git clone https://github.com/LucyAndLuna2023/meshctx
cd meshctx
pip install -e ".[dev]"
PYTHONPATH=src pytest tests/ -q
60 tests: memory semantics, BM25 ranking, crash recovery, every verifier, consensus scoring, the full MCP protocol surface, and a real subprocess end-to-end session.
License
AGPL-3.0-or-later for open-source use. Commercial/enterprise licensing
available — see LICENSE.
The commercial tiers are what fund the free one. Pricing, and a plain-English
explanation of exactly what you get and don't, is in PRICING.md.
Honest limitations
- Retrieval is lexical (BM25), not semantic. "car" won't find "automobile." This is the deliberate price of needing zero dependencies and zero downloads.
ctx_verify_textflags suspicion, it does not prove truth. Clean output can still be wrong; it just contains no machine-checkable arithmetic, date, or absolute-claim errors.ctx_consensusmeasures agreement, not correctness. Three models can agree and all be wrong — especially on niche or recent facts. It's a smoke detector, not a fireproof wall.- Memory is local by design. There is no sync between machines. That's the point.
Install Meshctx Ctxkit in Claude Desktop, Claude Code & Cursor
unyly install meshctx-ctxkitInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add meshctx-ctxkit -- uvx meshctx-ctxkitStep-by-step: how to install Meshctx Ctxkit
FAQ
Is Meshctx Ctxkit MCP free?
Yes, Meshctx Ctxkit MCP is free — one-click install via Unyly at no cost.
Does Meshctx Ctxkit need an API key?
No, Meshctx Ctxkit runs without API keys or environment variables.
Is Meshctx Ctxkit hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Meshctx Ctxkit in Claude Desktop, Claude Code or Cursor?
Open Meshctx Ctxkit on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
by S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
by mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
by agbergsmannAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiCompare Meshctx Ctxkit with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
