
Knowledge Fabric
io.github.invarcorePublished by GitHub account invarcorev0.1.1Updated Nov 7, 2026
Multi-tenant hybrid RAG & evidence verification MCP server enforcing PostgreSQL RLS.
The publisher's own server: Fabric
Overview
Local MCP server that gives an assistant hybrid RAG retrieval over documents stored in PostgreSQL with pgvector, returning cited evidence packages.
- What you can do
- Retrieve evidence with hybrid RRF, lexical or vector search, with citations, scores and per-leg health
- Fetch a specific cited chunk or a full document by ID or source URI, scoped to a tenant
- Explain retrieval diagnostics such as lexical ranks, vector distances, latencies and fusion scores
- Inspect index health, source types and document counts, and audit database consistency
- Run a connectivity and embedding-provider health check
- When to use it
- Useful when an assistant needs grounded, citable answers over an existing enterprise document or codebase corpus that already lives in PostgreSQL, especially where tenant separation and audit trails matter.
- Requirements
- Runs as a local process via uvx or Docker. Needs a reachable PostgreSQL database with pgvector and the project's schema, configured through DATABASE_URL, plus KF_DEFAULT_TENANT. An embedding provider must be chosen: local Ollama or sentence-transformers by default, or OpenAI or Cohere with OPENAI_API_KEY or COHERE_API_KEY. Documents must be ingested beforehand.
Installation
In SourceWeft
- Open Knowledge Fabric in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[Knowledge Fabric & Intent Fabric]
Knowledge Fabric
Vendor-neutral, governance-first evidence retrieval for AI systems.
Native PostgreSQL + pgvector • Hybrid RRF Fusion • Cross-Encoder Reranking • Dual-Mode Multi-Tenancy • MCP-Native
[CI Status] [Invarcore Website] [Coverage: 94%] [Release] [Open in GitHub Codespaces] [License] [MCP Native] [Docker Ready]
⚡ 30-Second Quickstart
1. Instant Cloud Sandbox (Zero Local Setup)
Click to launch a fully configured browser VS Code workspace with PostgreSQL + pgvector and Tika running automatically:
2. Connect to Claude Desktop or Cursor (MCP)
Give Claude Desktop or Cursor private, local long-term memory over your enterprise codebase and documents. Add this to your claude_desktop_config.json:
3. Run Locally with Docker Compose (60 Seconds)
Why Knowledge Fabric?
The $100k/Year Dedicated Vector DB Trap vs. The PostgreSQL Reality
Most enterprise AI initiatives stall not because of model capability, but because of operational sprawl, data leakage, and ungrounded retrieval. Traditional architectures force engineering teams to introduce dedicated vector databases (Pinecone, Qdrant, Weaviate), creating a second source of truth, new vendor contracts, complex VPC peering, and $50k–$100k/year in recurring cloud spend.
Knowledge Fabric eliminates this entire infrastructure tier by running directly on your existing PostgreSQL database with pgvector HNSW indexes and native full-text search (tsvector), combined with Reciprocal Rank Fusion (RRF):
Industry Decision & Adoption Matrix
How actual CTOs deploy Knowledge Fabric across enterprise verticals:
Architecture
Quickstart & Deployment Options
Choose the consumption pathway that fits your architecture:
⚡ Pathway 1: Python Developers & MCP Users
If you are importing the retrieval engine into Python code, custom agents, or running MCP:
🐳 Pathway 2: Turnkey Evaluation (Docker Compose)
Spin up the entire multi-tenant stack (PostgreSQL + pgvector, Apache Tika, and Admin UI) in seconds:
☸️ Pathway 3: Kubernetes Deployment (Planned)
Helm chart packaging is planned. For now, deploy the Docker image directly to your cluster using standard Kubernetes Deployment + Service manifests, pointing to your external RDS / Cloud SQL instance.
[!NOTE] The
helm install oci://ghcr.io/invarcore/charts/knowledge-fabriccommand shown in earlier versions targets a Helm OCI registry that has not yet been published. Watch the releases page for the first official Helm chart release.
🛠️ Pathway 4: Local Contributor Setup
Model Provider Strategy: Zero Lock-In
Configure your preferred embedding and reranking providers with environment variables or config/settings.yaml:
Embedding Providers
Reranking Providers
Dual-Mode Multi-Tenancy
Knowledge Fabric provides two isolation layers to accommodate both lightweight development and regulated enterprise environments:
Mode 1: Application-Level Filtering (Default)
Every query and ingestion specifies tenant_id:
SQL queries automatically include WHERE d.tenant_id = %s. Requires no special database privileges.
Mode 2: PostgreSQL Row-Level Security (RLS)
For HIPAA, SOC2, or government environments requiring database-enforced isolation:
PostgreSQL kernel rejects any access that does not set session variable app.tenant_id:
Even if application code contains a bug or omission, cross-tenant data leakage is physically impossible.
Model Context Protocol (MCP) Tools
Knowledge Fabric exposes standard MCP tools for LLMs, desktop assistants, and workflow runners:
Adding to Claude Desktop / Cursor
Add to your claude_desktop_config.json:
Retrieval Benchmark
Run the included benchmark evaluation suite to compare retrieval accuracy across strategies:
[!NOTE] The numbers below are illustrative — generated by running
python benchmarks/evaluate_retrieval.pyon a small synthetic operational corpus. Run the command yourself on your own corpus to produce numbers that reflect your data and query distribution. Results will differ by domain, chunk size, and embedding model.
SaaS Source Connectors
Ingest content directly from enterprise platforms with the unified knowledge-fabric-sync CLI:
Large-Scale Vector Performance & Pluggable Backends
Knowledge Fabric is built to grow with your infrastructure from early prototyping to 100M+ vectors:
- HNSW Indexing (Migration 005): Upgrade from IVFFlat to HNSW for 10x higher QPS and sub-10ms latency:
- Declarative Tenant Partitioning: Partition the
chunkstable bytenant_id. Queries for a specific tenant scan only that tenant's dedicated partition index, enabling PostgreSQL to support tens of millions of vectors with partition pruning. - Pluggable Vector Store Protocol: For ultra-large enterprise clusters with existing dedicated vector infrastructure, plug in Qdrant with zero application changes:
Visual Admin & Governance UI
Knowledge Fabric includes a visual management console with zero Node/NPM dependencies:
Features:
- 🛡️ Human-in-the-Loop Approval Queue: Authorize or reject pending action plans with audit comments.
- 🔍 Interactive Retrieval Playground: Inspect side-by-side BM25, Cosine, RRF, and Cross-Encoder score distributions and citations.
- 📜 Live Audit Trail: Chronological event viewer tracking queries, latencies, and security events.
- ⚙️ Policy Engine Sandbox: Test proposed agent action strings against active YAML rules with instant match highlighting.
End-to-End Enterprise Example
See examples/04-end-to-end-with-intent:
A complete demonstration ingesting enterprise policy documents, querying hybrid evidence with multi-tenant partitioning, planning safe actions with Intent Fabric, evaluating YAML policy rules, and emitting an audit-ready approval package.
🧪 Testing & Verification
Knowledge Fabric enforces rigorous test coverage ($\ge 90%$), strict multi-tenant isolation, and a zero-live-HTTP CI architecture:
- Tier 1 (Golden Corpus Fixtures): NIST Special Publication 800-53 Rev 5 control catalog fixtures checked into
tests/fixtures/corpora/for deterministic, offline, sub-second CI validation. - Tier 2 (Opt-in Live Harness): Live cloud retrieval verification against OpenRouter (
benchmarks/live_retrieval_smoke_test.py --openrouter).
1. Run Complete Test Suite with Coverage Gate
2. End-to-End Live Verification Smoke Test
Run the zero-cost hermetic verification pipeline covering chunking, in-memory multi-tenant storage, hybrid RRF retrieval, cryptographic provenance (chunk hashes, package digest, HMAC-SHA256 signature), and MCP tools:
3. Containerized Verification with Docker Compose
Run the entire test suite and smoke test inside an isolated container:
Contributing
We welcome community contributions! Please see CONTRIBUTING.md for development setup, how to add new embedding/reranking providers, and coding standards.
Security
Please report security issues responsibly. See SECURITY.md for our vulnerability disclosure policy.
🏛️ Invarcore Verification Fabric
This engine is part of the Invarcore enterprise verification fabric. Invarcore develops mathematical invariants, cryptographic policy contracts, and execution runtimes for autonomous AI systems.
- Official Website & Architecture: https://invarcore.com
- Technical Whitepapers & Invariant Specs: https://invarcore.com/#whitepapers
- GitHub Organization: https://github.com/invarcore
- Security & Vulnerability Disclosure: [email protected]
License
Licensed under the Apache License, Version 2.0.
Source: README.md at commit fdf5112
Tools
0Version history
1- v0.1.1LatestNov 7, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Fabric integrations
Fabric
so.fabricOfficial publisher
Fabric's hosted MCP server, published by fabric.so; credential required; Streamable HTTP.

MCP Fabric (Minecraft)
Published by GitHub account denfry
See and play Minecraft: Java Edition through the mcpfabric mod (Fabric and NeoForge).

Unifi Fabric Mcp Server
Published by GitHub account swkstudios
MCP server for UniFi Fabric: Network, Protect, Site Manager, InnerSpace, Carrier Fabric, Mobility.

Neblex Integration Fabric
Published by GitHub account neblexhq
Remote Neblex Integration Fabric server that lets an assistant build, test and publish iPaaS flows, apps, forms and AI agents, in the cloud or on-prem.

Fabric Verify
ai.augmentev
Signs records of what an AI agent did into a tamper-evident public log and returns offline-checkable proofs.