cfabric-mcp
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Overview
Context-Fabric brings corpus analysis into the AI era. Built on the proven Text-Fabric data model, it introduces a memory-mapped architecture enabling parallel processing for production deployments—REST APIs, multi-worker services, and AI agent tools via MCP.
Built for Production — Memory-mapped arrays enable true parallelization. Multiple workers share data instead of duplicating it.
AI-Native — MCP server exposes corpus operations to Claude, GPT, and other LLM-powered tools.
Powerful Data Model — Standoff annotation, graph traversal, pattern search, and arbitrary feature annotations.
Dramatic Efficiency — on BHSA, ~477x faster loads and ~27x less resident memory than Text-Fabric, with per-call latency that beats it on every probe.
Related MCP server: MCP Server
MCP Server for AI Agents
Context-Fabric includes cfabric-mcp, a Model Context Protocol server that exposes corpus operations to AI agents:
# Start the MCP server
cfabric-mcp --corpus /path/to/bhsa
# Or with SSE transport for remote clients
cfabric-mcp --corpus /path/to/bhsa --sse 8000The server provides 10 tools for discovery, search, and data access—designed for iterative, token-efficient agent workflows.
CACCHT Explorer
CACCHT Explorer is a program for reading, searching and comparing corpora side by side (BHSA, Samaritan Pentateuch, Dead Sea Scrolls, …), built on Context-Fabric. It runs on your own computer and works offline. It has five interfaces (Parallel, Panes, Reader, Interlinear, Concordance), a lexicon, optional BDB and the JPS 1917 translation, and lets Claude or ChatGPT propose searches.
Standalone program (no Python needed): for Windows, macOS and Linux, under Releases (the release marked Latest).
With pip (Python 3.13 or newer):
pip install "cfabric-browser[window]" caccht-explorer download bhsa sp dss # get the corpora, once caccht-explorer # start itOr with the core and the MCP server in one go:
pip install "context-fabric[explorer,mcp]". From context-fabric 0.6.0 on, the core is the Rust one, which searches several times faster.
→ Guide to CACCHT Explorer · Explorer README (options, API, development)
Memory Efficiency
Text-Fabric loads entire corpora into memory—effective for single-user research, but each parallel worker duplicates that memory footprint. Context-Fabric keeps the corpus memory-mapped, so resident memory stays low and multiple workers share the same on-disk pages instead of duplicating the corpus in RAM.
On BHSA (1.4M nodes, 109 features), resident memory after load is 236 MB versus Text-Fabric's 6.4 GB — about 27x less in a single process, with the gap widening across parallel workers because the mmap'd pages are shared.
Installation
# Core library
pip install context-fabric
# With MCP server
pip install context-fabric[mcp]Quick Start
from cfabric import Fabric
# Load a corpus
CF = Fabric(locations='path/to/corpus')
api = CF.load('feature1 feature2')
# Navigate nodes
for node in api.N.walk():
print(api.F.feature1.v(node))
# Traverse structure
embedders = api.L.u(node) # nodes containing this node
embedded = api.L.d(node) # nodes within this node
# Search patterns
results = api.S.search('''
clause
phrase function=Pred
word sp=verb
''')Core API
API | Purpose |
N | Walk nodes in canonical order |
F | Access node features |
E | Access edge features |
L | Navigate locality (up/down the hierarchy) |
T | Retrieve text representations |
S | Search with structural templates |
Performance
Context-Fabric trades one-time compilation cost for dramatic runtime efficiency. Compile once, benefit forever.
Measured on BHSA against Text-Fabric 13.0.19 (idle machine, 2026-06-10):
Metric | Text-Fabric | Context-Fabric | Improvement |
Load time | 8.6 s | 0.018 s | ~477x faster |
Resident memory | 6.4 GB | 236 MB | ~27x less |
Compile time | ~8 s | ~57 s | one-time cost |
Per-call latency beats Text-Fabric on every probe (e.g. L.d 0.75 µs vs 4.36 µs, T.text 7.1 µs vs 21.0 µs), and all 34 ETCBC reference queries return Text-Fabric counts in <= Text-Fabric wall time. Full numbers and the per-call table are in the core README and libs/benchmarks/baselines/cf_0.6.0_record.json.
Run benchmarks yourself:
pip install context-fabric[benchmarks]
python -m cfabric_benchmarks.perf_gate --engine cf --assertPackages
Package | Description |
Core graph engine | |
MCP server for AI agents | |
CACCHT Explorer: reading, searching and comparing corpora | |
Performance benchmarking suite |
Links
Citation
If you use Context-Fabric in your research, please cite:
Kingham, Cody. "Carrying Text-Fabric Forward: Context-Fabric and the Scalable Corpus Ecosystem." January 2026.
Authors
Context-Fabric by Cody Kingham, built on Text-Fabric by Dirk Roorda.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Machine-native research commons for agent evidence, discovery, rooms, and bounded research quests.
Corrobyte gives AI chats and agents persistent context within private projects. Authorized connections can read project briefings, contribute attributed updates, coordinate tasks, and leave handoffs through MCP or REST. Owners manage project access through the portal. Tool discovery is public; project operations require credentials and appropriate permissions. Available in private beta.
License-checked research archive and technical-spec search for AI agents. Pay per call via x402.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables users to access, search, and analyze Spark Desktop meeting transcripts and emails through natural language via the Model Context Protocol.12-
- FlicenseNot gradedqualityDmaintenanceEnables natural-language querying of structured data via Model Context Protocol, allowing AI agents to answer questions without SQL or API knowledge.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search, retrieve, and summarize content from workplace tools including Google Drive, Notion, Slack, and Confluence through secure Model Context Protocol.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access file systems, fetch web content, query databases, and execute shell commands through the standardized Model Context Protocol.MIT