Enterprise Internal Knowledge Base: Production Ready RAG + MCP logo

Enterprise Internal Knowledge Base: Production Ready RAG + MCP

Runs a cited RAG pipeline over Postgres and pgvector with MCP tools, reranking, tracing, and CI evaluation gates.

Install Enterprise Internal Knowledge Base: Production Ready RAG + MCP

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Enterprise Internal Knowledge Base: Production-Ready RAG + MCP, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Enterprise Internal Knowledge Base: Production-Ready RAG + MCP MCP server exposes a public Retrieval-Augmented Generation pipeline through FastMCP. It retrieves chunks from Postgres with pgvector, reranks them, generates answers with Claude Sonnet, and returns citations. The repository also includes structure-aware ingestion, Langfuse traces, and a DeepEval golden-set merge gate in GitHub Actions. Reach for it when you need a reproducible internal-knowledge RAG reference implementation rather than a hosted knowledge service.

Use cases

  • Evaluate RAG changes in CI before merging
  • Query public VA education manuals through MCP
  • Trace generated answers and retrieval with Langfuse
  • Test structure-aware document ingestion
  • Prototype a cited internal knowledge workflow

Key features

  • FastMCP stdio server
  • Postgres and pgvector retrieval
  • Structure-aware chunking
  • mxbai and FlashRank reranking
  • Langfuse tracing
  • DeepEval CI merge gate

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

5/5 checks healthy over the last 40d

How Enterprise Internal Knowledge Base: Production Ready RAG + MCP works

What Enterprise Internal Knowledge Base: Production-Ready RAG + MCP does

Enterprise Internal Knowledge Base: Production-Ready RAG + MCP provides a Retrieval-Augmented Generation pipeline over a public corpus of Veterans Affairs education manuals. The included dataset contains 238 documents and more than 9,000 chunks. A FastMCP server exposes the retrieval and generation flow to MCP clients, returning ranked chunks with citations.

The repository emphasizes operational checks around RAG quality. It includes a 110-question golden set, DeepEval scoring, Langfuse trace instrumentation, and a GitHub Actions workflow that blocks pull requests when defined retrieval or refusal metrics regress beyond configured thresholds. The sample implementation is intended to show how evaluation and observability fit around an MCP-accessible RAG system.

How it works

The ingestion path crawls KnowVA HTML and PDF content, applies source-specific normalization, preserves document structure during chunking, creates local 1024-dimensional embeddings with mxbai-embed-large, and stores the results in Postgres with pgvector. Chunk metadata can include headings, authority tier, access-control information, and content category. Contextual Retrieval enrichment through Anthropic's Batches API is available as an optional ingestion step.

For each query, the server searches pgvector for top-K candidates and applies either the mxbai reranker or FlashRank in fast evaluation mode. Claude Sonnet generates the answer, while Langfuse records a trace. The database also has a live GIN index for the content_tsv field, but query-time BM25 and reciprocal-rank fusion are not wired into the current search path.

Setup and configuration

The Enterprise Internal Knowledge Base: Production-Ready RAG + MCP MCP server runs locally with Docker, Python, and a Postgres/pgvector container. The documented quickstart starts the database with Docker Compose, creates a virtual environment, installs requirements, restores the supplied fixture dump, runs the MCP smoke test, and launches scripts/mcp_server.py over stdio.

Claude Desktop can start the server by pointing an MCP configuration entry at the Python script and its absolute path. The included fixture provides pre-embedded content, while the raw-corpus workflow runs crawling, metadata enrichment, preprocessing, chunking, embedding, and optional contextualization as separate, resume-safe scripts. The repository documents Postgres on port 5433.

Tools and capabilities

The FastMCP exposure includes:

  • query, for searching the indexed corpus and producing an answer through the RAG path.
  • document://{source_id}, a resource for retrieving a document by source identifier.
  • cite_from_chunks, a prompt for working with retrieved chunks and citations.

Evaluation can run in a fast mode using FlashRank and a fixture database. The CI workflow tests the golden set and applies thresholds to top-1, top-k, keyword recall, and the idk_rate metric. The full evaluation uses the mxbai reranker and reports faithfulness, answer relevance, context precision, context recall, and context relevance.

Limitations and notes

This implementation is a reference and demonstration rather than a complete multi-tenant production service. Each MCP tool accepts a typed auth_context parameter, but it is currently unused, so tenant-level access enforcement is not implemented. Ingestion is single-threaded; a distributed worker pool would be needed for higher-throughput production processing.

The hybrid-search index exists, but BM25 plus reciprocal-rank fusion remains a future addition. Cost and latency tuning, tenant access control, and related production concerns are discussed in the linked writeup rather than fully implemented here. The sample corpus is public VA education content, so teams must supply and process their own corpus for other domains.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Enterprise Internal Knowledge Base: Production Ready RAG + MCP

Enterprise Internal Knowledge Base: Production-Ready RAG + MCP is an MCP server that connects Claude-compatible MCP clients to a Postgres/pgvector RAG pipeline over Veterans Affairs education manuals. Its main tools are `query`, the `document://{source_id}` resource, and `cite_from_chunks`, with reranking, Claude Sonnet generation, and citations.

Install it by cloning the repository, starting Postgres and pgvector with Docker Compose, creating a Python virtual environment, installing `requirements.txt`, restoring the fixture dump, and running `scripts/mcp_server.py`. The README also provides a Claude Desktop configuration using the script's absolute path.

No, tenant access enforcement is not implemented in the repository. The MCP tools include a typed `auth_context` parameter that marks the intended SSO and ACL integration point, but it is currently unused.

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 PreviewEnterprise Internal Knowledge Base: Production Ready RAG + MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/enterprise-internal-knowledge-base-production-ready-rag-mcp?style=directory)](https://allmcps.com/mcp/enterprise-internal-knowledge-base-production-ready-rag-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/enterprise-internal-knowledge-base-production-ready-rag-mcp"><img src="https://allmcps.com/api/badge/enterprise-internal-knowledge-base-production-ready-rag-mcp?style=directory" alt="Enterprise Internal Knowledge Base: Production Ready RAG + MCP on AllMCPs" /></a>