Contextful logo

Contextful

Local MCP context management for indexed code search, evidence-backed memory, graph tracing, and token-budgeted context packs.

Install Contextful

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "contextful": {
      "command": "npx",
      "args": [
        "-y",
        "@inferensys/contextful"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @inferensys/contextful

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The Contextful MCP server indexes a local project and returns ranked, cited, token-budgeted context packs for coding agents. It combines SQLite FTS5 search with symbols, documentation, graph relationships, Git history, and evidence-backed memory. Use it when agents repeatedly reread project files, need dependency or change tracing, or must preserve lessons between sessions. It runs locally through an MCP stdio command and also provides the cxf CLI for setup, indexing, search, and memory operations.

Use cases

  • Index a codebase for ranked, cited context packs
  • Search project code, symbols, documentation, and memories
  • Trace dependencies between files, modules, and symbols
  • Analyze likely impact and Git history before changes
  • Store evidence-backed lessons across coding sessions

Key features

  • Token-budgeted cited context packs
  • SQLite FTS5 lexical search
  • Typed graph traversal and impact analysis
  • Evidence-backed memory ledger
  • Local daemon and workspace watcher
  • CLI and MCP interfaces

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/26 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @inferensys/contextful (npm)

Adoption & maintenance

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

GitHub stars7Stargazers on the source repository.
npm downloads313Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Contextful works

What Contextful does

The Contextful MCP server provides a local context layer for coding agents working in a project workspace. It indexes source files and related project knowledge, then retrieves compact evidence instead of requiring an agent to inspect many files independently. Results can include ranked code and documentation matches, symbols, graph relationships, Git history, and stored project lessons.

Its central output is a context pack: a cited, token-budgeted bundle of relevant evidence. The server also supports an evidence-backed memory ledger for decisions, lessons, and project facts. Memories must point to files, symbols, commits, or earlier context packs. If referenced evidence changes, the memory can be rejected or marked stale.

How it works

A Contextful MCP server uses SQLite as its default local store. SQLite FTS5 supplies lexical BM25 search, while typed graph tables represent nodes, edges, and their properties. A hot adjacency cache supports common graph relationships, and structural fingerprints provide an additional deterministic reranking signal.

Search can combine lexical matches with symbols, documentation, graph connections, and memory hits. The available agent operations include building a context pack, searching code and project knowledge, tracing a path between entities, analyzing likely impact, examining why a symbol or file changed, recalling memories, and writing a lesson with evidence references.

The local daemon or watcher handles indexing, rebuilds, and freshness. The MCP interface is intended for agents, while the CLI provides human-facing setup, inspection, searches, memory writes, and smoke tests.

Setup and configuration

Initialize a workspace with npx @inferensys/contextful init --workspace ., then run a search such as npx @inferensys/contextful search "where is user auth handled" --workspace . --budget 2000. The primary CLI binary is cxf; contextful is also available as an alias. Indexing can run once or with watch mode through cxf index --workspace <path> [--watch].

To expose the Contextful MCP server, use npx @inferensys/contextful server. An MCP client can launch it with the following configuration:

config.json
{
  "mcpServers": {
    "contextful": {
      "command": "npx",
      "args": ["-y", "@inferensys/contextful", "server"]
    }
  }
}

Run cxf init once per workspace. Initialization writes .contextful/AGENT_INSTRUCTIONS.md, which guides agents on context packs, narrower searches, and permitted memory writes. No environment variables are documented as required.

Tools and capabilities

The Contextful MCP server exposes these core tools:

  • context_pack(query, budget, scope) returns a ranked, cited bundle constrained by a token budget.
  • search_code(query, mode, filters) searches code, documentation, symbols, and memory.
  • trace_path(from, to, edge_types) traverses relationships among files, symbols, modules, and configuration.
  • impact_analysis(symbol_or_file) reports reverse dependencies and likely tests.
  • why_changed(symbol_or_file) combines current evidence with Git history.
  • recall_memory(query, scope) searches session and durable project lessons.
  • write_lesson(claim, evidence_refs, scope) stores an evidence-backed memory.

Limitations and notes

The project describes its current release as early alpha, so its API, features, and integrations may change. Version one is local-only: it does not call external embedding APIs or upload source code. It also does not edit source files, automatically fix code, or install dependencies inside the target workspace.

Memory references must use evidence returned by searches or context packs, such as file ranges, symbols, or pack identifiers. Invalid or outdated references are rejected or marked stale. Optional semantic-vector storage and larger-repository adjacency upgrades are described as future work rather than current default capabilities.

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 Contextful

Contextful is an MCP server that connects coding agents to a locally indexed project workspace. Its main tools create cited context packs, search code and documentation, trace graph paths, analyze impact, inspect Git changes, recall memories, and write evidence-backed lessons. It uses local storage rather than external embedding APIs or uploads.

Install and initialize it with `npx @inferensys/contextful init --workspace .`, then run `npx @inferensys/contextful server`. The MCP stdio configuration uses `npx -y @inferensys/contextful server`. You can also use the `cxf` command for initialization, indexing, searches, memory writes, and local tests.

Yes, Contextful lists Cursor among its supported coding tools. Configure the MCP client to launch `npx -y @inferensys/contextful server` over stdio, then initialize and index the target workspace so the agent can request context packs and other tools.

Contextful stores lessons, decisions, and project facts in an evidence-backed memory ledger. Each write requires references to files, symbols, commits, or prior context packs. When referenced evidence changes, the memory is rejected or marked stale rather than treated as permanently current.

Yes, version one is local-only. It does not upload source code or call external embedding APIs, and it does not edit source files, automatically fix code, or install dependencies inside the target workspace. SQLite is the default local store.

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 PreviewContextful AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/contextful?style=directory)](https://allmcps.com/mcp/contextful)
HTML Embed
<a href="https://allmcps.com/mcp/contextful"><img src="https://allmcps.com/api/badge/contextful?style=directory" alt="Contextful on AllMCPs" /></a>