---
title: "MCP for Enterprise Knowledge Retrieval | CustomMCP.com"
description: "Answer internal questions from approved documents with source references, access checks and freshness rules. A practical MCP knowledge workflow."
canonical: https://custommcp.com/use-cases/knowledge/
updated: 2026-11-29
release_state: APPROVED_FOR_RELEASE
license: content all rights reserved; reference code MIT
generator: CustomMCP static generator 2.1.0
---

# Enterprise knowledge retrieval that shows its sources

> A knowledge-retrieval MCP workflow searches an approved corpus, fetches the selected document and returns an answer with source links. Access is checked at retrieval for the requesting user, stale documents are flagged, and the assistant is instructed to say when it cannot find a source.

An assistant that answers from memory is a liability. An assistant that answers from approved documents, with a link and an access check, is a tool.

## The workflow

1. **1. Ask** The user asks a question in the AI host. The host calls the search tool with the query and the user's identity context.

2. **2. Retrieve** The server searches only the corpus the user may read, returns ranked summaries with source URLs and modified dates.

3. **3. Read** The host requests one document by ID. The server rechecks access and returns approved text.

4. **4. Answer with citations** The host answers and cites the source. If retrieval returns nothing, the instruction is to say so, not to improvise.

5. **5. Improve** Zero-result queries and missing documents become content work, not prompt tweaks.

## Reference flow

*Retrieval is authorized before it is ranked.*

```text
question
  -> search_documents(query, filters, limit)
       -> authorization filter (user, tenant, corpus)
       -> lexical + vector retrieval
       -> results with source_url, updated_at, score
  -> read_document(document_id)
       -> recheck access
       -> approved text + citation metadata
  -> answer + citations
```

## Tool surface

| Tool | Purpose | Control |
| --- | --- | --- |
| search_documents | Find candidate sources | Access-filtered, 10 results, snippet only |
| read_document | Fetch approved text | Rechecks access, max length, source metadata |
| list_sources | Show what is indexed | Corpus names and freshness, no private paths |
| get_document_status | Check freshness and owner | Last indexed, owner, superseded flag |

*Minimum knowledge tools*

## Controls that make it trustworthy

| Risk | Control |
| --- | --- |
| Assistant sees a document the user cannot | Retrieval filtered by the user's access, not a shared service account |
| Answer cites an old policy | Effective date and superseded flag in results; stale sources are labeled |
| Answer invents a citation | Citations come from tool output fields, not from the model |
| Document contains an instruction | Retrieved text is fenced as untrusted data in the host and never treated as policy |
| Index leaks deleted documents | Deletion propagates to the index within the agreed window |

*Knowledge-specific controls*

## What to measure

- Citation rate: answers that include a source link.

- Zero-result rate by query family, reviewed weekly.

- Retrieval p95 latency and index freshness lag.

- Access-denied rate, to distinguish permission bugs from missing content.

- User correction rate, sampled, with the failing source recorded.

> **Important:** Retrieval does not fix bad source content. If two policies disagree, the assistant will surface both. Someone has to own the content lifecycle; the integration only makes the conflict visible.

## Frequently asked questions

### Do we need a vector database?

Not always. Start with lexical search if it meets the need, then add embeddings for fuzzy language. The retrieval choice is a scope decision, not a default.

### Can it cite exact passages?

Yes, if the source includes stable anchors or page numbers. We return those fields so the host can link to the passage rather than the document root.

### How do permissions stay current?

The server checks access on every retrieval and read, using your identity provider or a synchronized permission table. Caches are keyed by user and tenant and expire.

### What content should not be indexed?

Drafts, legal holds, personal data without a basis, and anything the source system marks restricted. The corpus definition is part of the security review.

## Related

- [Google Drive MCP integration with per-user consent](https://custommcp.com/integrations/google-drive/)
- [PostgreSQL MCP integration with bounded, read-only access](https://custommcp.com/integrations/postgresql/)
- [Security review for MCP servers and tool access](https://custommcp.com/services/mcp-security/)
- [What is Model Context Protocol?](https://custommcp.com/resources/what-is-mcp/)

---

Canonical HTML: https://custommcp.com/use-cases/knowledge/
Machine index: https://custommcp.com/llms.txt
Agent onboarding: https://custommcp.com/agents/
Last verified: 2026-11-29
