kbrain

How-to guide

What is an MCP server for a knowledge base?

An MCP server for a knowledge base is the endpoint that lets Claude, ChatGPT, or any MCP agent query your documents live. Here is what it does and how to get one.

Connect your knowledge over MCP

An MCP server for a knowledge base is the endpoint that connects your documents to an AI assistant so the assistant can query them during a conversation. The Model Context Protocol is an open standard for AI clients to call external tools and data. An MCP knowledge-base server is one of those data sources: the assistant sends a query, the server retrieves the relevant passage from your content, and hands it back mid-answer.

What the server actually does

On one side, the server is connected to your knowledge, documents, PDFs, a Google Drive folder, a curated brain. On the other, it speaks MCP to the assistant. When you ask a question the knowledge covers, the assistant calls the server, which runs retrieval and returns the top relevant chunks. The assistant reads those and answers from them. Nothing is pasted; nothing is uploaded per chat.

The path of a query - 01
How an MCP knowledge-base server answers
The assistant calls the server; the server retrieves and returns the passage.
💬
You ask
A question your docs cover.
🛰️
Assistant calls MCP
It queries the server as a tool.
🔍
Server retrieves
Top relevant chunks from your content.
Grounded answer
Read from the passage, not inferred.
LIVE
The server is the bridge. It turns a pile of documents into something an assistant can query the moment it needs a fact.

You usually should not build one from scratch

You can write an MCP server yourself: implement the protocol, host it, wire up retrieval and indexing, handle auth, and keep it running. For a knowledge base, that is a lot of infrastructure to maintain before you answer a single question. A hosted knowledge layer gives you the same endpoint without the server to operate.

  • With KBrain, the MCP endpoint is generated automatically when you create or subscribe to a brain. There is no server to deploy or keep alive.
  • Retrieval, indexing, and sync are handled for you, so the endpoint returns current, relevant passages without you building a pipeline.
  • The same endpoint works across Claude, ChatGPT, and any MCP client, so you are not writing a separate integration per assistant.
  • Access is scoped to the brain, so a private knowledge base stays private behind the endpoint.

MCP is the interface, not the knowledge. A server only answers well if the knowledge behind it is scoped and current. The protocol carries the query; curation determines the quality of what comes back.

Connect your knowledge over MCP

Create or subscribe to a brain on KBrain, then connect its MCP endpoint to Claude, ChatGPT, or any MCP compatible assistant in a few minutes.

Frequently asked questions

What is the difference between an MCP server and a knowledge base?

The knowledge base is the content, your documents indexed for retrieval. The MCP server is the endpoint that exposes it so an assistant can query it during a conversation. You need both; the server is how the assistant reaches the base.

Do I have to host my own MCP server?

You can, but you do not have to. Building one means implementing the protocol, hosting, and running retrieval and sync yourself. A hosted layer like KBrain generates the endpoint automatically when you create a brain, with no server to operate.

Can one MCP server work with both Claude and ChatGPT?

Yes. MCP is an open standard, so a single endpoint works across Claude, ChatGPT, and any MCP-compatible client. You connect the knowledge base once and query it from any of them.