MCP Catalogs
Home

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.

developer-toolsfile-systemai-llmproductivity
4
Forks
1
Open issues
3 mo ago
Last commit
2d ago
Indexed

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:

you:Building personal knowledge bases from local documents and code repositories
you:Enabling AI assistants to access company documentation via MCP integration
you:Creating searchable archives of Git repositories with automatic sync

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 README
  • searchsearch("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

semantic-searchvector-searchobsidian-mcpfile-system-mcp

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 mcp

On Hacker News

Recent discussion from the developer community.

Compare context-harness with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.