context-harness
by parallax-labs·★ 36·Score 44
Local-first context ingestion and retrieval framework with SQLite, embeddings, and MCP server for AI tools like Cursor and Claude.
Overview
Context Harness is a comprehensive framework designed for local-first context ingestion and retrieval. It supports multiple data sources including filesystems, Git repositories, S3 buckets, and custom Lua scripts. The system stores data locally in SQLite with optional embeddings for semantic search. It exposes functionality through a CLI tool and an MCP-compatible HTTP server, enabling AI tools like Cursor and Claude to access your context. The architecture supports keyword, semantic, and hybrid retrieval modes with various embedding options including local fastembed, Ollama, and OpenAI.
Try asking AI
After installing, here are 3 things you can ask your AI assistant:
When to choose this
Choose Context Harness when you need a local-first context ingestion system with support for multiple data sources and hybrid search capabilities for AI tools.
When NOT to choose this
Avoid this if you need cloud-based context storage, require real-time collaboration features, or prefer a fully-managed service rather than a self-hosted solution.
Tools this server exposes
8 tools extracted from the READMEsearchsearch("query string")Search indexed documents using keyword, semantic, or hybrid mode
getget("document id")Retrieve a specific document by its ID
sourcessources()List available connectors and their status
embedembed({action: "pending" | "rebuild"})Backfill missing embeddings or regenerate all embeddings
exportexport()Export index as JSON for static site search
agents_listagents_list()List all registered agents
agent_promptagent_prompt({name: "agent_name", prompt: "query"})Resolve an agent prompt with specific agent
listlist()List all registered tools
Comparable tools
Installation
Installation
**Pre-built binaries** (recommended):
# macOS (Apple Silicon)
curl -L https://github.com/parallax-labs/context-harness/releases/latest/download/ctx-macos-aarch64.tar.gz | tar xz
sudo mv ctx /usr/local/bin/
# Linux (x86_64)
curl -L https://github.com/parallax-labs/context-harness/releases/latest/download/ctx-linux-x86_64.tar.gz | tar xz
sudo mv ctx /usr/local/bin/**MCP Configuration for Claude Desktop:**
Add to claude_desktop_config.json:
{
"mcpServers": {
"context-harness": {
"url": "http://127.0.0.1:7331/mcp"
}
}
}**Start MCP Server:**
ctx serve mcpOn Hacker News
Recent discussion from the developer community.
- Story by __parallaxis · 2026-02-26
Compare context-harness with
Last updated · Auto-generated from public README + GitHub signals.